Graphics, Figures & Tablesplacement of a sideways table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
lieselotter
Posts: 8
Joined: Wed Jan 21, 2009 1:24 pm

placement of a sideways table

Post by lieselotter »

Hi,

I made a sidewaystable (it needs 1 whole page), but the table isn't printed where it has to be. If I use [h] or [h!], it is placed at the end of the document.
If I use nothing or [!htbp], than the table is placed 1 page too late. If I put [H], there is no table at all... (I do have the usepackage float). If I use [H] for other tables (normal ones, not sideways), than it is working fine.

\usepackage{float}
...
\begin{sidewaystable}[h!]
\caption{..}
\label{..}
\begin{tabular}{p{3.95cm}p{4cm}p{3.7cm}p{1.28cm}p{1.24cm}p{1.28cm}p{1.24cm}p{1.28cm}p{1.14cm}}
...
\end{tabular}
\end{sidewaystable}

How can I fix this?

Bye, Lieselotter

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

placement of a sideways table

Post by localghost »

The sidewaystable environment doesn't accept any placement parameters. It always appears directly on a whole page where declared in the source. This table is always shifted to the next page because it is very unlikely that there is nothing on the current page.


Best regards
Thorsten¹
lieselotter
Posts: 8
Joined: Wed Jan 21, 2009 1:24 pm

Re: placement of a sideways table

Post by lieselotter »

Actually, it skips 1 page.
In stead of placing my table on the next page, there is 1 whole page of text first (that is written after the table in the source...) and than the table
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

placement of a sideways table

Post by localghost »

Perhaps an example shows how this works. This may help for better understanding.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{lmodern}
\usepackage{rotating}
\usepackage{blindtext}

\parindent0em

\begin{document}
  \blindtext[5]

%  \medskip
%  \blindtext
  \begin{sidewaystable}
    \rule{\textheight}{0.8\textwidth}
    \caption{Dummy}\label{tab:dummy}
  \end{sidewaystable}

  \medskip
  \blindtext
\end{document}
The current page is filled completely. The table is output as soon as possible. Uncomment the lines right before the sidewaystable environment and you will see the effect. I guess that is what's happening to your document.
lieselotter
Posts: 8
Joined: Wed Jan 21, 2009 1:24 pm

Re: placement of a sideways table

Post by lieselotter »

thank you for the explanation! it was very helpful

apparently, the \pagebreak I put before my table was the problem

Greetings,
Lieselotter
Post Reply