Page LayoutRotate Page with landscape Table

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
lynnlee
Posts: 50
Joined: Fri Jan 04, 2013 10:15 am

Rotate Page with landscape Table

Post by lynnlee »

Hello community,

I want to rorate one page with a landscape table. The code I use is the following.

Code: Select all

\usepackage{pdfpages}

\begin{sidewaystable}
\begin{landscape}{angle=90}
...
\end{lanscape}
\end{sidewaystable}
But it is wrong. I do not know where to put the angle=90. Or I may need additional code in preamble? Any suggestion is appreciated.

Lynn

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Rotate Page with landscape Table

Post by localghost »

Why do you put a landscape environment into a sidewaystable environment?


Thorsten
lynnlee
Posts: 50
Joined: Fri Jan 04, 2013 10:15 am

Rotate Page with landscape Table

Post by lynnlee »

Hello Thorsten,

I took off the landscape environment, yes, it is not necessary here. With sidewaystable environment, the content of the table was rotated 90 degrees.That is what I need. But I also need the whole page with this rotated table to be rotated 90 degrees. The code I used is same as that in my first post. The table was inserted inside the text.

Code: Select all

\documentclass[a4paper,11pt]{article}

\begin{document}
Text contents.
\begin{sidewaystable}
...
\end{sidewaystable}
\end{document}
How to rotate the whole page with 90 degrees? This table occupies one page. Any suggestion is appreciated.

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

Rotate Page with landscape Table

Post by localghost »

lynnlee wrote:[…] But I also need the whole page with this rotated table to be rotated 90 degrees. […] How to rotate the whole page with 90 degrees? […]
What you want to do is not recommendable. You have a portrait document, hence the page style with its headers and footers should not vary. Take a look into a book with rotated tables. You won't find rotated headers and footers on those pages. This would be typographically questionable.
lynnlee
Posts: 50
Joined: Fri Jan 04, 2013 10:15 am

Re: Rotate Page with landscape Table

Post by lynnlee »

Thanks, Thorsten. I understand.

Lynn
Post Reply