Permalink
Browse files

Minor fix to sympy latex printing.

* \dag is converted to \dagger.
  • Loading branch information...
ellisonbg committed May 4, 2011
1 parent ff6dc82 commit 5d05db0781baf4d980e082df7594698addd3a8cb
Showing with 1 addition and 0 deletions.
  1. +1 −0 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

0 comments on commit 5d05db0

Please sign in to comment.