[Tex/LaTex] Option clash for package geometry

geometry

I am writing a document in which I wish to switch to landscape part way through. I thought I could use the line \usepackage[a4paper,landscape]{geometry} to accomplish this but I get an error. I suspect that this is due to apa6e. Is there a workaround for this that still allows me to use apace and have portrait and landscape in the same document?

\documentclass[leavefloats]{apa6e}
\usepackage[american]{babel}
\usepackage{csquotes}

\usepackage[a4paper,landscape]{geometry}

\abstract{This is an example of of an abstract in APA.  }
\begin{document}
\title{A Template for APA Papers}
\shorttitle{APA: A Template}
\author{John}
\authornote{\dots}
\date{\today} % or \date{24Jan11} for example
\maketitle
\end{document} 

Best Answer

\newgeometry ignores the landscape option so you won't be able to switch from portrait to landscape orientation in the middle of your document. You can use the landscape environment from the pdflscape package, but this won't take care of headers/footers or page numbers:

\documentclass[leavefloats]{apa6e}
\usepackage{,pdflscape}
\usepackage{lipsum}

\abstract{This is an example of of an abstract in APA.  }

\title{A Template for APA Papers}
\shorttitle{APA: A Template}
\author{John}
\authornote{\dots}
\date{\today} 

\begin{document}

\maketitle

\lipsum[1-10]

\begin{landscape}
\lipsum[1-10]
\end{landscape}

\end{document}

The landscape environment doen't rotate the header; to keep the header as defined in apa6e.cls when in landscape orientation, you could first remove the header/footer using \pagestyle{empty} and then use the background package to place the header; something along these lines:

\documentclass[leavefloats]{apa6e}
\usepackage[american]{babel}
\usepackage{pdflscape}
\usepackage{background}
\usepackage{lipsum}

\SetBgScale{1}
\SetBgColor{black}
\SetBgOpacity{1}
\SetBgAngle{90}
\SetBgPosition{current page.west}
\SetBgVshift{-1.3cm}
\SetBgContents{}


\abstract{This is an example of of an abstract in APA.  }

\title{A Template for APA Papers}
\shorttitle{APA: A Template}
\author{John}
\authornote{\dots}
\date{\today} 

\makeatletter
\let\StShortTitle\@shorttitle
\makeatother

\begin{document}

\maketitle

\section{lkadfjsjkdfg}
\subsection{test}

\lipsum[1-10]

\begin{landscape}
\pagestyle{empty}
\SetBgContents{%
\begin{minipage}[c][1.2\textwidth][c]{22.8cm}
\noindent\MakeUppercase{\StShortTitle}\hfill\thepage
\end{minipage}%
}

\lipsum[1-10]
\end{landscape}

\end{document}