On 09/09/2013 09:22 PM, Aaron Meurer wrote:
Currently, there isn't an easy way to use a custom latex printer. The
relevant issue is
https://code.google.com/p/sympy/issues/detail?id=4013. Ideally, you
could just pass a custom printer to init_printing(), and that printer
would be used.

Pull requests welcome. Let me know if you need help on how to get started.

Aaron Meurer

On Mon, Sep 9, 2013 at 4:41 PM, Alan Bromborsky <[email protected]> wrote:
I have a custom latex printer in galgebra that works (added methods for
multivectors and redefined methods for partial derivatives and functions)
when generating latex code.  What additional things to I need to do to make
it work in Ipython notebook.

--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.
I modified init_printing args -

from sympy.printing.printer import Printer

def init_printing(pretty_print=True, order=None, use_unicode=None,
                  use_latex=None, wrap_line=None, num_columns=None,
                  no_global=False, ip=None, euler=False, forecolor='Black',
                  backcolor='Transparent', fontsize='10pt',
                  latex_mode='equation*',Printer=Printer):

to pass the custom printer to init_printing

then tried

from sympy import symbols, init_printing, Function, diff
from ga import Ga
from printer import GaLatexPrinter, Format
init_printing(use_latex=True,Printer=GaLatexPrinter)

in Ipython notebook

GaLatexPrinter changes the behavior of function and derivative printing, but functions and derivative printed out the standard sympy latex way. Any suggestions?

--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to