Text Formatting ⇒ Problem with lstlisting
Problem with lstlisting
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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10330
- Joined: Mon Mar 10, 2008 9:44 pm
Problem with lstlisting
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