Use a prefix to \at, \lb and \rb since they are probably often used command names.

This commit is contained in:
Georg Brandl 2008-09-11 22:29:35 +00:00
parent 8652abef3c
commit 46544e4986

View File

@ -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{]}
'''