diff --git a/doc/gallery/cinque-rst.ipynb b/doc/gallery/cinque-rst.ipynb new file mode 100644 index 00000000..30b2a8c7 --- /dev/null +++ b/doc/gallery/cinque-rst.ipynb @@ -0,0 +1,55 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "nbsphinx": "hidden" + }, + "source": [ + "This notebook is part of the `nbsphinx` documentation: https://nbsphinx.readthedocs.io/." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Dummy Notebook 5 for Gallery\n", + "\n", + "This is another dummy file to fill\n", + "[the gallery in the reST file](../a-normal-rst-file.rst#thumbnail-galleries).\n", + "\n", + "The thumbnail image is assigned in [conf.py](../conf.py)." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "This page has a secondary use, though,\n", + "which is testing whether a single inline math equation works\n", + "(if there is no other math on the same page): $\\text{e}^{i\\pi} = -1$." + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 4 +} diff --git a/doc/gallery/due-rst.pct.py b/doc/gallery/due-rst.pct.py index 4d0a1145..a8f4fa8b 100644 --- a/doc/gallery/due-rst.pct.py +++ b/doc/gallery/due-rst.pct.py @@ -19,3 +19,13 @@ filename = 'due-rst.pct.py' print(Path(filename).read_text()) + +# %% [markdown] +# This page has a secondary use, +# which is testing whether a single math output cell works +# (if there is no other math on the same page): + +# %% +from IPython.display import Math +eq = Math(r'\int\limits_{-\infty}^\infty f(x) \delta(x - x_0) dx = f(x_0)') +eq diff --git a/doc/gallery/uno-rst.ipynb b/doc/gallery/uno-rst.ipynb index 3d93d8ac..2880e42c 100644 --- a/doc/gallery/uno-rst.ipynb +++ b/doc/gallery/uno-rst.ipynb @@ -20,6 +20,19 @@ "\n", "The thumbnail image is assigned in [conf.py](../conf.py)." ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "This page has a secondary use, though,\n", + "which is testing whether a single block math equation works\n", + "(if there is no other math on the same page):\n", + "\n", + "\\begin{equation}\n", + "\\int\\limits_{-\\infty}^\\infty f(x) \\delta(x - x_0) dx = f(x_0).\n", + "\\end{equation}" + ] } ], "metadata": {