[texhax] Page problems

Konstantin Karapetyan cyrtex at photonica.ru
Sat Jan 29 19:48:06 CET 2005


Justin,

I've found that using table around tabular seems to produce what you
need. That is,

\documentclass{article}
\usepackage{amsmath}
\usepackage[table,dvipsnames]{xcolor}
\begin{document}
\thispagestyle{empty}
\begin{table}
\begin{tabular}{|c|c|}
\hline
a & b \\
a & b \\
...
a & b \\
\hline
\end{tabular}
\end{table}
\end{document}

produces a one page document, while

\documentclass{article}
\usepackage{amsmath}
\usepackage[table,dvipsnames]{xcolor}
\begin{document}
\thispagestyle{empty}
%nothing
\begin{tabular}{|c|c|}
\hline
a & b \\
a & b \\
...
a & b \\
\hline
\end{tabular}
%nothing
\end{document}

makes it two page. However, in the first case I get a warning that the
“Float too large for page...”. A floating object is what table does from
tabular.

Also thispagestyle{empty} works in both cases, but in the second case
this command and the table appear at different pages.

Hope this helps.

Regards,
KK.



More information about the texhax mailing list