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 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?

share|improve this question
    
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}. –  Jubobs Mar 8 '13 at 22:34
1  
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
add comment

2 Answers

up vote 2 down vote accepted

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}
I'm your a3paper page :-)
\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={%
                \addcontentsline{toc}{section}{a3 paper section}%
                \captionof{figure}{text}\label{labelname}%
                \thispagestyle{plain}}]{mwe_a3}}
\clearpage
\end{document}
share|improve this answer
    
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
add comment

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}
share|improve this answer
    
I prefer the non KOMA version better. –  asghar ashgari Mar 12 '13 at 18:40
add comment

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.