# biblatex, authoryear-icomp: brackets around the year in footnotes

I use biblatex with the cite-style authoryear for footnotes, which results in

Chang et al. 2005, p. 1116.

Faculty guidelines require

Chang et al. (2005), p. 1116.

though.

Which files need to be modified to achieve this? I could only find questions about the inline-citations or the bibliography so far.

My biblatex options are:

\usepackage[bibstyle=authoryear, autocite=footnote, dashed=false, firstinits=true,
citestyle=authoryear-icomp]{biblatex}
\let\cite\autocite


I then cite via ~\cite[1116]{chang05x}.

-
Meh, found it: tex.stackexchange.com/a/30822/10434 –  dhst Jan 3 '12 at 10:21
Does this answer help? tex.stackexchange.com/questions/30819/problem-footcite-biblatex –  Legolas Jan 3 '12 at 10:22
Note that this does not work with authoryear-icomp when multiple works of the same author occur in one citation, since the output would look like, e.g., “Knuth (1986a),b”. –  domwass Jan 3 '12 at 10:34
True. I worked around it by simply using authoryear now. –  dhst Jan 3 '12 at 16:06

You could define a \foottextcite macro based on \textcite (i.e., with braces).

EDIT: The example now uses style=authoryear-icomp.

EDIT 2: Added code for new option autocite=foottext which maps \autocite to \foottextcite.

\documentclass{article}

\usepackage[style=authoryear-icomp]{biblatex}

% The following is based on \textcite
{\usebibmacro{cite:init}}
{\usebibmacro{citeindex}%
\usebibmacro{textcite}}
{}
{\usebibmacro{textcite:postnote}}

\DeclareMultiCiteCommand{\foottextcites}[\mkbibfootnote]{\foottextcite}{\multicitedelim}
\DeclareAutoCiteCommand{foottext}[l]{\foottextcite}{\foottextcites}
\ExecuteBibliographyOptions{autocite=foottext}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@misc{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
\end{filecontents}

\textheight=120pt% only for the example

\begin{document}

Some text \autocite{A01,B02}.

\printbibliography

\end{document}


EDIT 3: For the sake of completeness, here's the \foottextcite definition suitable for authoryear:

% The following is based on \textcite
{\boolfalse{cbx:parens}}
{\usebibmacro{citeindex}%
\usebibmacro{textcite}}
{\ifbool{cbx:parens}
{\bibcloseparen\global\boolfalse{cbx:parens}}
{}%
\multicitedelim}
{\usebibmacro{textcite:postnote}}

-
This does not work with authoryear-icomp (the citestyle that @Daniel used). It gives, e.g., “Knuth (1986a); b.” –  domwass Jan 3 '12 at 10:39
@domwass: I was only looking at the question title which said citestyle=authoryear. –  lockstep Jan 3 '12 at 10:41
Thank you for this great reply, lockstep. I'll work through this now. It might be superior to the other option, because I could still use the icomp-version of authoryear. –  dhst Jan 3 '12 at 16:10

You can use \textcite for in text citations complete with parentheses. If this is your preferred citation, then you can make this the default behaviour of the \cite command like so:

\let\cite\textcite

-
This answer is actually inapplicable. It's not clear from the question, but I think the OP is looking for footnote citations with parentheses. Still, for anyone else, this might be useful. –  Seamus Jan 3 '12 at 10:37
Thanks for pointing that out, but I indeed require footnote-citation. The problem seems solved though. –  dhst Jan 3 '12 at 16:07