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

Home » Public Forums » archive » 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 #25737 is a reply to message #25712] Thu, 12 July 2001 09:47 Go to previous messageGo to previous message
George N. White III is currently offline  George N. White III
Messages: 56
Registered: September 2000
Member
On Mon, 9 Jul 2001, Dominik Paul wrote:

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

I often include IDL code in LaTeX (and ConTeXt) documents using the
ProTeX literate programming macro package.

Simple example:


\documentclass[11pt]{article}
\usepackage{txfonts} %

% ProTex:
% http://www.cis.ohio-state.edu/~gurari/tpf/html/LitProg.html
% Eitan Gurari, "TeX and LaTeX: Drawing and Literate Programming".
% McGraw-Hill, 1994. ISBN 0-07-025208-4 / 0-07-911616-7
\ifx\AlProTex\undefined%
\input{ProTex.sty}
\fi
\AlProTex{f,<<<>>>,title,list,`}

\title{IDL in \LaTeX}
\author{George N. White III}
\begin{document}
\maketitle

Here is an IDL procedure. Using the literate programming tool,
sections can be defined elsewhere and will be embedded into the
output file.

\<dummy\><<<
pro dummy
;dummy IDL procdure
`<print`>
END
>>>

Here is the definition of the \verb|print| section.

\<print\><<<
print, '...'
>>>

Finally, we write the complete program.

\OutputCode[pro]\<dummy\>

\end{document}


--
George N. White III <gnw3@acm.org> Bedford Institute of Oceanography
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: conflict between widget_draw and plot objects
Next Topic: Function minimization in IDL/WAVE

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

Current Time: Wed Oct 08 19:17:38 PDT 2025

Total time taken to generate the page: 0.00480 seconds