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:

Spacing is fine before citations     \autocite{kant:kpv} 
but not before footnotes    \footnote{A footnote \autocite{kant:ku}}.


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

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.

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.