Fix #2501: Unicode subscript numbers are normalized in LaTeX

This commit is contained in:
Takeshi KOMIYA 2016-05-02 11:03:32 +09:00
parent 06e2928ef0
commit 488ee5279a
2 changed files with 21 additions and 2 deletions

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)

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\)'),