Created
November 24, 2018 01:52
-
-
Save guimondmm/88d8c6dcc0cc638e4ed7b9b9c7dc60a9 to your computer and use it in GitHub Desktop.
Better footnote citations and text citations for biblatex-apa 7.7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% This code snippet patches bugs with \footcite(s) and \textcite(s) in biblatex-apa 7.7 <https://ctan.org/pkg/biblatex-apa> | |
% The biblatex-apa package is (c) 2018 Philip Kime, licensed under LPPL v1.3 <http://www.latex-project.org/lppl.txt> | |
% The default behaviour of \footcite is more akin to \cite than \textcite, and it looks jarring when the latter is also used. | |
% Additionally, biblatex-apa prints extraneous spaces, commas or semi-colons when using \textcites and \footcites. | |
% Just paste the following code in your preamble: | |
\DeclareAutoCiteCommand{footnote}[f]{\footcite}{\footcites}% allows the use of [autocite=footnote] (cf. biblatex doc 3.1.1) | |
\DeclareCiteCommand{\footcite}[\mkbibfootnote]% redefines \footcite to use textcite (i.e. year & postnote in parentheses) | |
{\renewcommand{\compcitedelim}{}% removes extraneous comma | |
\bibsentence\usebibmacro{cite:init}\usebibmacro{prenote}} | |
{\usebibmacro{citeindex}\usebibmacro{textcite}}{} | |
{\usebibmacro{textcite:postnote}\usebibmacro{cite:post}} | |
\DeclareMultiCiteCommand{\textcites}{\textcite}{}% fix a bug with \textcites (extraneous space in multicite) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment