I have a datatable in a CSV file and print it with pgfplotstable
. I can split long datatables by making pgfplotstable
use longtable
instead of tabular
environment; so far so good. My problem is that my datatable has only two columns, hence it results in pages like:
+-------------------------+
| XX XX |
| XX XX |
| XX XX |
| XX XX |
| XX XX |
| |
| |
+-------------------------+
The point is: left and right of the table there is much free space. I would like the table being printed as:
+-------------------------+
| XX XX | XX XX | XX XX |
| XX XX | XX XX | XX XX |
| XX XX | XX XX | XX XX |
| XX XX | XX XX | XX XX |
| XX XX | XX XX | XX XX |
| XX XX | XX XX | XX XX |
| XX XX | XX XX | XX XX |
| |
| |
+-------------------------+
I know that I can achieve this by using solutions like multicolumn long table or enumeration, but this has to disadvantages:
- I have to manually specify the number of columns to use
- the columns are not balanced
- I cannot use this inside a float like
table
So, my question is: Is there a package that provides this feature, holding the above three points?
\documentclass{...}
and ending with\end{document}
./pgfplots/table/select equal part entry of={<part no>}{<part count>}
pgfplotstable
manual, page 40.