summaryrefslogtreecommitdiff
path: root/sphinx/util/texescape.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/texescape.py')
-rw-r--r--sphinx/util/texescape.py52
1 files changed, 2 insertions, 50 deletions
diff --git a/sphinx/util/texescape.py b/sphinx/util/texescape.py
index 0f1783def..4ce2cfff8 100644
--- a/sphinx/util/texescape.py
+++ b/sphinx/util/texescape.py
@@ -69,56 +69,8 @@ tex_replacements = [
('₇', r'\(\sb{\text{7}}\)'),
('₈', r'\(\sb{\text{8}}\)'),
('₉', r'\(\sb{\text{9}}\)'),
- # map Greek alphabet
- ('α', r'\(\alpha\)'),
- ('β', r'\(\beta\)'),
- ('γ', r'\(\gamma\)'),
- ('δ', r'\(\delta\)'),
- ('ε', r'\(\epsilon\)'),
- ('ζ', r'\(\zeta\)'),
- ('η', r'\(\eta\)'),
- ('θ', r'\(\theta\)'),
- ('ι', r'\(\iota\)'),
- ('κ', r'\(\kappa\)'),
- ('λ', r'\(\lambda\)'),
- ('μ', r'\(\mu\)'),
- ('ν', r'\(\nu\)'),
- ('ξ', r'\(\xi\)'),
- ('ο', r'o'),
- ('π', r'\(\pi\)'),
- ('ρ', r'\(\rho\)'),
- ('σ', r'\(\sigma\)'),
- ('τ', r'\(\tau\)'),
- ('υ', '\\(\\upsilon\\)'),
- ('φ', r'\(\phi\)'),
- ('χ', r'\(\chi\)'),
- ('ψ', r'\(\psi\)'),
- ('ω', r'\(\omega\)'),
- ('Α', r'A'),
- ('Β', r'B'),
- ('Γ', r'\(\Gamma\)'),
- ('Δ', r'\(\Delta\)'),
- ('Ε', r'E'),
- ('Ζ', r'Z'),
- ('Η', r'H'),
- ('Θ', r'\(\Theta\)'),
- ('Ι', r'I'),
- ('Κ', r'K'),
- ('Λ', r'\(\Lambda\)'),
- ('Μ', r'M'),
- ('Ν', r'N'),
- ('Ξ', r'\(\Xi\)'),
- ('Ο', r'O'),
- ('Π', r'\(\Pi\)'),
- ('Ρ', r'P'),
- ('Σ', r'\(\Sigma\)'),
- ('Τ', r'T'),
- ('Υ', '\\(\\Upsilon\\)'),
- ('Φ', r'\(\Phi\)'),
- ('Χ', r'X'),
- ('Ψ', r'\(\Psi\)'),
- ('Ω', r'\(\Omega\)'),
- ('Ω', r'\(\Omega\)'),
+ # Greek alphabet not escaped: pdflatex handles it via textalpha and inputenc
+ # OHM SIGN U+2126 is handled by LaTeX textcomp package
]
tex_escape_map = {} # type: Dict[int, unicode]