I am using csvsimple package to embed csv files as tables into my latex document.
It looks like long cell contents break the rendering:
tokens.csv:
method,corpus,tokens
MI,Quran,"allah, thou, thi, punish, believ, ye, thee, messeng, unbeliev, guid"
MI,OT,"allah, jesu, christ, thi, king, israel, believ, thou, lord, thee"
MI,NT,"jesu, christ, allah, ye, discipl, lord, thing, faith, israel, peter"
CHI²,Quran,"allah, punish, believ, messeng, unbeliev, guid, beli, disbeliev, vers, clear"
CHI²,OT,"allah, jesu, christ, thi, believ, king, israel, lord, thou, world"
CHI²,NT,"jesu, christ, discipl, ye, faith, thing, paul, peter, lord, allah"
main.tex:
\csvautotabular{tokens.csv}
I'm assuming because the third cell has long contents (other CSV embeds with shorter cell contents are rendering properly in my document)
How can I fix this?
The CSV files come straight out of other programs so I'd rather not have to edit them at all, or at least not make them incompatible with standard CSV format.


\csvreader[ tabular=|l | l | p{7cm}|, table head= \hline method & corpus & tokens \\ \hline, late after last line=\\\hline, ]{tokens.csv}{}% {\csvcoli & \csvcolii & \csvcoliii}a try. – leandriis Dec 13 '20 at 15:16tabularxin order to make sure the table is exactly as wide as the textwidth. The first and second column are as wide as the corresponding widest entries, while the width of the third column is calculated automatically. – leandriis Dec 13 '20 at 15:24\begin{tabularx}{\linewidth}{|l|l|>{\raggedright\arraybackslash}X|}. – leandriis Dec 13 '20 at 15:33