mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use a prefix to \at, \lb and \rb since they are probably often used command names.
This commit is contained in:
parent
8652abef3c
commit
46544e4986
@ -61,15 +61,15 @@ else:
|
||||
_lexer.add_filter('raiseonerror')
|
||||
|
||||
|
||||
escape_hl_chars = {ord(u'@'): u'@at[]',
|
||||
ord(u'['): u'@lb[]',
|
||||
ord(u']'): u'@rb[]'}
|
||||
escape_hl_chars = {ord(u'@'): u'@PYat[]',
|
||||
ord(u'['): u'@PYlb[]',
|
||||
ord(u']'): u'@PYrb[]'}
|
||||
|
||||
# used if Pygments is not available
|
||||
_LATEX_STYLES = r'''
|
||||
\newcommand\at{@}
|
||||
\newcommand\lb{[}
|
||||
\newcommand\rb{]}
|
||||
\newcommand\PYat{@}
|
||||
\newcommand\PYlb{[}
|
||||
\newcommand\PYrb{]}
|
||||
'''
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user