0

I'm using the longtable environment inside the landscape environment, as I have a large table, which spans several pages. However, I would like my table to fill out the entire page with little to no margin. Is this possible with longtable or another environment? Current version below.

\begin{landscape}
    \begin{longtable}{|p{4cm}|p{4cm}|p{4cm}|p{1cm}|p{4cm}|p{5cm}|}
        \hline
        Interessent & Mål/interesse(r) & interesse/aktivitetsniveau & Magt & Konfliktpunkter & Håndtering/indragelse \\ \hline
       ...
       \\ \hline
    \end{longtable}
\end{landscape}
4
  • do you mean the entire table on 1 page?
    – dorien
    Feb 19, 2014 at 10:33
  • By "filling out the entire page", are you thinking of the horizontal or the vertical dimension (or both)?
    – Mico
    Feb 19, 2014 at 10:49
  • there is an example at the end of section 5 of the longtable documentation (texdoc longtable in texlive) use Feb 19, 2014 at 11:53
  • if all your columns are p columns in your real example then you just need to choose values that add up to \linewidth after taking account of tabcolsep padding. Feb 19, 2014 at 12:06

1 Answer 1

1

You can change the margins of each page seperately with

\usepackage[a4paper]{geometry}

to change to a new margin

\newgeometry{left=3cm,bottom=0.1cm}

to set it back

\restoregeometry

BUT, I also notice you have defined the width of your columns exactly. If you do that, you will have to put them in a way that the columns in one page stretch to the exact page width that you define (A4paper - left and right margin).

3
  • I don't think this addresses the OP's problem, wants to adjust the table to fit the page, not adjust the page to fit the table. Feb 19, 2014 at 12:17
  • Hence the last part of the answer: "I also notice you have defined the width of your columns exactly. If you do that, you will have to put them in a way that the columns in one page stretch to the exact page width that you define "
    – dorien
    Feb 19, 2014 at 13:06
  • This did the job for me, other than the fact that the page number isn't at the bottom of the page anymore (probably because of the landscape) Feb 19, 2014 at 20:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .