5

I have a figure that I would like to have in a landscape page while the other pages in portrait mode, and keeping the page numbering without rotating it.

I have been trying the answers in How to change certain pages into landscape/portrait mode and none are working.

Edit: I don't want to rotate the image itself, I want to have the page rotated in landscape. Please check the image below for reference:

to-do

7
  • is it a float page? And did you try sideways table? Commented Mar 26, 2021 at 21:31
  • yes. and no I haven't tried a sideways, I'm not sure how to do that.
    – netbug
    Commented Mar 26, 2021 at 21:36
  • which engine do you use? pdflatex? Commented Mar 26, 2021 at 21:37
  • yes, I'm using pdflatex
    – netbug
    Commented Mar 26, 2021 at 21:39
  • if you simply want to rotate the content use the rotating package sidewaysfigure, if you also want to rotate the pdf page in the pdfviewer, see e.g. tex.stackexchange.com/a/472608/2388 Commented Mar 26, 2021 at 21:43

1 Answer 1

1

A (in my eyes) simple way to do this is the following:

\documentclass{scrartcl}

\usepackage{lipsum}
\usepackage{rotating}
\usepackage{calc}

\begin{document}
\lipsum
\clearpage
\rotatebox{90}{
    \begin{minipage}[c]{\textheight-\footskip}
        \lipsum[1-2]
    \end{minipage}
}
\clearpage
\lipsum
\end{document}

In this MWE I used a \rotatebox{90} do turn a minipage around by 90°. This minipage has the \textheight as its width, so it fits after turned. I subtracted the \footskip, so the minipage doesn't get in the page number's way.

Edit: Since I seem to have misunderstood the question, here is an approach that actually turns the page around by 90° (based on this German tutorial):

\documentclass[paper=a4]{scrartcl}

\usepackage{lipsum}
\usepackage{calc}

\newlength{\oldwidth}
\setlength{\oldwidth}{\textwidth}
\newlength{\oldheight}
\setlength{\oldheight}{\textheight}

\begin{document}
\lipsum

\KOMAoptions{paper=a4,paper=landscape}
\recalctypearea
\areaset{\oldheight+\footskip}{\oldwidth-\footskip}

\lipsum[1-2]

\KOMAoptions{paper=a4,paper=portrait}
\recalctypearea
\areaset{\oldwidth}{\oldheight}

\lipsum
\end{document}

This leads to:

turned page

4
  • I want the page itself to be landscape and not rotate the image
    – netbug
    Commented Mar 26, 2021 at 23:21
  • @netbug I see, then I might have misunderstood your question. I assumed you wanted to have the content in landscape mode only, while keeping the page style, like having a larger diagram in landscape orientation in a book.
    – TiMauzi
    Commented Mar 26, 2021 at 23:25
  • @netbug I added a new approach that actually turns the page around and keeps the page number.
    – TiMauzi
    Commented Mar 27, 2021 at 0:36
  • ok this works, but the problem is that I'm not able to include a figure in the landscape page.
    – netbug
    Commented Mar 27, 2021 at 0:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .