LaTeX Generation
Here’s a LaTeX equation:
from IPython.display import Latex
display(
Latex(
"""
$$
\\label{eqn-manual}
E^2 = \\left(pc\\right)^2 + \\left(m_0c^2\\right)^2
$$
"""
)
)
Loading...
And here’s a generated LaTeX equation:
from sympy import symbols
x, y = symbols('x y')
z = x**2 + y**2 + 4
display(z)
Loading...
The generated equation in Notebook-code is less fancy than that of Notebook-code!