I tried the following LaTeX code, and I believe the result is a bug,
\documentstyle[12pt]{article}
\begin{document}
\begin{table}
\begin{center}
\begin{tabular}{|l|l||c|c|c|}
\hline
{} & {} & \multicolumn{3}{c|}{Num. sensors} \\
\cline{3-5}
Array & $kR$ & 15 & 20 & 30 \\
\hline\hline
Linear & 3.5$\pi$ & 12 & 12 & 12 \\
Linear & 6$\pi$ & 14 & 17 & 17 \\
Circular & 3.5 & 15 & 15 & 15 \\
Circular & 6 & 15 & 20 & 23 \\
\hline
\end{tabular}
\end{center}
\caption{\sl The effective rank of the sampling matrices of the narrowband
arrays, for $\epsilon=0.01$.}
\label{RankNB}
\end{table}
\newpage
The next page
\end{document}
What I get is that LaTeX totally ignores the \newpage command, and the line
written after it appears immediately after the table. If I want to get a
new page, I have to add the line
\vrule height1pt width0pt depth0pt
or some other invisible box just after the table, and then everything works.
So, my question is: Is this a bug in LaTeX (2.09)?
Eyal Doron
\documentstyle[12pt]{article}
\begin{document}
\newpage
\vrule height1pt width0pt depth0pt
Arguable. What happens here is that \newpage discovers that it is
still at the top of the page. This sounds like nonsense, but you have
to take into account that a table environment defines a floating
object that is not part of a particular page, and hence for the
purposes of page breaking, this floating object acts like a
no-op. Therefore you practically have \newpage immediatly after
\begin{document} where it doesn't have an effect.
To force the table to appear use \clearpage, not \newpage.
Rainer Sch"opf
LaTeX maintenance
>>> Send LaTeX problem reports to latex...@rus.uni-stuttgart.de <<<
--
Rainer Schoepf
Konrad-Zuse-Zentrum
fuer Informationstechnik Berlin
Heilbronner Strasse 10
D-10711 Berlin
Federal Republic of Germany
<Sch...@sc.ZIB-Berlin.de> or <Sch...@sc.ZIB-Berlin.d400.de>