Skip to content

Commit

Permalink
example notebook: don't recommend using $$...$$ for display math
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Dec 1, 2020
1 parent 02024f0 commit 99adc0e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/source/examples/Notebook/Working With Markdown Cells.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -175,18 +175,22 @@
"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",
"```\n",
"$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",
"```"
]
},
Expand Down

0 comments on commit 99adc0e

Please sign in to comment.