I should clarify what I am doing. I have custom latex printers for Matrix, Derivative, Function, Pow, and Symbol. All work fine when generating a tex file for input to pdflatex. Except for Matrix all work fine in printing latex in "ipython notebook." I don't know what is different about Matrix. Note that in my initialization for latex printing I have the statements -
Basic.__str__ = lambda self: GaLatexPrinter().doprint(self) Matrix.__str__ = lambda self: GaLatexPrinter().doprint(self) Basic.__repr_ = lambda self: GaLatexPrinter().doprint(self) I added - Matrix.__repr__ = lambda self: GaLatexPrinter().doprint(self) but it made no difference in the output. On Wed, Jun 17, 2015 at 3:09 PM, brombo <[email protected]> wrote: > Is there anyway to print a nicely latex formatted matrix in ipython > notebook? When I try I just get the test version printed out while the > latex formatting for the other objects I am printing works fine. > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/c49e47fb-8a4f-4196-9d0c-2cfff60a7691%40googlegroups.com > <https://groups.google.com/d/msgid/sympy/c49e47fb-8a4f-4196-9d0c-2cfff60a7691%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CALOxT-mLGBqZ8jtE5M7%3DZ%3DBgg1_WQu_%3Dyv59dT28RKqMHEmq%2Bg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
