[OS X TeX] Beginner problem with lstlisting

Maarten Sneep maarten.sneep at xs4all.nl
Wed Feb 16 17:39:01 CET 2005


On 16 feb 2005, at 17:25, Doug Fields wrote:

> I apologize for posting such a beginner problem, as I'm just learning.  
> I managed to get a simple hello world working with latex and the DVI  
> to PDF conversion tools (command line) happily, but then following a  
> setup tutorial here:
>
> http://www.cs.wright.edu/~jslater/mac-tex/mac-tex-intro/ 
> mactexintro.html
>
> I was unable to get the more complicated example to work due to an  
> error with the initial line:
>
> \begin{lstlisting}

This must be a mistake in the translation from tex to html, since it  
_should not be there_ at all.

Remove the \begin{lstlisting} and \end{lstlisting} lines, and try again.

Maarten.

PS. The lstlisting environment is part of the listings package, meant  
to typeset various programming
languages in a nice manner, including LaTeX itself. That is why Joe  
used it, but somehow it got
through into the html. OTOH, I had a look at teh code of the article,  
and it appears to be a genuine
mistake (the \begin{lstlisting} appears inside a verbatim environment,  
it should be used on its own).

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list