# Printing Images on two sides of a page so that they line up

is there an easy way to line up two images with the same dimensions such that when the two images are printed they are back to back on the printed page and can be cut out of the piece of paper to create a double sided card?

• This depends on the document class, geometry and whether there is anything else on the page. If all you want is the images back to back, use standalone class. – John Kormylo Nov 13 '19 at 4:28
• It it just to set equal left and right margin, placing the first image at the upper left margin of page 1, and the second image on the upper right margin at page two. If the images are of similar size, they will print back to back. – Sveinung Nov 13 '19 at 12:20
• \begin{center}...\end{center} – AlexG Nov 13 '19 at 19:28

## 3 Answers

I would simply use the center environment. This works also for two-sided documents with different inner and outer margins.

\documentclass[twoside]{scrartcl}

\usepackage{graphicx}

\begin{document}

\begin{center}
\includegraphics[scale=0.5]{example-image-a}
\end{center}

\newpage

\begin{center}
\includegraphics[scale=0.5]{example-image-b}
\end{center}

\end{document}


Using standalone is slightly more complicated than my comment indicated.

\documentclass[multi=wrapper]{standalone}
\usepackage{graphicx}

\newenvironment{wrapper}{\ignorespaces}{\unskip}

\begin{document}
\begin{wrapper}
\includegraphics{example-image-a}
\end{wrapper}

\begin{wrapper}
\includegraphics{example-image-b}
\end{wrapper}
\end{document}


Here is an MWE. I use rule to substitute an image. If you print this document on a printer with the possibility to print on both side of the paper, you will have the the images at the same place, just to be cut out:

\documentclass[a6paper]{article}
\usepackage[left=2cm, right=2cm]{geometry}

\begin{document}

\noindent\rule{5cm}{5cm}

\raggedleft\pagebreak

\rule{5cm}{5cm}

\end{document}