Fix #2501: Unicode subscript numbers are normalized in LaTeX

This commit is contained in:
Takeshi KOMIYA committed 2016-05-02 11:03:50 +09:00
1 parent 06e2928ef0
commit 488ee5279a
2 files changed
+21 -2

No files matched your search

+1
View File
@@ -48,6 +48,7 @@ Bugs fixed
* #2460: too much white space on top of captioned literal blocks in PDF output
* Show error reason when multiple math extensions are loaded (ref: #2499)
* #2483: any figure number was not assigned if figure title contains only non text objects
* #2501: Unicode subscript numbers are normalized in LaTeX
Release 1.4.1 (released Apr 12, 2016)
+20 -2
View File
@@ -47,8 +47,26 @@ tex_replacements = [
('│', r'\textbar{}'),
('ℯ', r'e'),
('ⅈ', r'i'),
('₁', r'1'),
('₂', r'2'),
('⁰', r'$^0$'),
('¹', r'$^1$'),
('²', r'$^2$'),
('³', r'$^3$'),
('⁴', r'$^4$'),
('⁵', r'$^5$'),
('⁶', r'$^6$'),
('⁷', r'$^7$'),
('⁸', r'$^8$'),
('⁹', r'$^9$'),
('₀', r'$_0$'),
('₁', r'$_1$'),
('₂', r'$_2$'),
('₃', r'$_3$'),
('₄', r'$_4$'),
('₅', r'$_5$'),
('₆', r'$_6$'),
('₇', r'$_7$'),
('₈', r'$_8$'),
('₉', r'$_9$'),
# map Greek alphabet
('α', r'\(\alpha\)'),
('β', r'\(\beta\)'),