comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Source Code into latex
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Source Code into latex [message #25686] Tue, 10 July 2001 21:12 Go to previous message
Chris Rennie is currently offline  Chris Rennie
Messages: 6
Registered: October 1999
Junior Member
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: angles from rotation matrix
Next Topic: about label_region

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:01:05 PDT 2025

Total time taken to generate the page: 0.00371 seconds