On 18/01/2011 6:06 AM, Frédéric Perez wrote:
Hi,
I just got into some minor issue with the handling of the natbib package in
Lyx 2.0.0b3. There is a "merge" option in natbib that allows for
concatenating two bibliographic entries into a single one. Adding this
option to the package allows for changing the usual command
\cite{ref1, ref2}
to
\cite{ref1, *ref2}
so that ref1 and ref2 appear in the same entry.
It appears that this is not handled in Lyx. I found a simple workaround:
just add the the "merge" option to the document class options, then, write
"\cite{ref1, *ref2}" in a latex code box instead of using the built-in
citation tool in Lyx. That works fine, but prevents from using this Lyx
tool. A new checkbox in the Lyx:Citation window for this feature would be
very nice ;)
Cheers
fred
I agree that supporting this feature would be nice. But LyX would have
to verify that the version of natbib is recent enough.
Besides your workaround, there is another workaround: Use the normal
citation tool to select your ref1 and ref2. Save and close your file in
LyX. Open your file in a text editor, look for ref2 and replace it by
*ref2. Save and reopen the file in LyX.
The LyX window will be a little confused---since it can't find the *ref2
key in your bib file---but the pdf output is as expected (tested with
LyX 1.6.x)
--
Julien