I'm trying to display a table loaded from a CSV file and displaying it like this:
\DTLloadrawdb[]{myDB}{myDB.csv}
\DTLdisplaylongdb[%
caption={myDB caption},%
label={tab:myDB},%
contcaption={myDB (continued)},%
foot={\em Table continued on next page},%
lastfoot={\em End of Table}%
]{myDB}
This works except that one of the columns contain some long text strings that push the rest of the table off of the side of the page.
The datatool documentation says that it is using the longtable environment for this and to look up how to align contents in the longtable documentation, but I can't figure out how to get this to work. I want the table centered on the page and all the cell contents left-aligned and lines broken if there is too much content.
I'm not trying to break the cells across multiple pages, just the cell contents over multiple lines on the same page.
p
specifier for the columns that are too wide. In which case, you may need to manually write the\begin{longtable}{...}
and\end{longtable}
and use\DTLforeach*
to write the table rows.