Hello everyone,
I'm using lstlisting to display some C++ code in my document. I'm also using pdflatex to compile it. Although, when I compile the document, pdflatex gives me errors in all my "cout << ..." expressions letters with ~´`^.
The error only appears with lstlisting environment...In the rest of the document this error doesn't appear and everything appears like it should.
Is there a way to fix this?
Thanks in advance.
João
Text Formatting ⇒ Problem with lstlisting
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Problem with lstlisting
Hi João,
welcome to the board!
It would be easier to help if you would tell us the error messages. But more important: if you post a minimal working example, compilable and showing the problem, everybody could test it to find a solution. Until now we don't know what you've done with \lstset etc.
Stefan
welcome to the board!
It would be easier to help if you would tell us the error messages. But more important: if you post a minimal working example, compilable and showing the problem, everybody could test it to find a solution. Until now we don't know what you've done with \lstset etc.
Stefan
LaTeX.org admin