Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ahmadia/4b615bdb6f6b8e49dbc8 to your computer and use it in GitHub Desktop.
Save ahmadia/4b615bdb6f6b8e49dbc8 to your computer and use it in GitHub Desktop.
Manual MathJax Equation Tags in the Jupyter Notebook.ipynb
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"```\n",
"\\begin{equation*}\n",
" e^{\\pi i} + 1 = 0\n",
" \\tag{1}\n",
" \\label{1}\n",
"\\end{equation*}\n",
"```"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\\begin{equation*}\n",
" e^{\\pi i} + 1 = 0\n",
" \\tag{1}\n",
" \\label{1}\n",
"\\end{equation*}"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"```\n",
"\\begin{equation*}\n",
" e^{\\pi i} = -1\n",
" \\tag{1.1}\n",
" \\label{2}\n",
"\\end{equation*}\n",
"```\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\\begin{equation*}\n",
" e^{\\pi i} = -1\n",
" \\tag{1.1}\n",
" \\label{2}\n",
"\\end{equation*}"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"```\n",
"\\begin{equation*}\n",
" 0 = e^{\\pi i} + 1\n",
" \\tag{1.2}\n",
" \\label{3}\n",
"\\end{equation*}\n",
"```"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\\begin{equation*}\n",
" 0 = e^{\\pi i} + 1\n",
" \\tag{1.2}\n",
" \\label{3}\n",
"\\end{equation*}"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"`Refer to equation \\ref{1} or \\ref{2} or \\ref{3} for more help.`"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Refer to equation \\ref{1} or \\ref{2} or \\ref{3} for more help."
]
}
],
"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.4.3"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment