I have a document in 'portrait' format, and would like to include short sections in 'landscape' format.
The geometry package works nicely, but only allows me to insert one such section. The second call to \newgeometry fails to orient the page to landscape format. I have tried \savegeometry and \loadgeometry to no avail.
Is there any way to use the geometry package for multiple 'landscape' sections? Is there an alternative?
Thanks!
\documentclass{book}
\usepackage[a4paper,hmargin=3cm,vmargin=5cm]{geometry}
\usepackage{lscape,lipsum}
\usepackage{etoolbox}
\makeatletter
\def\ifGm@preamble#1{\@firstofone}
\appto\restoregeometry{%
\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight}
\apptocmd\newgeometry{%
\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight}{}{}
\makeatother
\begin{document}
\chapter{One}
\lipsum[1]
\newgeometry{,hmargin=3cm,vmargin=5cm,landscape}
\section{One One}
\lipsum[1]
\restoregeometry
\chapter{Two}
\lipsum[6]
\newgeometry{,hmargin=3cm,vmargin=5cm,landscape}
\section{Two One}
\lipsum[3-5]
\restoregeometry
\section{Two Two}
\lipsum[6]
\end{document}