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 am trying to make a landscape PDF with borders (4) where I will place 4 figures. Ideally the line would be 3 point in width...I have attached a JPG of what I am thinking. I would like to place figures in the areas a-d.

enter image description here

Can someone give me a starting point?

share|improve this question
    
And what margins and size should the page have? Must the images be centered inside each frame? Is this the only contents of the document or is this a special page in a portrait document? –  Gonzalo Medina Aug 22 '12 at 22:52
    
Page should be A4 with 2 cm margins of top/sides. –  Will Aug 22 '12 at 22:57
add comment

1 Answer

up vote 4 down vote accepted

In the following example I defined a new command \FramedImage with one optional argument (the options to be used in the optional argument of \includegraphics) and a mandatory one (the name of the image file). This command places its contents inside a minipage enclosed in a \fbox to obatin the frame:

\documentclass{article}
\usepackage[a4paper,margin=2cm,landscape]{geometry}
\usepackage[demo]{graphicx}

\newcommand\FramedImage[2][]{%
  \setlength\fboxsep{2pt}% change according to needs
  \setlength\fboxrule{3pt}%
  \noindent\fbox{%
    \begin{minipage}[c][\dimexpr.5\textheight-1.5\fboxrule-2\fboxsep\relax][c]{\dimexpr.5\textwidth-1.5\fboxrule-2\fboxsep\relax}
    \centering
    \includegraphics[#1]{#2}
  \end{minipage}}%
}

\begin{document}

\thispagestyle{empty}
\FramedImage{image1}\hspace*{-3pt}\FramedImage{image2}\\[-3pt]\offinterlineskip
\FramedImage{image3}\hspace*{-3pt}\FramedImage{image4}

\end{document}

enter image description here

The demo option for graphicx simply replaces actual figures with black rectangles; do not use that option in your actual document.

share|improve this answer
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.