# csv long table in landscape

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

# 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

• it is very hard to see the problem as your question has no usable example, but do you mean that the table has only 25 or so rows but too many columns to fit even landscape? if so then probably you need to break it by hand. – David Carlisle Nov 14 '15 at 15:08
• Welcome to TeX.SE – Romain Picot Nov 14 '15 at 15:22
• @DavidCarlisle I will clarify my questions. Sorry that. – Allen Lin Nov 14 '15 at 16:34
• @DavidCarlisle just updated my question. Yes, the table has only 21 rows but many columns. How can I break the csv table by hand? – Allen Lin Nov 14 '15 at 16:41
• please provide a MWE – Peter Ebelsberger Nov 14 '15 at 19:06

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.