diff options
author | gbrandl <devnull@localhost> | 2008-04-27 15:53:03 +0200 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2008-04-27 15:53:03 +0200 |
commit | ebdc5cb6780f34ef0c6028ce11aa8120b71994e9 (patch) | |
tree | 16a0780c529dcbcac15c4d1715670383b992536a /pygments/formatters/latex.py | |
parent | 72235f16ba387b95f0e8032b13764ccb288ae444 (diff) | |
download | pygments-ebdc5cb6780f34ef0c6028ce11aa8120b71994e9.tar.gz |
Fix missing name.
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() |