But when I try to remove the captions from below the figures, in the way the endfloat package advises, I get an error.
Minimal example:
Code: Select all
\documentclass{article}
\usepackage{graphicx}
\usepackage{endfloat}
\renewcommand{\@makecaption}[2]{\vskip\abovecaptionskip \hbox to \hsize{\hfil #1\hfil} \vskip\belowcaptionskip}
\begin{document}
\begin{figure}
\includegraphics{figure1}
\caption{Test caption}
\end{figure}
\end{document}
It looks like it is the same error as reported on http://www.latex-community.org/index.ph ... Itemid=112 by Albart Coster, but it was not solved there.! LaTeX Error: Missing \begin{document}