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.