Skip to content

Commit e17b688

Browse files
author
Matthias Koeppe
committed
src/sage/misc/sagedoc.py: Add latex to unicode mappings
1 parent cb8e15b commit e17b688

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/sage/misc/sagedoc.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
import shutil
4545
import sys
4646
import pydoc
47+
import sage.typeset.unicode_characters as uc
4748
from sage.misc.temporary_file import tmp_dir
4849
from sage.misc.viewer import browser
4950
from sage.misc import sageinspect
@@ -95,7 +96,24 @@
9596
(r'\\rvert', '|'),
9697
(r'\\mid', '|'),
9798
(r' \\circ', ' o'),
98-
(r'\\circ', ' o')
99+
(r'\\circ', ' o'),
100+
(r'\\{', '{'),
101+
(r'\\}', '}'),
102+
(r'\\!', ''),
103+
(r'\\,', ''),
104+
(r'\\;', '\u205F'),
105+
(r'\\dim', 'dim'),
106+
(r'\\in', '\u2208'),
107+
(r'\\phi', '\u03C6'),
108+
(r'\\Lambda', '\u039B'),
109+
(r'\\NN', '\U0001D40D'),
110+
(r'\\QQ', '\U0001D410'),
111+
(r'\\RR', '\U0001D411'),
112+
(r'\\ZZ', '\U0001D419'),
113+
(r'\\otimes', uc.unicode_otimes),
114+
(r'\\wedge', uc.unicode_wedge),
115+
(r'\\bigwedge', uc.unicode_bigwedge),
116+
(r'\\mathbf{k}', '\U0001D424'),
99117
]
100118
nonmath_substitutes = [
101119
('\\_', '_'),

0 commit comments

Comments
 (0)