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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Lets say that I want to create a feature environment, which has two columns, in one column there is a picture (with a caption), in the second there is text. For the odd pages, I want the picture on the left, text on the right, and, for the even pages, I want the text on the left, picture on the right.

What is the best way to achieve this, Does someone have an example?

I have something working, using tikz, but the code is messy (lots of manual tweaking on a case-by-case basis). I am sure a cleaner example exists....

share|improve this question
Welcome to TeX.SE. – Peter Grill Nov 30 '12 at 6:19
up vote 9 down vote accepted

You can use the changepage package to detect if it is an odd or even page, and switch the order you place things:

enter image description here


  • Text block near image shows how to use tikz to place text at the appropriate points relative to the image.


\usepackage[paperwidth=9.0cm, margin=0.5cm]{geometry}% For better illustrative image


\newcommand*{\ImageSize}{3.5cm}%  Set the width of the images here

        \includegraphics[width=\ImageSize]{#1} &  {\raggedright#2\par} \\
        {\raggedright#2\par} & \includegraphics[width=\ImageSize]{#1}\\

\MyTwoColumn{../images/EiffelWide}{Awesome Vacation on left page}
\MyTwoColumn{../images/EiffelWide}{Awesome Vacation on right page}
share|improve this answer
the picture on the right in the graphic is indented more from the edge than the one on the left. better if the spacing is a mirror image. – barbara beeton Nov 30 '12 at 13:42
@barbarabeeton: Good point. Have updated solution. – Peter Grill Dec 1 '12 at 7:51
Thankyou for this... – Nicholas Hamilton Dec 9 '12 at 1:47

Your Answer


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.