Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm writing my thesis and I'd like to insert A3 pages within my A4 document. Is it possible to place figures with captions (as normal) on those A3?

I'm able to include full PDF pages which are A3 by \includepdf, however that way I can't have captions.

I get this error:

! Package caption Error: No float type
! Package caption Error\caprion outside float
share|improve this question
1  
Welcome to tex.sx! If you're looking for a way to change the paper size mid-document, this question might be helpful: tex.stackexchange.com/questions/6834/…. A tip: You can use backticks ` to mark your inline code‌​. –  doncherry Jun 21 '11 at 20:10
    
You could just zoom the A3 page down to A4 by using e.g. \includegraphics[height=\textheight,page=1]{a3file}. –  Martin Scharrer Jun 22 '11 at 10:37

2 Answers 2

Here a solution based on my answer to Change paper size in mid-document which uses the typearea package. You might want to adjust the margin it generates. I'm also using \afterpage (afterpage package) to insert the float after the current page. This avoids half-filled pages before the figure.

\documentclass[a4paper]{article}
\usepackage[paper=A4,pagesize]{typearea}

\usepackage{graphicx}
\usepackage{afterpage}
\usepackage{lipsum}% dummy code
\begin{document}
\lipsum% Placed on A4

\afterpage{% Insert after the current page
\clearpage
\KOMAoptions{paper=A3,pagesize}
\recalctypearea
\begin{figure}[p]
   \includegraphics[height=\textheight,width=\textwidth,keepaspectratio]{largeimage}%
   \caption{A large image which required A3}
\end{figure}
\clearpage
\KOMAoptions{paper=A4,pagesize}
\recalctypearea
}

\lipsum% Placed on A4 again

\end{document}

Result

share|improve this answer
    
where do I place "landscape" comment if I want this A3 page to be in landscape please? (I'm a complete beginner, sorry) –  Marta Jun 23 '11 at 10:56
    
@Marta: Use \KOMAoptions{paper=A3,paper=landscape,pagesize} instead of \KOMAoptions{paper=A3,pagesize}. –  Martin Scharrer Jun 23 '11 at 11:03
    
@MartinScharrer: Thanks for the helpful post! How can I decrease the left and right margins of the generated A3 landscape page? Thanks! –  Chris Jan 27 '13 at 14:23
    
@Chris: No idea right now. Please check the KOMA Skript manual for the right options. –  Martin Scharrer Jan 27 '13 at 17:37

You can place the corresponding caption in each one of the A3 pages and then use the addtolist option of \includepdf (refer to the package documentation for details on the arguments of the option) to add the caption to the list of figures and to assign a label to the figure. A simple example: first, let's create a test A3 page containing an image (the demo option is only to make the example compilable for everyone):

\documentclass{article}
\usepackage[a3paper]{geometry}
\usepackage[demo]{graphicx}
\usepackage{caption}

\begin{document}

\begin{center}
  \includegraphics[width=\textwidth,height=0.5\textheight]{figure}
  \captionof{figure}{A test figure included with the help of the \texttt{pdfpages} package}
\end{center}

\end{document}

Let's call the above document figone.tex, and compile it to obtain figone.pdf; for convenience in the example, save it in your current working directory.

Now, your main file can look something like this:

\documentclass{article}
\usepackage{pdfpages}
\usepackage{lipsum}% just to generate filler text
\usepackage{hyperref}

\begin{document}
\listoffigures

\lipsum[1-10]\clearpage
\includepdf[pages=1,noautoscale,addtolist={1,figure,A test figure included with the help of the \texttt{pdfpages} package,fig:test1}]{figone}
\lipsum[1-10]
See Figure~\ref{fig:test1} on page~\pageref{fig:test1}

\end{document}

Compile the above document twice and you will have a five page document, with the A3 page included, having its entry in the LoF. You will also have the possibility to refer to that figure with \ref and \pageref, and hyperref will create the correct hyperlinks.

share|improve this answer
    
Thanks very much for this! –  Marta Jun 21 '11 at 21:06
    
However I still can't get the caption work and appear under my figure (although it is listed in the LoF). –  Marta Jun 21 '11 at 21:07
    
@Marta: As I mentioned, the caption has to be already in the A3 page; I used the \captionof command provided by the caption package to produce a caption for the figure. If you can't (for some reason) modify the A3 document to add the caption there, let me know and I'll propose another solution. –  Gonzalo Medina Jun 21 '11 at 21:12
    
@Marta: please notice that I don't use \caption but \captionof which requires the caption package. Do you have an updated LaTeX installation? –  Gonzalo Medina Jun 22 '11 at 12:59
    
\documentclass[a3paper,landscape]{article} \usepackage[top=4cm, bottom=2cm, left=4cm, right=1cm]{geometry} \usepackage{graphicx} \usepackage{caption} \usepackage{pdfpages} \begin{document} \begin{figure} \begin{center} \leavevmode \includegraphics[width=\textwidth]{/Thesis/Pictures_Research/Well_sect_flt_kpfsc‌​h.jpg} \captionof{/Thesis/Pictures_Research/Well_sect_flt_kpfsch.jpg}{Palaeo-morphology of the Base Permian Unconformity after flattening on the Top Kupferschiefer horizon} \end{center} \end{figure} \end{document} –  Marta Jun 22 '11 at 15:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.