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