On Thu, Mar 20, 2008 at 4:00 AM, Bob Lounsbury <[EMAIL PROTECTED]> wrote: > > Hopefully someone with more knowledge will respond soon. LyX 1.6 is > still in svn, so I can't open you're lyx file and importing the tex > file makes it more confusing.
It's not only an LyX 1.6.0 issue, just tried it with LyX 1.5.4 (see the attached file test-1.5.4.lyx): same error. I just found out, what went wrong: it seems to be a simple LyX->LaTeX generating error. LyX generates the following LaTeX extract: \begin{lstlisting}[caption={\label{lst:listing2}Listing}] Listing2 \end{lstlisting} As you can see, the \label-command is inside the caption definition. The listings package doesn't seem to like it that way. Changing the LaTeX source code to \begin{lstlisting}[caption={Listing}, label={lst:listing2}] Listing2 \end{lstlisting} does the trick. I attached some exemplary LaTeX code and generated pdf files. See error-manual-test.* for the files with failures and manual-test.* for the corrected version. Dominik
test-1.5.4.lyx
Description: application/lyx
error-manual-test.pdf
Description: Adobe PDF document
error-manual-test.tex
Description: TeX document
manual-test.pdf
Description: Adobe PDF document
manual-test.tex
Description: TeX document