diff options
-rw-r--r-- | CHANGES | 9 | ||||
-rw-r--r-- | pygments/formatters/latex.py | 4 |
2 files changed, 10 insertions, 3 deletions
@@ -3,9 +3,12 @@ Pygments changelog Issue numbers refer to the tracker at http://dev.pocoo.org/projects/pygments/. -Version 1.3 ------------ -(in development) +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. Version 1.2.1 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 ''' |