I have a long table in a document which lists about 300 items. The table is actually generated by an external shell script in a format that is compatible with the
longtable package. The script is my own, so I can modify it if needed.
I would like to use two columns to list the items in the table. If I just go through all the items in order, the table will look like this:
| Item1 | Item2 | | Item3 | Item4 | | Item5 | Item6 | [...] | Item299 | Item300 |
However I would like to arrange data so that consecutive items are in the same column (not in the same row). As an example, let's assume each page can hold 20 rows. Within each page I would like to have:
(page 1) | Item1 | Item21 | | Item2 | Item22 | | Item3 | Item23 | [...] | Item20 | Item40 | (page 2) | Item41 | Item61 | | Item42 | Item62 | [...]
And so on.
I cannot just modify the shell script to generate the data in a different order because the shell script has no way to know how many rows would fit in a page.
Is there any package that would automatically take care of this?