LyXnatbib | Multiple Citations and different Page Numbers

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
beigedeath
Posts: 2
Joined: Fri Jul 29, 2011 4:47 am

natbib | Multiple Citations and different Page Numbers

Post by beigedeath »

Hi,

I am trying to use the citation tool to add multiple citations, each with different page numbers, to a Lyx document. The style I am using is Harvard, and I am using Natbib.

What I would like is something like this:
(Jones, 2010, p. 12; Smith, 2003, pp. 21 - 23)

What I am doing now is bringing up the citation dialog and adding the entries to the list on the right. However, I would normally put the page numbers referenced in the text after box, but as I have more than one entry this will only appear after the last entry in the list. Is there a way to insert text between the entries so I can get something like above?

Thanks. :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

paul
Posts: 49
Joined: Thu Apr 08, 2010 5:56 am

natbib | Multiple Citations and different Page Numbers

Post by paul »

beigedeath wrote:Hi,

I am trying to use the citation tool to add multiple citations, each with different page numbers, to a Lyx document. The style I am using is Harvard, and I am using Natbib.

What I would like is something like this:
(Jones, 2010, p. 12; Smith, 2003, pp. 21 - 23)

What I am doing now is bringing up the citation dialog and adding the entries to the list on the right. However, I would normally put the page numbers referenced in the text after box, but as I have more than one entry this will only appear after the last entry in the list. Is there a way to insert text between the entries so I can get something like above?

Thanks. :)
Not in a single \citep, no. Use \citetext{\citealp[p.~12]{jones2010}; \citealp[pp.~21--23]{smith2003}} (there ought to be some way to get the ";" separator from the citation-style, but there isn't. Well, it's available as \NAT@sep, but that's not a very useful name...as for how to do it in LyX: no idea)
beigedeath
Posts: 2
Joined: Fri Jul 29, 2011 4:47 am

Re: natbib | Multiple Citations and different Page Numbers

Post by beigedeath »

Oh ok... Looks like I'll have to put the code in manually, like you said.

I'll try it when I next get the chance.

Much appreciated. :)
Post Reply