diff options
author | Georg Brandl <georg@python.org> | 2010-01-02 22:14:19 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-01-02 22:14:19 +0100 |
commit | 18c70987246a54c7408e9bb82b8c206efa57ce94 (patch) | |
tree | 7b9b6941c6a3152ecc45b9672676127917319f81 /pygments/formatters/latex.py | |
parent | 2dcb4108df5649f9f11ace9b5c5d7bbf74295bf6 (diff) | |
download | pygments-18c70987246a54c7408e9bb82b8c206efa57ce94.tar.gz |
Version 1.2.2
-------------
(bugfix release, released Jan 02, 2010)
Removed a backwards incompatibility in the LaTeX formatter that caused
Sphinx to produce invalid commands when writing LaTeX output.
Diffstat (limited to 'pygments/formatters/latex.py')
-rw-r--r-- | pygments/formatters/latex.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pygments/formatters/latex.py b/pygments/formatters/latex.py index a9059b14..4715b04e 100644 --- a/pygments/formatters/latex.py +++ b/pygments/formatters/latex.py @@ -101,6 +101,10 @@ STYLE_TEMPLATE = r''' \def\%(cp)sZob{\char`\{} \def\%(cp)sZcb{\char`\}} \def\%(cp)sZca{\char`\^} +%% for compatibility with earlier versions +\def\%(cp)sZat{@} +\def\%(cp)sZlb{[} +\def\%(cp)sZrb{]} \makeatother ''' |