Re: using verbatim



Paminu <jadajada@xxxxxxx> wrote:

> I have this in a .tex file:
>
> http://photos1.blogger.com/blogger/3626/1346/1600/verbatim1.jpg
>
> But when I compile it I get this:
>
> http://photos1.blogger.com/blogger/3626/1346/1600/verbatim2.jpg
>
>
> For some reason the comments are not aligned beneath each other as in
> the .tex file. How do I make something look exactly like in my .tex file?
> And why do the compiled verbatim segment look different??

You are using tabs instead of spaces. A tab is just the same
as a normal space, in the LaTeX kernel verbatim environment
(and it appears to be ignored at the start of a line).

Use the package verbatim or, better, listings.

Ciao
Enrico
.