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