[Tex/LaTex] Footnote on the wrong page

footnotes

I have a page that have only a single figure (consisting of many images) on it and its caption. I want to put a footnote on the same page. I used some suggestions mentioned at SO like this one which gives the following MWE:

\documentclass{article}
\usepackage[demo]{graphicx}

\begin{document}

\begin{figure}
   \centering
   \includegraphics{foo}  ...
   \caption[Caption for LOF]{Real caption\protect\footnotemark}
\end{figure}

\footnotetext{blah blah blah}

\end{document}

PROBLEM: The footnote comes on the previous page that does not have figure and contains only text.

Best Answer

The posted example does not relate to the problem as the footnote comes on the same page as the figure.

I would guess you have

\documentclass{article}


\begin{document}

\begin{figure}%[!ht]
   \centering
    \rule{1cm}{15cm}
   \caption[Caption for LOF]{Real caption\protect\footnotemark}
\end{figure}

\footnotetext{blah blah blah}

\end{document}

where the figure is on page 2 and the footnote on page 1.

If you uncomment [!ht] then it all comes on to one page.

Related Question