Re: Source Code into latex [message #25686] |
Tue, 10 July 2001 21:12 |
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
|
|
|
Re: Source Code into latex [message #25707 is a reply to message #25686] |
Mon, 09 July 2001 09:31  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
"Dominik Paul" <dpaul@ukl.uni-freiburg.de> writes:
>
> does somebody know, how I can convert or create a latex-document out of my
> IDL Source Code?
The following is a good start:
\begin{verbatim}
PRO FOOBAR
print, "Hello world"
END
\end{verbatim}
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|
|
Re: Source Code into latex [message #25709 is a reply to message #25707] |
Mon, 09 July 2001 09:36  |
deja_jlin
Messages: 12 Registered: February 2001
|
Junior Member |
|
|
hi Dom,
what level of sophistication in latex import are you looking for?
the easiest answer is of course to enclose the idl code in
\begin{verbatim} ... \end{verbatim}
best,
-Johnny
-------------------------------------------
Johnny Lin
CIRES, University of Colorado
Work Phone: (303) 735-1636
Web: http://cires.colorado.edu/~johnny/
-------------------------------------------
"Dominik Paul" <dpaul@ukl.uni-freiburg.de> wrote in message news:<9iccp9$80o$1@n.ruf.uni-freiburg.de>...
> Hi there,
>
> does somebody know, how I can convert or create a latex-document out of my
> IDL Source Code?
>
> Thanks
>
> Dom
|
|
|