Possible Duplicate:
backgroundcolorinlstsetdoes not work
I've recently changed my document skeleton and now my code segments, defined with \begin{lstlisting}...\end{lstlisting}, changed from looking like this:
1 code line
2 code line
3 code line
to looking like this:
2
code line
code line
code line
My listing definition is as follows:
\usepackage{listings}
\lstset{basicstyle=\ttfamily\scriptsize,emph={fence},emphstyle={\underbar},numbers=left,escapeinside={(*@}{@*)}}
After pruning my configuration I was able to pinpoint the culprit:
\RequirePackage[hebrew,english]{babel}
Apparently the lstlisting environment has an issue with Hebrew. How can I solve this?
\listfilesin your preamble and extract the contents after*File List*in your.logfile). – Werner May 15 '12 at 15:47\lstsetsettings seem sufficient to produce the intended output, so there's not much else but an MWE that would help. Bizarre behaviour is sometimes the result of outdated packages (hence my\listfilessuggestion). Also include your TeX Distribution (TeX Live, or MiKTeX) and operating system (Windows, Mac, Linux). – Werner May 15 '12 at 16:05