Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vfill inside LaTeX tabular

702 views
Skip to first unread message

ffff...@gmail.com

unread,
Mar 31, 2012, 9:25:25 AM3/31/12
to
Hi all,
I'm trying to insert a \vfill into a tabular environment, so the frames and their columns occupy the entire page.
Here it is a code example:

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{tabularx}

\begin{document}

\begin{tabular}{|l|l|}
\hline
data1 & data2 \\
\hline
data3 & data4 \\
data5 & data6 \\
\hline
\end{tabular}
\vfill

\begin{tabular}{|l|l|}
\hline
data1 & data2 \\
\hline
data3 & data4 \\
data5 & data6 \\
\hline
\end{tabular}
\vfill

\newpage

\begin{tabular}{|l|l|}
\hline
data1 & data2 \\
\hline
data3 & data4 \\
data5 & data6 \\
\hline
%\vfill
\end{tabular}

\begin{tabular}{|l|l|}
\hline
data1 & data2 \\
\hline
data3 & data4 \\
data5 & data6 \\
\hline
%\vfill
\end{tabular}

\end{document}

The first page is what i'm actualy using, while the vfill's on the second page have been commented out because they cause a compile error, but they describes wheel what I'm actually trying to get.
Ciao, Damiano.

Dan

unread,
Mar 31, 2012, 4:30:50 PM3/31/12
to
If they describe what you are trying to get, then I assume
you are trying to get tabulars that expand to fill the page
by adding vertical space at their bottoms.

I don't really see the difference between that and putting the
vertical space after the tabulars. On a page, white space
is white space in either case.

If you are after something else, please explain.


Dan

ffff...@gmail.com

unread,
Apr 1, 2012, 10:12:07 AM4/1/12
to
Hi Den, your assertion is right.
I'm producing some specials purposes tables for describing pseudo-code, so white spaces filled into frames are consistent.
I heard that that's feasible.

Robin Fairbairns

unread,
Apr 3, 2012, 5:40:12 AM4/3/12
to
ffff...@gmail.com writes:

> Hi Den, your assertion is right.

actually, he spelled his own name right (dan).

> I'm producing some specials purposes tables for describing
> pseudo-code, so white spaces filled into frames are consistent.
> I heard that that's feasible.

probably, but what do you mean by "filled into frames"?

what pseudocode language are you using? (there are several pseudocode
packages available.)

your "frame" makes me wonder whether you wouldn't be satisfied with the
mdframed package, which frames chunks of pages. you can put your
\vfill commands in there, afaik. fundamentally, no-one can actually
tell what you're _really_ trying to do, but it seems likely that it's
inappropriate to use tabulars (or any other sort of alignment).
--
Robin Fairbairns, Cambridge
sorry about all this posting. i'll go back to sleep in a bit.
0 new messages