Skip to content

Commit bf273a1

Browse files
committed
Use \text macro to make numbers subscript
More details, see 488ee52
1 parent 7c0b7e1 commit bf273a1

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

sphinx/util/texescape.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -47,26 +47,26 @@
4747
('│', r'\textbar{}'),
4848
('ℯ', r'e'),
4949
('ⅈ', r'i'),
50-
('⁰', r'$^0$'),
51-
('¹', r'$^1$'),
52-
('²', r'$^2$'),
53-
('³', r'$^3$'),
54-
('⁴', r'$^4$'),
55-
('⁵', r'$^5$'),
56-
('⁶', r'$^6$'),
57-
('⁷', r'$^7$'),
58-
('⁸', r'$^8$'),
59-
('⁹', r'$^9$'),
60-
('₀', r'$_0$'),
61-
('₁', r'$_1$'),
62-
('₂', r'$_2$'),
63-
('₃', r'$_3$'),
64-
('₄', r'$_4$'),
65-
('₅', r'$_5$'),
66-
('₆', r'$_6$'),
67-
('₇', r'$_7$'),
68-
('₈', r'$_8$'),
69-
('₉', r'$_9$'),
50+
('⁰', r'$^\text{0}$'),
51+
('¹', r'$^\text{1}$'),
52+
('²', r'$^\text{2}$'),
53+
('³', r'$^\text{3}$'),
54+
('⁴', r'$^\text{4}$'),
55+
('⁵', r'$^\text{5}$'),
56+
('⁶', r'$^\text{6}$'),
57+
('⁷', r'$^\text{7}$'),
58+
('⁸', r'$^\text{8}$'),
59+
('⁹', r'$^\text{9}$'),
60+
('₀', r'$_\text{0}$'),
61+
('₁', r'$_\text{1}$'),
62+
('₂', r'$_\text{2}$'),
63+
('₃', r'$_\text{3}$'),
64+
('₄', r'$_\text{4}$'),
65+
('₅', r'$_\text{5}$'),
66+
('₆', r'$_\text{6}$'),
67+
('₇', r'$_\text{7}$'),
68+
('₈', r'$_\text{8}$'),
69+
('₉', r'$_\text{9}$'),
7070
# map Greek alphabet
7171
('α', r'\(\alpha\)'),
7272
('β', r'\(\beta\)'),

0 commit comments

Comments
 (0)