Odd stretched tables/table headers.
Hawke opened this issue · 5 comments
If tables need to flow across columns, in some cases the tables get pulled far away from their headers and other tables.
MWE attached.
That is the glue (the plus and minus in a length) stretching across the page. If you cannot rearrange your text or float the table to a corner with a figure
environment, you can use \vfill
after the last table in the column as a way of keeping the text together.
\vfill seems to do nothing. The main issue is the way it is stretching the space between header and table
I got results closer to what I expect by changing the vspace at the end of dndtable.sty to:
{
\endtabularx \vspace { 9pt plus 1fil minus 3pt }
\group_end:
}
You generally need "something" after the \vfill
for it to expand to. For some reason, the DndTable
environment does not fit the bill. If you use the following where you want the break, it will work.
\vfill
\newpage
Also, you might want to consider having the table be the full width of the colum. This can be done by making either the second or third column an "X" instead of an "l".
Ah, thanks — looks like \vfill\null also works.
As for table width, in my actual document I’ve replaced DndTable’s tabularx with tabulary and that does the job there.