I'm using BibLaTeX to handle my bibliography and I want a reference to be placed in a footnote on every page where I cite the same work and have the same number. Also I want to be able to cite the same work on one page several times. The latter could be done by using the code from the Joseph Wright's blog. However, it puts a reference in a footnote only once.

  • Do you mean that if you cite an article (say: John Smith (2008). 'An Aritlce' Some Journal 63: 1--20.) five times on one page, you will get five different footnotes at the bottom of the page all with the same number? Also: you need to say what citation 'style' you need to use (author-year, author-title, apa, Chicago, etc.)? Perhaps posting a mock document that shows how everything is supposed to look would help. – jon Sep 14 '12 at 14:55

There are a number of TeX.SE posts on Joseph's citation style. One of them asks about limiting the \ifciteseen to the current page. The accepted solution takes an excessive number of LaTeX runs to compile and doesn't sort footnotes.

The new citation command \sfcite defined in the document below addresses these limitations. It also correctly handles labelnumber prefixes and shorthands.


% user-level citation command
   \iffieldundef{prenote}{}{\BibliographyWarning{Ignoring prenote argument}}%
   \iffieldundef{postnote}{}{\BibliographyWarning{Ignoring postnote argument}}}

% save instcount, save key and last inline instcount if seen first on page



% defer citation footnotes to last inline reference instance on page
  \ifboolexpr{ not test {\ifdefempty{\cbx@savelist}}
               and test {\ifnumequal{\value{instcount}}{\value{cbx@tempcntd}}} }

% print footnotes in 'sorting' order

% access internal list of sorted entry keys
    {blx@dlist@entry@\the\c@refsection @\blx@refcontext@context}}

New citation.\sfcite{companion}
New and recurrent citations.\sfcite{kant:ku,companion}
Vanilla footnote with citation.\footnote{Following \textcite{companion}...}
New citation.\sfcite{ctan}
Recurrent citations from previous and current pages.\sfcite{companion,ctan}

Here are the citations from the first page:

enter image description here

And the second:

enter image description here

Printing of citation footnotes is deferred to the last inline citation, list of shorthands entry or bibliography item on the current page. This might pose a limitation if the document also contains regular footnotes, but can likely be resolved by using a package like manyfoot.

| improve this answer | |
  • I couldn't find that post... Thank you very much! This works perfectly. – Ilya Makarov Sep 14 '12 at 18:46
  • 2
    @Big-Blue Editing your duplicate post won't bump it to the front page. The "bug" is due to the fact that you're recycling page identifiers, which mucks up page tracking. Instead of \pagenumbering redefine \thepage. For example add \newcounter{lastpage} and \preto{\appendix}{\setcounter{lastpage}{\value{page}}\clearpage\renewcommand{\thepage}{\RN{\numexpr\value{page}-\value{lastpage}}}} to your preamble and use \appendix in the document body. – Audrey Nov 26 '13 at 2:06
  • 1
    Forgot hyperref will want \thepage to be expandable. For lowercase roman appendix page numbers use \renewcommand{\thepage}{\romannumeral\numexpr\value{page}-\value{lastpage}}. For uppercase \makeatletter\renewcommand{\thepage}{\expandafter\@slowromancap\romannumeral\numexpr\value{page}-\value{lastpage}@}}\makeatother. – Audrey Nov 26 '13 at 22:08
  • 1
    @Daniel After the line \blx@setoptions@entry insert \csuse{blx@hook@citekey}% and use the hook \AtEveryCitekey{\clearfield{url}\clearfield{urlyear}\clearlist{pageref}}. I haven't tested this, so if you run into trouble ask a new question. – Audrey May 14 '15 at 18:30
  • 1
    Could this piece of code be transformed into a new biblatex option? – pluton Dec 19 '15 at 18:33

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.