[OS X TeX] Floating table in landscape orientaton results in a half empty page

Ross Moore ross at ics.mq.edu.au
Tue Feb 19 05:51:43 CET 2008

Hello Olga,

On 18/02/2008, at 10:16 PM, Olga Lyashevskaya wrote:

> Dear all,
> I experience difficulties with floating table. This table has a  
> landscape orientation and occupies the whole page.  When I refer to  
> it, it is placed on a new page immediately after the \ref and there  
> are just two words on the current. What is strange is that this  
> page is not filled with the text which appears after the  table.
> ---------------------------
> \begin{landscape}
>  \begin{table}[tbp]
>  \centering
>  \setlength{\abovecaptionskip}{0pt}
>   \setlength{\belowcaptionskip}{5pt}
>     ...
>  \end{table}
>  \end{landscape}

This is very weird-looking coding, and almost certainly
not the way {landscape} was intended to be used.

Is this using  \usepackage{lscape}  ?
If so, then the {landscape} environment is meant to output
a complete page rotated.

You can get rotated material of arbitrary size, including
floats, with coding such as:

First some words before,

   \caption{``little person'' a cute little dog; well, not always.} 
then some after.

Then some more words after which refer to Table~\ref{littledog}.


The result is in the attached image.
The {minipage} environment is only needed to ensure that
the caption is rotated along with the contents of the {table}.

Note that the width specified in
becomes (roughly) the height of the rotated {table}.
(This is deliberately larger that the image used here,
resulting in the large margins of white space above
and below it.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lscape-test.jpg
Type: application/pdf
Size: 88712 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20080219/aba95b77/attachment.pdf>
-------------- next part --------------

If you need the rotated part to be on a separate page,
try the effect of 'p' instead of 'h', as follows:

Then all the text stays together as expected on the page
preceding where the {table} contents end up.

Alternatively use  \begin{table}[htb]  and/or increase the
size in:   \begin{minipage}{.....}  until it floats to
the next page. The text still stays together.

> To summarize, now I have one page which contains just 2 words and a  
> table on the next page followed by some text.
> Any suggestions?
> Regards,
> Olga
> MacOS X (version 10.4.11)
> TexShop (vesrion 2.14)

Hope this helps,


Ross Moore                                         ross at maths.mq.edu.au
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia  2109                            fax: +61 +2 9850 8114

More information about the macostex-archives mailing list