##// END OF EJS Templates
FIXED, latex characters not escaped properly in nbconvert
Jonathan Frederic -
Show More
@@ -22,7 +22,7 b' import re'
22 22 #Latex substitutions for escaping latex.
23 23 LATEX_SUBS = (
24 24 (re.compile('\033\[[0-9;]+m'),''), # handle console escapes
25 (re.compile(r'\\'), r'\\textbackslash'),
25 (re.compile(r'\\'), r'{\\textbackslash}'),
26 26 (re.compile(r'([{}_#%&$])'), r'\\\1'),
27 27 (re.compile(r'~'), r'\~{}'),
28 28 (re.compile(r'\^'), r'\^{}'),
@@ -443,7 +443,7 b' Note: For best display, use latex syntax highlighting. =))'
443 443 ((* macro custom_verbatim(text) -*))
444 444 \begin{alltt}
445 445 ((*- if resources.sphinx.centeroutput *))\begin{center} ((* endif -*))
446 ((( text | wrap_text(wrap_size) )))
446 ((( text | wrap_text(wrap_size) | escape_latex )))
447 447 ((*- if resources.sphinx.centeroutput *))\end{center}((* endif -*))
448 448 \end{alltt}
449 449 ((*- endmacro *))
General Comments 0
You need to be logged in to leave comments. Login now