I have the following in my LateX code:
\begin{enumerate}
\item
\begin{lstlisting}
x = [x for x in xrange(4, 9)]
\end{lstlisting}
\item
\begin{lstlisting}
x = [x for x in xrange(6)]
\end{lstlisting}
\item
\begin{lstlisting}
x = [x for x in xrange(6)]
\end{lstlisting}
\item
\begin{lstlisting}
x = [x for x in xrange(6)]
\end{lstlisting}
\item
\begin{lstlisting}
x = [x for x in xrange(6)]
\end{lstlisting}
\item
\begin{lstlisting}
x = [x for x in xrange(6)]
\end{lstlisting}
\item
\begin{lstlisting}
x = [x for x in xrange(6)]
\end{lstlisting}
\item
\begin{lstlisting}
x = [x for x in xrange(6)]
\end{lstlisting}
\item
\begin{lstlisting}
x = [x for x in xrange(6)]
\end{lstlisting}
Now, the result I get overlaps/overwrites positions for the numberings:
This obviously, not what anyone would want to do. How can I fix the numbering?
Thanks for all the help?
Best Answer
Leave a blank line (or use
\par
):Or use
\lstinline
: