Typeset programs (programming code) within LaTeX. The source
code is read directly by TeX. Keywords, comments and strings can
be typeset using different styles (default is bold for keywords,
italic for comments and no special style for strings). Includes
support for hyperref. To use,
simply \usepackage{listings}, identify the language with
\lstset{language=Python}, then employ the
\begin{lstlisting} ... \end{lstlisting} environment or
the \lstinputlisting{filename.py} command. Short
(in-line) listings are also available, using either
\lstinline|...| or | ... | (after defining the
| token with the \lstMakeShortInline command).
If possible, get this package from your distribution using its installation manager. (For installation help, click on your distribution's name.)
| Distribution | Package name |
|---|---|
| MiKTeX | listings |
| TeX Live | listings |
You can also visit listings's CTAN directory to browse the source or download the material for installation by hand.
| Documentation on CTAN |
|
||
| Documentation off CTAN | -none known- | ||
| Maintainers |
|
||
| Version | 1.4 | ||
| License | LaTeX Project Public License | ||
| Related packages |
|
||
| Keywords |
|
||
| Characterizations |
You can suggest changes to the keywords and characterizations and the maintainer information.
You can get information about any package.