I'd like to place multiple tables (two or three) next to each other, with the following requirements:
They need to be able to span accross pages
They need to be aligned next to each other
I need to be able to use csv-reader (csvsimple package) with it
At first (first draft) I used tabular environments, which worked quite well except that they can't span over multiple pages.
So I tried to switch to longtables, but it seems like longtables can't be placed "side-by-side" like tabular environments do... Is that a restriction of longtables (implementation) or is there a way to make two longtables start on the same line? (eg. by using LTleft / LTright ?)
\documentclass[]{article} \usepackage{longtable} \usepackage{csvsimple} \usepackage{filecontents} \begin{filecontents*}{results1.csv} id, s, dBC, dWC 18, 3, 9, 12 70, 4, 13, 17 120, 5, 17, 21 170, 6, 21, 25 220, 7, 25, 29 270, 8, 29, 33 320, 9, 33, 37 \end{filecontents*} \begin{filecontents*}{results2.csv} id, s, dBC, dWC 18, 3, 9, 12 70, 4, 13, 17 120, 5, 17, 21 170, 6, 21, 25 220, 7, 25, 29 270, 8, 29, 33 320, 9, 33, 37 \end{filecontents*} \begin{document} \begin{tabular}{|c|c|} \hline\textbf{Size} & \textbf{Data} \\\hline\hline \csvreader[head to column names, late after line=\\]{results1.csv}{}{\s & \dBC} \hline \end{tabular} \begin{tabular}{|c|c|} \hline\textbf{Size} & \textbf{Data} \\\hline\hline \csvreader[head to column names, late after line=\\]{results2.csv}{}{\s & \dWC} \hline \end{tabular} \begin{longtable}{|c|c|} \hline\textbf{Size} & \textbf{Data} \\\hline\hline \csvreader[head to column names, late after line=\\]{results1.csv}{}{\s & \dBC} \hline \end{longtable} \begin{longtable}{|c|c|} \hline\textbf{Size} & \textbf{Data} \\\hline\hline \csvreader[head to column names, late after line=\\]{results2.csv}{}{\s & \dWC} \hline \end{longtable} \end{document} PS: I need to use multiple tables, as I'm reading from two seperate csv-files. I could combine the csv-files into one and thus reduce multiple tabulars into one, but those files are auto-generated by a script and this would be a rather "last resort" solution.
PPS: Would it be possible to put multiple tabular environments into a minipage or frame and make the minipage page-break when its content does not fit the current page?

calssays it is compatible withmulticol, for example, which might be useful. I'd probably just add a script merging the files to the auto-generation routine, though. I don't see why that should be a 'last resort' option. It is just a one-off thing to add the merge step to the existing routine. So maybe something is not obvious from your description so far.paste -d, results1.csv results2.csvon linux or cygwin/windows etc