LyXCitation with multiple authors

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
sid
Posts: 2
Joined: Fri Nov 19, 2010 6:47 am

Citation with multiple authors

Post by sid »

Hello,

I have two citations: The first is AuthorA,Author B "XXX" 2012 and the second is AuthorA,AuthorC "YYYY" 2012.

Now when I cite the first paper it shows up as (AuthorA and AuhorB, 2012a) and the second paper shows up as (AuthorA and AuhorC, 2012b) . I don't want the "a" to show up because it is not the same set of authors for the two articles. I am using natbib and elsarticle-harv. Can somebody please help me fix this?

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Citation with multiple authors

Post by kaiserkarl13 »

This works for me. Here's what I did:

Code: Select all

@article{Smith2012a,
    author  = "Smith, John A. and Doe, Jane R.",
    title   = "Blah",
    journal = "Stuff",
    volume  = 13,
    pages   = "14--16",
    year    = 2012
}

@article{Smith2012b,
    author  = "Smith, John A. and Jones, David R.",
    title   = "Blah",
    journal = "Stuff",
    volume  = 13,
    pages   = "24--36",
    year    = 2012
}
And here's the LaTeX file:

Code: Select all

\documentclass{article}
\usepackage{natbib}
\begin{document}
Here is text~\citep{Smith2012a}, and here is another
citation~\citep{Smith2012b}.
\bibliographystyle{elsarticle-harv}
\bibliography{sid}
\end{document}
By the way, you'll save me and anyone else who might reply to your posts a lot of time by providing a Infominimal working example such as the one above---that way we can see what you've done without making something up, and if we do need to try it out, all we need to do is copy it and put it into our editor.
Post Reply