From 99adc0e5c49292ea0b7404635da707a6a1fde554 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Wed, 5 Aug 2020 11:23:25 +0200 Subject: [PATCH] example notebook: don't recommend using $$...$$ for display math --- .../Notebook/Working With Markdown Cells.ipynb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/source/examples/Notebook/Working With Markdown Cells.ipynb b/docs/source/examples/Notebook/Working With Markdown Cells.ipynb index e778aeed8d..63bd4df5a6 100644 --- a/docs/source/examples/Notebook/Working With Markdown Cells.ipynb +++ b/docs/source/examples/Notebook/Working With Markdown Cells.ipynb @@ -175,7 +175,9 @@ "Courtesy of MathJax, you can include mathematical expressions both inline: \n", "$e^{i\\pi} + 1 = 0$ and displayed:\n", "\n", - "$$e^x=\\sum_{i=0}^\\infty \\frac{1}{i!}x^i$$\n", + "\\begin{equation}\n", + "e^x=\\sum_{i=0}^\\infty \\frac{1}{i!}x^i\n", + "\\end{equation}\n", "\n", "Inline expressions can be added by surrounding the latex code with `$`:\n", "\n", @@ -183,10 +185,12 @@ "$e^{i\\pi} + 1 = 0$\n", "```\n", "\n", - "Expressions on their own line are surrounded by `$$`:\n", + "Expressions on their own line are surrounded by `\\begin{equation}` and `\\end{equation}`:\n", "\n", "```latex\n", - "$$e^x=\\sum_{i=0}^\\infty \\frac{1}{i!}x^i$$\n", + "\\begin{equation}\n", + "e^x=\\sum_{i=0}^\\infty \\frac{1}{i!}x^i\n", + "\\end{equation}\n", "```" ] },