Landscape and Longtable

1,110 views
Skip to first unread message

dam...@gmail.com

unread,
Aug 16, 2014, 1:45:34 AM8/16/14
to tufte...@googlegroups.com
Hi,

I am trying to create a landscape longtable which spans multiple pages. I have adjusted the column parameters manually using p{2cm} etc so that they fit well in the landscape mode as per my requirement. This looks good as can be seen in the image attached. But what is happening is table is not taking the full length of the page (full width actually as this is in landscape mode). The margin space is not used by the table and it makes a page break at the regular textwidth of the page. This causes a lot of white space at the bottom of the page in landscape mode. Is there any way to enable the table to use the complete vertical space on the page in landscape mode?

I have tried to use table* environment but was not able to succeed in getting it span multiple pages. Is there anyway in which we can use table* environment spanning mutiple pages?

The code that i have used to generate the table in attachment is appended below:
\begin{landscape}
\small
\begin{longtable}{p{1cm}p{1cm}p{1cm}p{1cm}p{1cm}p{1cm}p{5cm}p{4cm}p{5cm}}
\caption{Caption}
\label{label}\\
\hline
\textbf{Chapter}&\textbf{Page}&\textbf{Figure
  No.}&\textbf{Caption}&\textbf{Legend}&\textbf{Graph
  Type}&\textbf{Description}&\textbf{Data} &\textbf{Comments} \\
\hline
\endfirsthead
\hline
\textbf{Chapter}&\textbf{Page}&\textbf{Figure No.}&\textbf{Caption}&\textbf{Legend}&\textbf{Graph Type}&\textbf{Description}&\textbf{Data}
&\textbf{Comments} \\
\hline
\endhead
\hline \multicolumn{9}{r}{\emph{Continued on next page}}
\endfoot
%\hline
\endlastfoot

...
data...
& & & & & & & & \\
...

\end{longtable}
\end{landscape}
}
longtable-landscape-01.png

Kevin Godby

unread,
Aug 16, 2014, 2:36:44 AM8/16/14
to tufte-latex
On Sat, Aug 16, 2014 at 12:45 AM, <dam...@gmail.com> wrote:
> I am trying to create a landscape longtable which spans multiple pages. I
> have adjusted the column parameters manually using p{2cm} etc so that they
> fit well in the landscape mode as per my requirement. This looks good as can
> be seen in the image attached. But what is happening is table is not taking
> the full length of the page (full width actually as this is in landscape
> mode). The margin space is not used by the table and it makes a page break
> at the regular textwidth of the page. This causes a lot of white space at
> the bottom of the page in landscape mode. Is there any way to enable the
> table to use the complete vertical space on the page in landscape mode?
>
> I have tried to use table* environment but was not able to succeed in
> getting it span multiple pages. Is there anyway in which we can use table*
> environment spanning mutiple pages?

You can't use the table* environment across multiple pages.

I don't know if it will work, but you might try wrapping your code in
\begin{fullwidth} .. \end{fullwidth}. This will use the full width of
the page (regular text area + margin notes area).

—Kevin

dam...@gmail.com

unread,
Aug 16, 2014, 4:09:26 AM8/16/14
to tufte...@googlegroups.com

Thanks for the suggestion. But it doesn't work.

regards

Amit

 

dam...@gmail.com

unread,
Aug 21, 2014, 3:51:32 AM8/21/14
to tufte...@googlegroups.com

Hi,

I asked the same question on stackexchange. Here is the suggested solution.

Adding these lines after \begin{landscape} to increase vsize does the trick:

\advance\vsize6cm
\csname @colroom\endcsname=\vsize
\textheight=\vsize
\csname @colht\endcsname=\vsize

The stackexchange link:

http://tex.stackexchange.com/questions/197161/longtable-landscape-in-tufte-latex

regards

Amit
Reply all
Reply to author
Forward
0 new messages