summaryrefslogtreecommitdiff
path: root/pygments/formatters/latex.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-08-22 15:23:47 +0200
committerGeorg Brandl <georg@python.org>2010-08-22 15:23:47 +0200
commitf44fb1523976d17a4ba9d005b1d51dfba01cffa3 (patch)
treedef2527c38f7f1952abd3e0e39d1e3a10f59f699 /pygments/formatters/latex.py
parentdf70fb4e044a668758619c3a2c31dfc52aa9ca34 (diff)
downloadpygments-f44fb1523976d17a4ba9d005b1d51dfba01cffa3.tar.gz
Update output example.
Diffstat (limited to 'pygments/formatters/latex.py')
-rw-r--r--pygments/formatters/latex.py8
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