BibTeX, biblatex and biberSame authors, two papers, one year citations

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
tammy
Posts: 1
Joined: Thu Apr 23, 2009 2:13 pm

Same authors, two papers, one year citations

Post by tammy »

Hi,

I am new to lyx and referencing and I hope someone can help.
I edit my references using Notepad and I have a windows based version of lyx, which I am writing my masters on.
I have two papers, written by the same authors in the same year. My reference in the text should look like this:

author and author, 2003a
author and author, 2003b

But when I extract the pdf of my work, the reference looks like this:

author and author, 003a

The program is taking the last four digits of the year category and I am losing the "2". How do I change this. I am using bib style apalike.

Many thanks

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Re: Same authors, two papers, one year citations

Post by kaiserkarl13 »

I think I've figured out your problem, but without seeing your BibTeX database I won't know for sure. My guess is that you're entering your papers like this:

@article{author2003a,
author = "author and author",
year = "2003a"
}
@article{author2003b,
author = "author and author",
year = "2003b"
}

This causes problems because the year can only hold four digits (and it therefore cuts the first number off). The apalike style file figures out automatically that there should be an a and a b, so you don't have to list it explicitly. Use the following instead:

@article{author2003a,
author = "author and author",
year = 2003
}
@article{author2003b,
author = "author and author",
year = 2003
}

(putting in the title, pages, etc., of course). This should solve your problem.
Post Reply