General ⇒ How to intercalate one landscape page into a portrait doc?
How to intercalate one landscape page into a portrait doc?
I need a little help with this. I need to insert a landscape page in the middle of a portrait document, but I don´t know how. I´ve tried with different packages (rotation, lscape...) but I only achieve to rotate the figure, not the orientation of the full page.
My doc should have this structure:
Portrait page (or vertical)
P
P
P
Landscape one
P (again)
P
...
Any idea? Thanks in advance, Simon.
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
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
How to intercalate one landscape page into a portrait doc?
if you are using pdflatex then use pdflscape instead of lscape. Try this small example:
Code: Select all
\documentclass[a4paper,11pt]{article}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{pdflscape}
\begin{document}
\tableofcontents
\clearpage
\section{One}
\blindtext[4]
\clearpage
\begin{landscape}
\section{Two}
\blindtext[4]
\end{landscape}
\section{Three}
\blindtext[4]
\end{document}
Stefan
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to intercalate one landscape page into a portrait doc?
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
How to intercalate one landscape page into a portrait doc?
Thanks both guyslocalghost wrote:I'm not sure but I guess that simonvlc is asking how to rotate a complete page including the headings. Perhaps this issue is clarified in the next post.
Best regards
Thorsten¹

The solution that Stefan provided worl well, but as Thorsten suggested, I need to rotate the complete page.
Any idea?
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: How to intercalate one landscape page into a portrait doc?
in my opinion it's very unusual to rotate header, footer, page number inside a document. In a printed document I expect page numbers to be at the same position everywhere (of course there may be a difference between odd-numbered and even-numbered pages). If I am browsing through a book looking for a figure on page X I will not turn the book around and back frequently to be able to read the page number or header text.
Perhaps look at some books or documents similar to your work to see how it's done there before you decide to program something unusual.
Stefan
Re: How to intercalate one landscape page into a portrait doc?
My school requires an electronic version of my dissertation and in my dissertation I have a large table in landscape.
Now, when you look through my dissertation as a pdf, everything needs to be oriented normally. That means the page must be sideways, it is a landscaped page. The footer (page number) is now not oriented the same way as the table, this is bad. I need the page number to be placed at the bottom of the long side in the landscaped page so that the number and all the information in the table can be read normally from a computer (i.e. not sideways).
pdflscape does not change the orientation of the footer so I can't use that but it does make the page landscaped in pdf which is good.
sidewaystable does neither.
landscape does neither.
Is there any way to make my page number appear at the bottom center of my landscaped page (in the middle of the long side and oriented normally for a landscaped page)?
How to intercalate one landscape page into a portrait doc?
Or you could make the make the pdf with the one page the wrong way, and then turn it with creative uses of pdfpages (e.g., insert some pages one way, then the rotated one rotated back, and then the rest, or, just the pdftk tool or Acrobat Pro to rotate the page afterwards.
-
- Posts: 1
- Joined: Tue Oct 20, 2009 7:31 pm
How to intercalate one landscape page into a portrait doc?
The changepage package has many of the same features, and seems to work ok for me.
My solution isn't pretty, but it gets the job done (at least I haven't found any problems with it yet). I created a new environment named lscapenum which does the work. The following is a mix of latex and pseudo-code:
Code: Select all
\usepackage{pdflscape}
\usepackage{changepage}
\usepackage{rotating}
\usepackage{fncyhdr}
%% A new environment to rotate page, margins, and page number
\newenvironment{lscapenum}
{
\clearpage
\changepage{%insert appropriate dimension changes here, see changepage docs%}
\begin{landscape}
\pagestyle{fancy}
\fancyhead{} % clear all header fields
\fancyfoot{} % clear all footer fields
\renewcommand{\headrulewidth}{0pt}
\rfoot{
% Since the header and footer are unrotated, we must manually
% place the page number. The picture environment is included in
% standard LaTeX.
\setlength{\unitlength}{\textheight}
\begin{picture}(0,0)
\put(%xshift%,%yshift%){\begin{sideways}\thepage\end{sideways}}
\end{picture}
}
}
{
\end{landscape}
% The \textheight is too large leaving landscape environment
% since we invoked the \changepage. We manually reduce it.
\addtolength{\textheight}{-\myoldfootskip}
% \textheight controls 3 other variables, which must be updated.
% See \endlandscape definition in lscape.sty
\global\@colht=\textheight
\global\vsize=\textheight
\global\@colroom=\textheight
\pagestyle{plain}
}
-
- Posts: 4
- Joined: Thu Jan 13, 2011 4:52 pm
How to intercalate one landscape page into a portrait doc?
Code: Select all
\documentclass[12pt]{report}
\usepackage{pdflscape}
\usepackage{blindtext}
\begin{document}
\blindtext
\begin{landscape}
\thispagestyle{empty}
\begin{figure}
\centerline{\includegraphics{placehold}}
\caption[lorem ipsum]{\blindtext}
\vspace{0.8cm}
\hspace{9cm}\pageref{fig:cshapeMapVMAT}
\label{fig:cshapeMapVMAT}
\end{figure}
\end{landscape}
\blindtext
\end{document}
-
- Posts: 141
- Joined: Sun Jun 12, 2011 6:30 am
How to intercalate one landscape page into a portrait doc?
shroomy115 wrote:My school (LSU) also requires page numbers to be on the long edge of the page for landscaped pages. Here's what I did, and it seemed a little simpler to me.
Basically you just remove the footer entirely and include a self-reference to the page number the figure is on. You'll still have to tweak the vspace and hspace to get the number to the right place, though.Code: Select all
\documentclass[12pt]{report} \usepackage{pdflscape} \usepackage{blindtext} \begin{document} \blindtext \begin{landscape} \thispagestyle{empty} \begin{figure} \centerline{\includegraphics{placehold}} \caption[lorem ipsum]{\blindtext} \vspace{0.8cm} \hspace{9cm}\pageref{fig:cshapeMapVMAT} \label{fig:cshapeMapVMAT} \end{figure} \end{landscape} \blindtext \end{document}