Merge from vendor branch TNF:
[pkgsrcv2.git] / print / tex-listings / DESCR
1 Typeset programs (programming code) within LaTeX.  The source code is
2 read directly by TeX.  Keywords, comments and strings can be typeset
3 using different styles (default is bold for keywords, italic for
4 comments and no special style for strings).  Includes support for
5 hyperref.  To use, simply \usepackage{listings}, identify the language
6 with \lstset{language=Python}, then employ the \begin{lstlisting} ...
7 \end{lstlisting} environment or the \lstinputlisting{filename.py}
8 command.  Short (in-line) listings are also available, using either
9 \lstinline|...| or | ... | (after defining the | token with the
10 \lstMakeShortInline command).