[Tex/LaTex] Biblatex: \textcite style in footnotes

biblatexfootnotes

I would like to use the \textcite style: "Author (year, pages)" in the \footcite as well. I could do \footnote{\textcite}, but I was wondering if it would be possible to change the \footcite to work in the \textcite format, or better, using \autocite (so I can switch between in-line and footnote).

EDIT

This a working example:

\documentclass[a4paper,12pt]{article}

\usepackage[hyperref=true,natbib=true,style=authortitle,
citestyle=authoryear,sorting=nyt,
autocite=footnote,
%autocite=inline,
%citestyle=authoryear-ibid,  %% Eventually will use this
backend=biber]{biblatex}

\listfiles
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}

@book{Smith96,
author = {Amith, Adam},
year = {1996},
title = {Economy},
publisher = {My company} 
}

\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

This is a textcite \textcite[96]{Smith96} and this is the textcite in a footnote\footnote{\textcite[128]{Smith96}}.

This is a footcite \footcite[300-320]{Smith96} and this an autocite \autocite[98-34]{Smith96}

\printbibliography
\end{document}

The result with standard autocite=inline:
enter image description here

The result with autocite=footnote:
enter image description here

I would like footnote and autocite in the same format as textcite: Author (year, pages)

Thank you!

Best Answer

I'm using something similar to what you're looking for. You may have a look at that as well, but first, here's what you're looking for:

\documentclass{scrartcl}
\usepackage{lipsum}
\usepackage[style=authoryear,autocite=footnote]{biblatex}
\addbibresource{biblatex-examples.bib}

%this is a mere copy of the \textcite definition, with added [\mkbibfootnote], and renamed to \footcite
\DeclareCiteCommand{\footcite}[\mkbibfootnote]
  {\boolfalse{cbx:parens}}
  {\usebibmacro{citeindex}%
   \iffirstcitekey
     {\setcounter{textcitetotal}{1}}
     {\stepcounter{textcitetotal}%
      \textcitedelim}%
   \usebibmacro{textcite}}
  {\ifbool{cbx:parens}
     {\bibcloseparen\global\boolfalse{cbx:parens}}
     {}}
  {\usebibmacro{textcite:postnote}}

\begin{document}
testing.\footcite[123]{malinowski}
\end{document}

enter image description here

What I did was take the definition of \textcite, and from the one of \footcite add to it the [\mkbibfootnote] bit. Have a look at the manual, it's all there. I named it \footcite, so the result is a command that (I hope) does everything \textcite does, except it does it in a footnote. Can we use that with autocite as well? Sure, I guess all it would take is a look at what routines are trigged by \autocite (with autocite=footnote) and change them so they use the new \footcite.

That said, I think those parentheses are somewhat useless (unless you really have actual text around the citation).

Related Question