##// END OF EJS Templates
update LATEX_SUBS table
MinRK -
Show More
@@ -21,17 +21,19 import re
21
21
22 # Latex substitutions for escaping latex.
22 # Latex substitutions for escaping latex.
23 # see: http://stackoverflow.com/questions/16259923/how-can-i-escape-latex-special-characters-inside-django-templates
23 # see: http://stackoverflow.com/questions/16259923/how-can-i-escape-latex-special-characters-inside-django-templates
24
24 LATEX_SUBS = {
25 LATEX_SUBS = {
25 '&': r'\&',
26 '&': r'\&',
26 '%': r'\%',
27 '%': r'\%',
27 '$': r'\$',
28 '$': r'\$',
28 '#': r'\#',
29 '#': r'\#',
29 '_': r'\letterunderscore{}',
30 '_': r'\_',
30 '{': r'\letteropenbrace{}',
31 '{': r'\{',
31 '}': r'\letterclosebrace{}',
32 '}': r'\}',
32 '~': r'\lettertilde{}',
33 '~': r'\textasciitilde{}',
33 '^': r'\letterhat{}',
34 '^': r'\^{}',
34 '\\': r'\letterbackslash{}'}
35 '\\': r'\textbackslash{}',
36 }
35
37
36
38
37 #-----------------------------------------------------------------------------
39 #-----------------------------------------------------------------------------
General Comments 0
You need to be logged in to leave comments. Login now