# Create an exceptional A3 page within an A4-based report

I created a picture within a tool that fits exactly in an A3 page. However I need to place this picture within an report that has A4 pages by default. The picture contains lots of information so I don't want to scale it down.

Right now I have the following code:

\begin{minipage}{\linewidth}
\centering
\includegraphics{aPic}
\captionof{figure}{Wanna be lay down horizontally in an A3 page!}
\label{fig1}
\end{minipage}


So how I can do put the picture in my report?. Any suggestions?

• Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – jub0bs Mar 8 '13 at 22:34
• If the image fits exactly within an A3 page and you don't have to do anything extra to it, include it using pdfpages. – Werner Mar 8 '13 at 22:37
• @Werner what about the header, footer, and figure number? – asghar ashgari Mar 8 '13 at 22:59

And here a solution without KOMA. Please note, you need to use --shell-escape to compile your document, e.g. pdflatex --shell-escape thisdocument.tex.

The page style can be adjusted, as well as a section entry and/or figure label. The pagestyle is set to plain. Please modify that entry accordingly to the name of your pagestyle.

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{filecontents}
\usepackage{pdfpages}
\usepackage{caption} % define caption and label

\begin{filecontents}{mwe_a3}
\documentclass[a3paper,landscape,fullpage]{article}
\usepackage[a3paper,landscape]{geometry}
\begin{document}
\pagestyle{empty}
\end{document}
\end{filecontents}

\begin{document}
\tableofcontents
\section{a4 page}
first page in a4

\immediate\write18{pdflatex mwe_a3}
\clearpage
{\setlength\paperwidth{420mm} %A3
\setlength\paperheight{297mm} %A3
\setlength\pdfpagewidth\paperwidth
\setlength\pdfpageheight\paperheight
\includepdf[scale=1,noautoscale, %
pagecommand={%
\captionof{figure}{text}\label{labelname}%
\thispagestyle{plain}}]{mwe_a3}}
\clearpage
\end{document}

• very interesting answer, thanks a lot. However I have two main problems: 1.The figure caption does not reflect the figure caption within the document. 2. How to add the header that is going through the document on the top of the included pdf? – asghar ashgari Mar 9 '13 at 13:33
• I haved modified my answer accordingly. The 2nd problem can be solved by using the pagecommand key of pdfpages. For the issue with the figure caption I do not have a solution at hand right now :-). My assumption was that this would not be necessary ('exactly fits one a3 page'). You can reference it in the TOC though. – user26372 Mar 9 '13 at 16:43
• Okay, adding a figure label was easier than I initially thought. I udpated my answer again. – user26372 Mar 9 '13 at 16:56
• Great, 99% there!(Voted! :-). Do you know how I can move the page numbers to the corner of the A3 page? Somehow it printed as if it is an A4 paper. – asghar ashgari Mar 12 '13 at 18:38
• You need to further tweak your page layout using the given \setlength commands, e.g., by adjusting \textheight and \textwidth. A package that will help you determining the correct page layout is \usepackage{showframes} – user26372 Mar 12 '13 at 22:44

As far as I know the geometry package does not allow you to change the paper size mid-document. However, as show here, this is possible in the KOMA-script class:

\documentclass[version=last, pagesize=auto, paper=a4]{scrartcl}

\begin{document}

\null
\clearpage

\KOMAoptions{paper=a3}
\recalctypearea

\null
\clearpage

\KOMAoptions{paper=a4}
\recalctypearea

\null

\end{document}

• I prefer the non KOMA version better. – asghar ashgari Mar 12 '13 at 18:40