LyXcitation help

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
MeganGentry
Posts: 8
Joined: Thu Nov 18, 2010 8:05 pm

citation help

Post by MeganGentry »

hi,
I'm using lyx to write a thesis, where I have to cite two sources with the same author and year. So, the first one cited should appear as "Gentry and Lackmann 2010a" and so forth. However, when I convert my lyx document to a pdf, the a and b are switched from what they should be.
I have them listed in my .bib as (just the first line)...
@article{Gentry.Lackmann.2010a,
then...
@preprints{Gentry.Lackmann.2010b,

I cite the article first, and (even though I put an "a" in the .bib file as you see above), it still appears as "Gentry and Lackmann 2010b" in my pdf.

Does lyx automatically attach an a or b to citations that have the same author and year like this? If so, why is it getting it wrong? I thought I had fixed this by putting an a and b in my bib file as above, but it still appears opposite of what it should.

Thanks for any help. One grad student with a deadline will be very happy :)

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: citation help

Post by frabjous »

LyX doesn't really have anything to do with this. The behavior is set by the BibTeX bibliography style file (bst). Which one are you using?
MeganGentry
Posts: 8
Joined: Thu Nov 18, 2010 8:05 pm

Re: citation help

Post by MeganGentry »

I am using a file called ametsoc.bst
It's in a format according to the American Meteorological Society.
I got it from going to this webpage and downloading the AMS's latex template.
http://www.ametsoc.org/pubs/journals/ma ... lates.html

Is there a section that I should cut and paste into my post here?
MeganGentry
Posts: 8
Joined: Thu Nov 18, 2010 8:05 pm

Re: citation help

Post by MeganGentry »

Ok, I figured out how the a's and b's are being assigned to my citations... It goes alphabetically by the title. I wanted it to go by the order that I cite them in the text. But I don't know how to change the rules by which it assigns the letters. Any help there?
Thanks,
Megan
Post Reply