From 3fd74018c87ec598de173de7d13224523ee98ec5 2013-08-08 05:41:28 From: MinRK Date: 2013-08-08 05:41:28 Subject: [PATCH] update LATEX_SUBS table --- diff --git a/IPython/nbconvert/filters/latex.py b/IPython/nbconvert/filters/latex.py index a43c7f3..cc279c1 100755 --- a/IPython/nbconvert/filters/latex.py +++ b/IPython/nbconvert/filters/latex.py @@ -21,17 +21,19 @@ import re # Latex substitutions for escaping latex. # see: http://stackoverflow.com/questions/16259923/how-can-i-escape-latex-special-characters-inside-django-templates + LATEX_SUBS = { '&': r'\&', - '%': r'\%', - '$': r'\$', - '#': r'\#', - '_': r'\letterunderscore{}', - '{': r'\letteropenbrace{}', - '}': r'\letterclosebrace{}', - '~': r'\lettertilde{}', - '^': r'\letterhat{}', - '\\': r'\letterbackslash{}'} + '%': r'\%', + '$': r'\$', + '#': r'\#', + '_': r'\_', + '{': r'\{', + '}': r'\}', + '~': r'\textasciitilde{}', + '^': r'\^{}', + '\\': r'\textbackslash{}', +} #-----------------------------------------------------------------------------