BibTeX, biblatex and biber ⇒ citations coming out as numbers rather than authordate
-
- Posts: 2
- Joined: Sat Aug 29, 2009 4:43 pm
citations coming out as numbers rather than authordate
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
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
citations coming out as numbers rather than authordate
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}
-
- Posts: 2
- Joined: Sat Aug 29, 2009 4:43 pm
Re: citations coming out as numbers rather than authordate
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.