9

Footnote citations in biblatex ignore spacing before the citation command; how can I have the same behavior for all footnotes in a document?

Here's a MWE demonstrating the issue:

\documentclass{article}
\usepackage[style=verbose-trad2]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
Spacing is fine before citations     \autocite{kant:kpv} 
but not before footnotes    \footnote{A footnote \autocite{kant:ku}}.
\end{document}

mwe

  • 3
    \let\oldfootnote\footnote\def\footnote{\ifhmode\unskip\fi\oldfootnote probably works – David Carlisle May 6 '16 at 13:40
  • @DavidCarlisle An answer, please – egreg May 24 '16 at 9:09
13
\let\oldfootnote\footnote
\def\footnote{\ifhmode\unskip\fi\oldfootnote}

probably works.

\unskip is a tex primitive to remove the previous skip (space) and here it's guarded by an \ifhmode test to check that you only do this if you are in horizontal mode within a paragraph not (for some reason) at the start of a paragraph when \unskip would (depending on the context) give an error or remove the vertical space before the paragraph.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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