# How to change a certain page to be landscape in a document?

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:

• is it a float page? And did you try sideways table? Mar 26 '21 at 21:31
• yes. and no I haven't tried a sideways, I'm not sure how to do that. Mar 26 '21 at 21:36
• which engine do you use? pdflatex? Mar 26 '21 at 21:37
• yes, I'm using pdflatex Mar 26 '21 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 Mar 26 '21 at 21:43

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}