Generalinconsistent listing line numbers

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
kelly
Posts: 1
Joined: Tue Apr 13, 2010 2:52 pm

inconsistent listing line numbers

Post by kelly »

Hi,

I do not understand why my lstlisting snippets become inconsistent (i.e., the listing code displays line numbers every "n" lines) when I use a predefined template. "n" changes among the different listings I have.
I have indicated "stepnumber=1" however the error persists.
The predefined template is quite tricky, I do not know if there exists kind of macro breaking my listings. How can I figure out such a macro?
My listings work when I use (for example) llncs.cls. My latex editor is TexnicCenter, and the latex compiler is miktex.

Please let me know if you have an idea about what is happening.

Thank you.

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
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

inconsistent listing line numbers

Post by gmedina »

Hi,

without some code we cannot provide effective help. Please post a minimal working example allowing us to reproduce the problem mentioned.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply