Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using BibLaTeX-apa to cite references, but I'm having trouble getting a citation to print out (, ) when I reference to it in the main text. I'm using the \parencite command as is advised on the first page of the biblatex-apa-test documentation and what I get is ( ), that is, without the comma.

I've been trying to write a minimal example but I haven't figured out how to create database within the document so the example I provide uses my own database.

\documentclass{article}
\usepackage[bibstyle=apa, style=authoryear]{biblatex}
\usepackage[american]{babel}
\usepackage{csquotes}
\DeclareLanguageMapping{american}{american-apa}
\addbibresource{/library.bib}
\begin{document}
Test \parencite{Lamme2006}.
\printbibliography
\end{document}
share|improve this question

1 Answer 1

up vote 4 down vote accepted

Styles are applied in the order they are set. Looks like you want apa for both the bibliography and citation styles so just use style=apa instead of bibstyle=apa,style=authoryear.

For reference, you can use different styles in the same document. Some more information can be found in this question.

share|improve this answer
    
Thanks for the suggestion. Same problem though. –  Speldosa Aug 19 '11 at 15:38
    
@Speldosa style sets both the citation and bibliography styles. Why not just use style=apa instead of bibstyle=apa, style=authoryear? –  Audrey Aug 19 '11 at 15:59
    
Actually I've always used style=apa to set both bibstyle and citestyle to apa. I'd always get the comma that way. –  LianTze Lim Aug 19 '11 at 15:59
    
@LianTze The styles are applied in the order they are specified. So setting style=authoryear afterward undoes the edit you suggested. –  Audrey Aug 19 '11 at 16:05
    
@Audrey Why? Because I'm an idiot :) It worked. Thanks. Provide it as an answer an I'll accept it. –  Speldosa Aug 19 '11 at 17:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.