# [Tex/LaTex] Biblatex, Footnote Citations and Numbers in Bibliography

biblatexfootnotes

I'm writing a document where I'm using biblatex (with BibTeX as back-end). In my document I would like to have citations as footnotes, "normal" footnotes containing text and at the end a consolidated bibliography of the references my document contains.

There is only one, quite small, issue. I would like the final bibliography to also display the footnote number associated with the citation. How do I accomplish that?

The references at the end should then appear as:

(footnote number) (author) (title) (year)

Here's a simple example of my problem:

Generated document: http://fuskbugg.se/dl/ySqEUE/test.pdf

\documentclass[a4paper,12pt]{article}

\usepackage[style=verbose]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{test.bib}
@book{Foo,
title={Book title1},
author={Author1},
year= {Year1},
}
@book{Bar,
title={Book title2},
author={Author2},
year= {Year2},
}
\end{filecontents}

\begin{document}

This is some text\footcite{Foo}, with\footnote{"Normal" footnotes also appear.} footnotes.\footcite{Bar}

\newpage

How can I make the footnote number associated with the reference be printed along with the reference? (First entry should be numbered 1 and second numbered 3.)

\printbibliography

\end{document}


The following must be done:

• Amend the cite:full bibmacro so that it will also store the current footnote number in a new macro whose name uses the entrykey of the current entry;

• Use the numeric bibstyle and the option sorting=none;

• Change the labelnumber format so that it displays the meaning of the "footnote number" macro of the current entry.

Note that the bibliography "labels" will be ambiguous if you cite several entries for the first time in the same footnote.

(EDIT: The OP stated that he/she uses BibTeX as backend, but the current biblatex version [2.2] willl by default [as in the OP's MWE] use Biber. That said, the following solution will also work with BibTeX if one adds the appropriate backend=bibtex package option.)

\documentclass[a4paper,12pt]{article}

\usepackage[citestyle=verbose,bibstyle=numeric,sorting=none]{biblatex}

\makeatletter

\renewbibmacro*{cite:full}{%
\usebibmacro{cite:full:citepages}%
\printtext[bibhypertarget]{%
\usedriver
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}%
%  \usebibmacro{shorthandintro}}% DELETED
\usebibmacro{shorthandintro}% NEW
\csxdef{cbx@\thefield{entrykey}@footnotenumber}{\the\value{footnote}}% NEW
}% NEW

\DeclareFieldFormat{prefixnumber}{}
\DeclareFieldFormat{labelnumber}{\csuse{cbx@\thefield{entrykey}@footnotenumber}}

\makeatother

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@book{Foo,
title={Book title1},
author={Author1},
year= {Year1},
}
@book{Bar,
title={Book title2},
author={Author2},
year= {Year2},
}
\end{filecontents}

\begin{document}

\null\vfill% just for the example

This is some text\footcite{Foo}, with\footnote{"Normal" footnotes also appear.}
footnotes.\footcite{Bar}

How can I make the footnote number associated with the reference be printed along
with the reference? (First entry should be numbered 1 and second numbered 3.)

\printbibliography

\end{document}