I am trying to include A3 pages in an A4 LaTeX document (following this answer) but get the following
when I run pdflatex:
Chapter 1.
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] [2]
! Undefined control sequence.
\AP@ ->{ \clearpage \KOMAoptions
{paper=a3,paper=landscape} \recalctypearea ...
l.27 \end{document}
?
SSCCE below:
\documentclass[11pt,twoside,a4paper,pagesize]{report}
\usepackage{pslatex,palatino,avant,graphicx,color,nextpage,afterpage,comment}
\usepackage[margin=2cm]{geometry}
\usepackage[absolute]{textpos}
\usepackage[hyphens]{url}
\PassOptionsToPackage{hyphens}{url}
\begin{document}
\chapter{Introduction}
foo
\clearpage
bar
\afterpage{ % Insert after the current page
\clearpage
\KOMAoptions{paper=a3,paper=landscape}
\recalctypearea
A3 stuff goes here ...
\clearpage
\KOMAoptions{paper=A4,pagesize}
\recalctypearea
}
\end{document}
I understand that "undefined control sequence" means I've forgotten to use some package on my document preamble. However it is not clear to me what's wrong in this case.
scrreprt, and I think that's why your code is not reading the \recalctypearea... you either load the package or you change your documentclass to include the KOMA versio of report – Mario S. E. May 22 '14 at 11:13typeareapackage – Mario S. E. May 22 '14 at 11:40