Hopefully my question is not to obvious, at least I have been struggling with it for a long time and did not find a solution.
I am finishing a manuscript for one of the BMCMed journals. The journal requires me to place tables and figures at the end of the manuscript, as described in this article: http://www.latex-community.org/index.ph ... Itemid=112 . I am trying to follow his suggestions but repeatedly I am having problems that Latex tells me that \begin{document} is missing. The following code works runs well:
Code: Select all
\documentclass[10pt]{article}
\usepackage[english]{babel}
\usepackage{endfloat}
\begin{document}
\title{Example}
\maketitle
\begin{table}[p]
\caption{Caption}
\begin{center}
\begin{tabular}{ll}\hline
0.01&2 (1)\\
0.25&19 (9)\\
\end{tabular}
\end{center}
\end{table}
\end{document}
Code: Select all
\documentclass[10pt]{article}
\usepackage[english]{babel}
\usepackage{endfloat}
\renewcommand{\@makecaption}[2]{{\centering\vskip\abovecaptionskip \bfseries #1} #2}
\newcommand{\@makecaptionZ}[2]{%
\vskip\abovecaptionskip
\sbox\@tempboxa{#1}%
\ifdim \wd\@tempboxa >\hsize
#1\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
\begin{document}
\title{Example}
\maketitle
\begin{table}[p]
\caption{Caption}
\begin{center}
\begin{tabular}{ll}\hline
0.01&2 (1)\\
0.25&19 (9)\\
\end{tabular}
\end{center}
\end{table}
\end{document}
Hopefully you can indicate what I am doing wrong in this example. I am using latex Version 3.141592-1.40.3 on a Fedora Core 11 system.
Thanks in advance,
Albart Coster