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 trying to use \autocite feature with biblatex-apa, but it seems that the \autocite macro is not defined in biblatex-apa 5.7 (and biblatex 2.5). Example code follows:

\documentclass[a4paper]{article}
\usepackage{fontspec} % using XeLaTeX
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@BOOK{Husserl1962,
  author = {Edmund Husserl},
  title = {Die {Krisis} der europäischen {Wissenschaften} und die
    transzendentale {Phänomenologie}},
  publisher = {Martinus Nijhoff},
  year = {1962},
  address = {Haag},
  series = {Husserliana},
  edition = {2},
  type = {Husserliana VI}
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
Phenomenology is always fun \autocite{Husserl1962}.

\printbibliography
\end{document}

This results in the following error:

! Undefined control sequence.
l.25 Phenomenology is always fun \autocite
                                          {Husserl1962}.

A quick fix would of course be to add \let\autocite=\parencite before \begin{document}, but I guess that should rather be a part of apa.cbx or something.

share|improve this question
    
A quick fix would of course be to add \let\autocite=\parencite before \begin{document}, but I guess that should rather be a part of apa.cbx or something. –  bluebirch Mar 29 '13 at 13:31
    
I edited your question to add your comment. –  Benedikt Bauer Mar 29 '13 at 22:58
1  
This will be added in version 5.9 shortly when biblatex 2.6 and biber 1.6 are released. –  PLK Mar 31 '13 at 0:13
add comment

2 Answers 2

up vote 3 down vote accepted

Just wanted to add that the \let\autocite=\parencite does not work for me; found another solution which does. While calling biblatex add an option autocite=inline

like so:

\usepackage[style=apa,sortcites=true,sorting=nyt,backend=biber,autocite=inline]{biblatex}

Have pasted the complete invocation as I don't know enough latex to figure out whether any other option is necessary or not.

share|improve this answer
    
This is the correct way to do it; redefining \autocite with \let is a dirty hack. –  bluebirch Jun 4 '13 at 12:13
add comment

PLK wrote:

This will be added in version 5.9 shortly when biblatex 2.6 and biber 1.6 are released.

share|improve this answer
add comment

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.