Skip to content

Commit

Permalink
Related to ipython#1359. Removing extra $ that older versions sympy add.
Browse files Browse the repository at this point in the history
Older versions of sympy put in an extra $ when using
latex(e, mode='plain'). We are removing those before we add our
own to make sure it works.
  • Loading branch information
ellisonbg committed Feb 2, 2012
1 parent d06d98f commit 7df9f51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions IPython/extensions/sympyprinting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 7df9f51

Please sign in to comment.