Graphics, Figures & Tables ⇒ Introduce footnotes imediately after one picture
Introduce footnotes imediately after one picture
I pretend introduce a footnote imediately under one picture.
Anyone knows how to do it?
Thanks a lot in advance,
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Introduce footnotes imediately after one picture
you could use a minipage environment inside the figure environment. The following simple example illustrates this approach:
Code: Select all
\documentclass{article}
\begin{document}
\begin{figure}[!ht]%
\begin{minipage}{\textwidth}
\centering
\rule{5cm}{2cm}%to simulate an actual figure
\caption{test figure with a footnote\protect\footnote{test footnote}}%
\label{fig:test}%
\end{minipage}
\end{figure}
\end{document}
Introduce footnotes imediately after one picture
It works. But the footnote appears in double.
The code I introduced is this:
Code: Select all
\begin{figure}
\begin{minipage}{\textwidth}
\centering
\includegraphics[width=0.60\textwidth]{D:/Faculdade/Tese/Imagens_Gráficos/Energia/Energia_1.JPG}
\caption{Distribution of final energy consumption over transport modes in 2004, Source: Eurostat 2006\footnote{EU-25 may be divided into EU-15(Belgium, Denmark, Germany, Greece, Spain, France, Ireland, Italy, Luxembourg, Netherlands, Austria, Portugal, Finland, Sweden, United Kingdom) and EU-10 (Cyprus,Czech Republic, Estonia, Hungary, Latvia, Lithuania, Malta, Poland, Slovakia, Slovenia).\\
EEA-30 is EU-25 plus Norway, Iceland, Bulgaria, Romania, Turkey}}
\label{fig:Energia_1}
\end{minipage}
\end{figure}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Introduce footnotes imediately after one picture
Clarify what you mean when saying "double". Usually the footnote mark is not to appear in the ToC. Therefor it is better to use the optional short form of the caption.tdcpina wrote:[...] But the footnote appears in double. [...]
Code: Select all
\caption[short version for ToC entry]{Long version with footnote\footnote{Footnote to a figure caption}}
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Introduce footnotes imediately after one picture
Yes, I could reproduce this odd behaviour (you can safely suppress the change line command \\; it has no effect inside a footnote); anyway, you can solve the mentioned problem by loading the caption package:tdcpina wrote:...It works. But the footnote appears in double...
The code I introduced is this:Code: Select all
\begin{figure} \begin{minipage}{\textwidth} \centering \includegraphics[width=0.60\textwidth]{D:/Faculdade/Tese/Imagens_Gráficos/Energia/Energia_1.JPG} \caption{Distribution of final energy consumption over transport modes in 2004, Source: Eurostat 2006\footnote{EU-25 may be divided into EU-15(Belgium, Denmark, Germany, Greece, Spain, France, Ireland, Italy, Luxembourg, Netherlands, Austria, Portugal, Finland, Sweden, United Kingdom) and EU-10 (Cyprus,Czech Republic, Estonia, Hungary, Latvia, Lithuania, Malta, Poland, Slovakia, Slovenia).\\ EEA-30 is EU-25 plus Norway, Iceland, Bulgaria, Romania, Turkey}} \label{fig:Energia_1} \end{minipage} \end{figure}
Code: Select all
\documentclass{report}
\usepackage{caption}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\begin{minipage}{\textwidth}
\centering
\includegraphics[width=0.60\textwidth]{D:/Faculdade/Tese/Imagens_Gráficos/Energia/Energia_1.JPG}
\caption{Distribution of final energy consumption over transport modes in 2004, Source: Eurostat 2006\protect\footnote{EU-25 may be divided into EU-15(Belgium, Denmark, Germany, Greece, Spain, France, Ireland, Italy, Luxembourg, Netherlands, Austria, Portugal, Finland, Sweden, United Kingdom) and EU-10 (Cyprus,Czech Republic, Estonia, Hungary, Latvia, Lithuania, Malta, Poland, Slovakia, Slovenia). EEA-30 is EU-25 plus Norway, Iceland, Bulgaria, Romania, Turkey}}
\label{fig:Energia_1}
\end{minipage}
\end{figure}
\end{document}
Re: Introduce footnotes imediately after one picture
Thank you! It really works I did the protection. But it worked well without it. I've read the explanation about protection but I can understand it very well, anyway I'll put always in fragil commands.
Without \\ I can't do the paragraph in the footnote. It worked in the footnote like in the "normal text".