diff options
Diffstat (limited to 'pygments/formatters/latex.py')
-rw-r--r-- | pygments/formatters/latex.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/formatters/latex.py b/pygments/formatters/latex.py index 3dc55d64..f91b1e57 100644 --- a/pygments/formatters/latex.py +++ b/pygments/formatters/latex.py @@ -186,6 +186,7 @@ class LatexFormatter(Formatter): Return the \\newcommand sequences needed to define the commands used to format text in the verbatim environment. ``arg`` is ignored. """ + nc = '\\newcommand' return '%s\\at{@}\n%s\\lb{[}\n%s\\rb{]}\n' % (nc, nc, nc) + \ '\n'.join(['\\newcommand\\%s[1]{%s}' % (alias, cmndef) for alias, cmndef in self.cmd2def.iteritems() |