I write a document which represents a catalog of stuff. Most of the content is a long table with heders in two balanced columns. xelatex is used to build pdf.

I planned to use longtabu from tabu package but seems it's incompatible with multicols and with Balancing long table inside multicol in LaTeX solution headers are not supported.

So currently I use supertabular with Trick Supertabular into Multicols in new command. It works almost good but first page looks incorrect. First column is not fully filled:

enter image description here

Also if remove headers then it doesn't fill both columns on all pages: enter image description here

Why it happens and how to fix?


%% page style


\color{HeadBg}\rule{\textwidth}{19mm} \\

\centering\rule{0mm}{8mm}\cellcolor{FooterBg}\raisebox{1em}{#1} \\


%% table stuff

%% https://tex.stackexchange.com/questions/105717/trick-supertabular-into-multicols-in-new-command
        \advance\n by1
                \textbf{\number\n.}& shortText

      \hrule width\linewidth height 0pt
%% END


%% Header
\multicolumn{2}{c}{\rule{0pt}{10mm}\rule{20mm}{0pt}} &&\\
\rule{15mm}{0pt} & \rule{15mm}{0pt}%
& \multirow{-2}{*}[7mm]{\rule{0pt}{15mm}\rule{20mm}{0pt}}
& \multirow{-2}{*}[7mm]{\rule{0pt}{15mm}\rule{22mm}{0pt}} \\


%% http://xpt.sourceforge.net/techdocs/language/latex/latex22-Controlling/ar01s03.html
\def\nlines#1{\expandafter\nlineii\romannumeral\number\number #1 000\relax}
\def\theline{\cellcolor{CellBg}{\textbf{one}} & two & \cellcolor{CellBg}{three} & four \\ \hline}





I'm not familiar with TeX lang so it's hard to understand even why that two column trick works.

I had tried longtable, xtab, tabu and supertabular. And only supertabular fits better than others for this task.

If the problem is not solvable with supertabular then maybe there are other table packages which supports headers, page breaks and multicolumn env (basically two cols)?


  • supertabular (and xtab which is based on it) overestimates the height of rows. I tried a trick that works with single column, but with your table fails miserably. :( – egreg Dec 3 '14 at 22:47
  • No way to fix? Maybe there is a method to force or control height before first break or per page height or smth? Would be sad to use table with predefined rows per page instead of delegate to latex. – skozlovf Dec 6 '14 at 16:54
  • Related: multicolumn long table or enumeration – Alan Munn Oct 1 '16 at 18:01

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.