Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

After googling for a while, I decided to ask this question on here..

I am desperately trying to make a citation inside a figure (using BibLaTeX and the footnote-dw style [the sources are added as footnotes]), but I cannot figure out how to properly achieve this. Basically I want to do something like this:

test.tex

\documentclass{book}
\usepackage[style=footnote-dw]{biblatex}
\usepackage{graphicx}
\usepackage{hyperref}
\bibliography{bibliography}
\begin{document}
\begin{figure}
    \includegraphics[width=0.95\textwidth]{pics/somepicture.png}
    \caption{My Caption\cite{wikipedia-de-visitor}}
\end{figure}
foobar\cite{wikipedia-de-visitor}
\end{document}

While the first \cite gives

pdfTeX warning (dest): name{Hfootnote.1} has been referenced but does
not exist, replaced by a fixed one

the second (not withing the figure) works just as expected.


Edit:

bibliography.bib resides in the same dir as the .tex file and contains:

@misc{wikipedia-de-visitor,
url="http://de.wikipedia.org/wiki/Besucher_(Entwurfsmuster)"
}

Commands used to "compile" are:

pdflatex test
biber test
pdflatex test
pdflatex test

Edit 2:

Changed the questions title (and part of the body) to reflect the facts offered by Ulrike Fischer.

PS: sorry for my bad english

share|improve this question
    
We need a minimal working example. This just can not work because the biblatex needs to know where the bibliography is. You need /addbibresource{path/to/bib/file.bib}. –  gns-ank Mar 11 '13 at 15:45
    
I forgot to add the bib-entry: "@misc{wikipedia-de-visitor, url="de.wikipedia.org/wiki/Besucher_(Entwurfsmuster)"; }" –  Tobias Heinicke Mar 11 '13 at 15:45
1  
Welcome to TeX.sx! –  Corentin Mar 11 '13 at 15:52
3  
footnotes in floats doesn't work easily: tex.ac.uk/cgi-bin/texfaq2html?label=footintab. –  Ulrike Fischer Mar 11 '13 at 15:53
1  
Do it the other way round: Put the figure environment around the minipage (and the graphic and the \caption inside the minipage). –  Ulrike Fischer Mar 11 '13 at 17:07
show 12 more comments

marked as duplicate by lockstep, Herbert, zeroth, mafp, Andrew Swann Mar 12 '13 at 15:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 3 down vote accepted

Based on the facts added by UlrikeFischer I did another Google search and came up with this post: BasicallyTheSameQuestion

The author suggested to use \footnotetext{\fullcite{<key>}.} that did the trick for me.

The resulting code snippet is something like the following:

\begin{figure} 
   \includegraphics[width=0.95\textwidth]{pics/somepicture.png}
   \caption[a figure]{My Caption\footnotemark} 
\end{figure} 
\footnotetext{\fullcite{wikipedia-de-visitor}.}
share|improve this answer
add comment

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