I have a table with 102 rows (102 = 17 x 6).
How can I put that into a multicolumn-environment with 6 columns which have 17 rows each?
With other words: How can I enforce a column break after each 17th row?
Hint: The table content itself should not be splitted, because there is much higlighting-stuff later (with pgfplotstable).
Hint: The table-rows have a content like in the picture.
MWE:
\documentclass[a4paper, landscape]{article}
\usepackage[margin=5mm]{geometry}
\usepackage{multicol}
\setlength\columnseprule{.4pt}
\usepackage{pgfplotstable}
%\usepackage{longtable}% Does not work in multicol
\usepackage{supertabular}% Does work in multicol
\begin{document}
% Create an example table ====================
\def\OutFilename{\jobname-meta.txt}
\newwrite\MyFile
\immediate\openout\MyFile=\OutFilename
\foreach \n in {1,...,102}{%%
\immediate\write\MyFile{(\n), AAA, BBB }
}%%
\immediate\closeout\MyFile
%Test: \input{\OutFilename}
%===================================
\begin{multicols}{6}
\pgfplotstabletypeset[string type, col sep=comma,
column type={}, % seems to be needed 1/2
begin table={\begin{supertabular}{ l l l }},% column types defined here 2/2
end table=\end{supertabular},
% Does not work:
%every nth row={17}{after row={\vfill\null\columnbreak} },
%every row no 3/.style={before row=\vfill\null \columnbreak}},
]{\OutFilename}
\end{multicols}
\end{document}




And that the multicols became larger than the content is a multicol.sty "feature", I guess? – cis Feb 02 '22 at 16:38
%\usepackage{colotbl} every row no 5/.style={ before row=\rowcolor{yellow}},– cis Feb 02 '22 at 17:02Otherwise I can't use practically anything from pgfplotstable (e.g. skip rows etc.)
– cis Feb 02 '22 at 18:00