Custom latex printing in ipython notebook

62 views
Skip to first unread message

Alan Bromborsky

unread,
Aug 24, 2014, 12:34:21 PM8/24/14
to sympy
For regular latex printing I have a custom _print_Derivative in my
GaLatexPrinter class and that works fine. But for latex printing in
ipython notebook I need a _repr_latex in the correct class. If I want
to print custom formated derivatives in latex in ipython notebook what
should I do?

Jason Moore

unread,
Aug 24, 2014, 12:38:03 PM8/24/14
to sy...@googlegroups.com
Alan,

We wrapped the init_printing function in the sympy.physics.vector package. So you can call sympy.physics.vector.init_vprinting() to turn our our custom printers.

See https://github.com/sympy/sympy/blob/master/sympy/physics/vector/printing.py#L377
On Sun, Aug 24, 2014 at 12:34 PM, Alan Bromborsky <abr...@verizon.net> wrote:
For regular latex printing I have a custom _print_Derivative  in my GaLatexPrinter class and that works fine.  But for latex printing in ipython notebook I need a _repr_latex in the correct class.  If I want to print custom formated derivatives in latex in ipython notebook what should I do?


--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/53FA1402.5030006%40verizon.net.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages