On 07/28/2011 10:28 PM, André wrote:
> Hello.
>
> I'm using LyX 2.0.0 on OSX. I'm having a strange error when I try to
> view the PDF of my lyx file. I removed all the content and left only
> the relevant parts that produce the error that are some 20 citations
> and the corresponding bib file that has these references with no
> content.
>
> The error is:
> {/usr/local/texlive/2010/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
> Runaway argument?
> URL(2011{\natexlab {{}})]{URLVendingWorld} 2011{\natexlab {{}}.
> ! Paragraph ended before \@lbibitem was complete.
> <to be read again>
>                    \par
> l.88
>
> I suspect you've forgotten a `}', causing me to apply this
> control sequence to too much text. How can we recover?
> My plan is to forget the whole thing and hope for the best.
>
> ! Argument of \@lbibitem has an extra }.
> <inserted text>
>                 \par
> l.92 \bibitem[URL(2011{\natexlab{}}}
>                                     )]{URLwxWidgets}
> I've run across a `}' that doesn't seem to match anything.
> For example, `\def\a#1{...}' and `\a}' would produce
> this error. If you simply proceed now, the `\par' that
> I've just inserted will cause me to report a runaway
> argument that might be the root of the problem. But if
> your `}' was spurious, just type `2' and it will go away.
>
>
> If I change the references style from "plainnat" to "plain" the errors
> disappear, but I would like to understand what is going on. If I
> remove ANY reference, the error message changes. If I remove ANY 2
> references, the errors also go away...
>
> Attached is the simple lyx and bib files. Is this a LyX error or
> should I be asking somewhere else?
>
Looks like some sort of bug in natbib. Here's the end of the auxfile:

\bibcite{URLPython}{URL(2011{w})}
\bibcite{URLSCL3711}{URL(2011{x})}
\bibcite{URLSpongyCastle}{URL(2011{y})}
\bibcite{URLUSBBug}{URL(2011{z})}
\bibcite{URLwxPython}{URL(2011{|})}

That last one is what is causing the problem.

Richard

Reply via email to