1 """ Map special TeX symbols """
2 # $Id: specmap.py,v 1.4 2006-06-02 03:06:48 olpa Exp $
5 # text escape map and math escape map should contain the same keys
8 '\\': r'\textbackslash{}',
11 '$': r'\textdollar{}',
16 '~': r'\textasciitilde{}',
20 '>': r'\textgreater{}',
21 # not special but typography
22 u'\u00a9': r'\textcopyright{}',
23 u'\u2011': r'\mbox{-}'
26 # Paul Tremblay added this on 2005-03-08
27 textescmap_context = {
28 '\\': r'\textbackslash{}',
31 '$': r'\textdollar{}',
36 '~': r'\textasciitilde{}',
40 '>': r'\textgreater{}',
41 # not special but typography
42 # u'\u00a9': r'\textcopyright{}'
43 u'\u2011': r'\mbox{-}'
47 '\\': r'\backslash{}',
60 # not special but typography
61 u'\u00a9': r'\copyright{}',
66 # Although these symbols are not special, it is better to escape them
67 # because in as-is form they are not so good
73 textescmap.update(typographymap)
74 mathescmap.update(typographymap)
77 # Mapping from spec/@cat to symbols