[Tex/LaTex] csv long table in landscape

csvcsvsimplelongtablelscape

I want to import a csv table, but the table has too many columns i.e. too wide. So I put it in landscape environment and use the \csvautolongtable. The specific code is the following:

\usepackage{lscape}
\usepackage{csvsimple}

\begin{landscape}
\csvautolongtable{rforest_result.csv}
\end{landscape}

However, the table does not span on different pages. Can some one help me with that? Thanks in advance!
Allen
enter image description here

Update:

The table have 34 columns but it only prints 20 columns as you can see from the attachment. It does not extend to the next page as you would expect for a \csvautolongtable

Best Answer

Thanks for @Davide Carlisle's help (see in the comment), the problem has been solved.

When using \csvautolongtable in landscape, it will not break the additional columns that exceed the page length, but it will still put the additional rows on the next page. I guess that's my misunderstanding regarding the \csvautolongtable in landscape environment.

I ended up manually break the wide csv into 2 and import them separately.

Thanks Allen

Related Question