General ⇒ inconsistent listing line numbers
inconsistent listing line numbers
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.
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
inconsistent listing line numbers
without some code we cannot provide effective help. Please post a minimal working example allowing us to reproduce the problem mentioned.