1

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

10
  • 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
1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.