BibTeX, biblatex and bibercitations coming out as numbers rather than authordate

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
lewhiteley
Posts: 2
Joined: Sat Aug 29, 2009 4:43 pm

citations coming out as numbers rather than authordate

Post by lewhiteley »

Hi -

I'm using TeXShop to write my thesis using the 'report' class, and am having a frustrating problem with referencing. I'm loading the natbib package in my .cls file, and requesting \bibliographystyle{apalike} in my main wrapper. However, my citations appear in the text as numbers rather than author (date), and the bibliography is also numbered (though in alphabetical order). My bib file is a copy of an exported text file from EndNote reference manager, and I have used this setup before without any problems... I've also scanned my .cls and main .tex file for any references to the bibiography that could be causing the problem, but no joy.

The contents of the natbib package, and the apalike folder, are all in the same directory as the main .tex wrapper.

Any ideas would be very much appreciated!

Thankyou in advance,

Louise

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

citations coming out as numbers rather than authordate

Post by gmedina »

Hi,

perhaps you are using some package (or package option) that causes the undesired behaviour. The following simple code works OK in my system:

Code: Select all

\begin{filecontents*}{biblio.bib}
@book{goossens93,
	author = "Michel Goossens and Frank Mittlebach and Alexander Samarin",
	title = "The Latex Companion",
	year = "1993",
	publisher = "Addison-Wesley",
	address = "Reading, Massachusetts"
}
\end{filecontents*}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{book}
\usepackage{natbib}

\begin{document}

\citep{goossens93}

\bibliographystyle{apalike}
\bibliography{biblio}

\end{document}
To let us provide effective help, please post a miniaml working example that allows us to reproduce the strange behaviour mentioned.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
lewhiteley
Posts: 2
Joined: Sat Aug 29, 2009 4:43 pm

Re: citations coming out as numbers rather than authordate

Post by lewhiteley »

Hi -

Thanks very much for your reply - I stripped down the files to the minimal code you suggested and was still getting the problem, so I tried getting rid of all the bibtex files and packages in the folder and starting again which seems to have worked, I suspect maybe it was calling first on an outdated .sty file or similar.

Thanks again,

Louise.
Post Reply