From 5d05db0781baf4d980e082df7594698addd3a8cb 2011-07-21 03:42:33 From: Brian Granger Date: 2011-07-21 03:42:33 Subject: [PATCH] Minor fix to sympy latex printing. * \dag is converted to \dagger. --- diff --git a/IPython/extensions/sympyprinting.py b/IPython/extensions/sympyprinting.py index e83c058..ba3b51e 100644 --- a/IPython/extensions/sympyprinting.py +++ b/IPython/extensions/sympyprinting.py @@ -52,6 +52,7 @@ def print_png(o): def print_latex(o): """A function to generate the latex representation of sympy expressions.""" s = latex(o, mode='equation', itex=True) + s = s.replace('\\dag','\\dagger') return s