First time here? Check out the FAQ!
answered 2011-01-11 10:50:50 +0100
In the notebook, I believe that executing a %latex cell is equivalent to the command
%latex
Latex().eval("string", globals=globals)
For example,
Latex().eval(r"""Hello \[ x=f(x) \] Goodbye""", globals=globals)