lyx-1.6.2 fedora f10 In a beamer doc, I start a frame. Then try to insert program listing.
1. If I simply paste in code, it is not verbatim - all the lines got wrapped! 2. Even trying some trivial code example, I get: ! LaTeX Error: \begin{lstlisting} on input line 132 ended by \end{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.133 \end{document} Your command was ignored. Type I <command> <return> to replace it with another command, or <return> to continue without it. (./numpy.aux) ! You can't use `\end' in internal vertical mode. \enddocument ... \endgroup \deadcycles \z@ \@@end l.133 \end{document} Sorry, but I'm not programmed to handle this case; I'll just pretend that you didn't ask for it. If you're in the wrong mode, you might be able to return to the right one by typing `I}' or `I$' or `I\par'. ! LaTeX Error: \begin{lstlisting} on input line 132 ended by \end{document}. The offending latex code looks like: \lyxframe{Generic Programming with C++} \begin{lstlisting} def whatever(): whatever \end{lstlisting} \lyxframeend{} \end{document}