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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10358
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