Generallistings wierdness

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
zigga150
Posts: 7
Joined: Thu Sep 10, 2009 9:35 am

listings wierdness

Post by zigga150 »

Hey all,

Just doing my thesis (using a template with a makefile and everything).

In one of my lstlistings boxes, wherever I have a space I am getting a weird underscore looking thing.

Any help would be great.

~ Dan

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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: 10335
Joined: Mon Mar 10, 2008 9:44 pm

listings wierdness

Post by Stefan Kottwitz »

Hi Dan,

use the option showstringspaces=false with \lstset.

Stefan
LaTeX.org admin
zigga150
Posts: 7
Joined: Thu Sep 10, 2009 9:35 am

Re: listings wierdness

Post by zigga150 »

Thanks very much :)
Post Reply