diff --git a/IPython/extensions/sympyprinting.py b/IPython/extensions/sympyprinting.py index 6ef9414..a607ddd 100644 --- a/IPython/extensions/sympyprinting.py +++ b/IPython/extensions/sympyprinting.py @@ -60,6 +60,7 @@ def print_latex(o): """A function to generate the latex representation of sympy expressions.""" s = latex(o, mode='plain') s = s.replace('\\dag','\\dagger') + s = s.strip('$') return '$$%s$$' % s