diff options
author | Georg Brandl <georg@python.org> | 2010-08-22 15:23:47 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-08-22 15:23:47 +0200 |
commit | f44fb1523976d17a4ba9d005b1d51dfba01cffa3 (patch) | |
tree | def2527c38f7f1952abd3e0e39d1e3a10f59f699 /pygments/formatters/latex.py | |
parent | df70fb4e044a668758619c3a2c31dfc52aa9ca34 (diff) | |
download | pygments-f44fb1523976d17a4ba9d005b1d51dfba01cffa3.tar.gz |
Update output example.
Diffstat (limited to 'pygments/formatters/latex.py')
-rw-r--r-- | pygments/formatters/latex.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/formatters/latex.py b/pygments/formatters/latex.py index 6d9f9e02..cc464420 100644 --- a/pygments/formatters/latex.py +++ b/pygments/formatters/latex.py @@ -140,12 +140,12 @@ class LatexFormatter(Formatter): .. sourcecode:: latex - \begin{Verbatim}[commandchars=@\[\]] - @PY[k][def ]@PY[n+nf][foo](@PY[n][bar]): - @PY[k][pass] + \begin{Verbatim}[commandchars=\\{\}] + \PY{k}{def }\PY{n+nf}{foo}(\PY{n}{bar}): + \PY{k}{pass} \end{Verbatim} - The special command used here (``@PY``) and all the other macros it needs + The special command used here (``\PY``) and all the other macros it needs are output by the `get_style_defs` method. With the `full` option, a complete LaTeX document is output, including |