[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Source Code into latex



Dominik Paul wrote:
> 
> Hi there,
> 
> does somebody know, how I can convert or create a latex-document out of my
> IDL Source Code?

The more elaborate alternative to \begin{verbatim} ... \end{verbatim}
is to use the `listings' package, which provides a lot of options: 
comments in italics, key words in bold, line numbering etc.

\documentclass{article}
\usepackage{listings}
\begin{document}
\lstset{language=IDL, commentstyle=\it, basicstyle=\small, 
        labelstyle=\tiny, labelstep=1}

Blah blah blah, as in the following IDL code:
\lstinputlisting{IDLcode.pro}
\end{document}

Chris