diff --git a/doc/markdown-cells.ipynb b/doc/markdown-cells.ipynb index 2d3e9a54..e1c89c60 100644 --- a/doc/markdown-cells.ipynb +++ b/doc/markdown-cells.ipynb @@ -81,6 +81,70 @@ "```" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Defining LaTeX Macros\n", + "\n", + "LaTeX users will be familiar with defining new macros by using\n", + "`\\newcommand` or the more low-level `\\def` command .\n", + "\n", + "If you want to use that for both HTML and LaTeX output,\n", + "you have to take some extra care.\n", + "You should make your definitions like this:\n", + "\n", + "```\n", + "\n", + "```\n", + "\n", + "\n", + "\n", + "This makes sure that the definition itself is not visible in HTML output\n", + "(by using `