Skip to content

Commit c5a0f80

Browse files
authored
Merge pull request #5893 from mgeier/review-notebook-examples
example notebook: don't recommend using $$...$$ for display math
2 parents eb2b4c6 + 99adc0e commit c5a0f80

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/source/examples/Notebook/Working With Markdown Cells.ipynb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,18 +175,22 @@
175175
"Courtesy of MathJax, you can include mathematical expressions both inline: \n",
176176
"$e^{i\\pi} + 1 = 0$ and displayed:\n",
177177
"\n",
178-
"$$e^x=\\sum_{i=0}^\\infty \\frac{1}{i!}x^i$$\n",
178+
"\\begin{equation}\n",
179+
"e^x=\\sum_{i=0}^\\infty \\frac{1}{i!}x^i\n",
180+
"\\end{equation}\n",
179181
"\n",
180182
"Inline expressions can be added by surrounding the latex code with `$`:\n",
181183
"\n",
182184
"```\n",
183185
"$e^{i\\pi} + 1 = 0$\n",
184186
"```\n",
185187
"\n",
186-
"Expressions on their own line are surrounded by `$$`:\n",
188+
"Expressions on their own line are surrounded by `\\begin{equation}` and `\\end{equation}`:\n",
187189
"\n",
188190
"```latex\n",
189-
"$$e^x=\\sum_{i=0}^\\infty \\frac{1}{i!}x^i$$\n",
191+
"\\begin{equation}\n",
192+
"e^x=\\sum_{i=0}^\\infty \\frac{1}{i!}x^i\n",
193+
"\\end{equation}\n",
190194
"```"
191195
]
192196
},

0 commit comments

Comments
 (0)