[Journal] A little help with LaTex.
Sunburned Surveyor
sunburned.surveyor at gmail.com
Wed Feb 24 11:27:44 EST 2010
If I use the Listings package in one of my articles will it cause
problems for the people working on the main Tex file?
Landon
On Sat, Feb 20, 2010 at 1:35 AM, Markus Neteler <neteler at osgeo.org> wrote:
> On Fri, Feb 19, 2010 at 9:44 PM, Sunburned Surveyor
> <sunburned.surveyor at gmail.com> wrote:
>> I need to ask for a little help with LaTex. I'm working on the
>> conversion of the "GPGPU with GDAL" article.
>>
>> Is there a special way I should be formatting source code within the article?
>
> The `listings' package is a source code printer for LaTeX.
> http://ctan.org/pkg/listings
>
> See details at
> http://en.wikibooks.org/wiki/LaTeX/Packages/Listings
>
> Untested example (from [1]):
>
> \documentclass{article}
> \usepackage{listings}
> \begin{document}
> \lstset{language=C}
> \begin{lstlisting}
> main ()
> { int pid;
> switch (pid = fork())
> ....
> \end{lstlisting}
> \end{document}
>
> Markus
>
> [1] http://www.latex-community.org/forum/viewtopic.php?f=46&t=6958
>
More information about the newsletter
mailing list