2

Is it possible to add stretchable vertical glue to rows of a tabular (I actually use tabularx) environment?

I've looked at tabularht, but if I have understood right, this allows me to specify a total height for a table, whereas, I would prefer to add stretchable space to each row using \\[…] notation.

I don't have vertical lines in my tables.

I'd like the left and right columns to look roughly the same in the following example:

\documentclass[twocolumn]{article}
\usepackage[a6paper]{geometry}
\newlength{\sep}\setlength{\sep}{2cm plus 5cm minus 1cm}
\flushbottom
\pagestyle{empty}
\begin{document}
One\vspace{\sep}

Two\vspace{\sep}

\break

\begin{tabular}{l}
  One\\[\sep]
  Two\\[\sep]
\end{tabular}

\end{document}
  • short answer no, longer answer you could in principle let tex construct the table into a box and then disassemble the box and re-assembe the rows inserting glue as needed. – David Carlisle Sep 5 '18 at 15:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.