Hello,
I have to place an image near the right corner of my page so it's positioned opposite the section header. How do I do that?
I am working on a enrollment form so I should be able to "repeat" the page contents (including the image) two more times on the same page.
Regards, Fleet
General ⇒ Section image
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 126
- Joined: Sun Feb 13, 2011 8:36 pm
Section image
This is straight forward:
Note that you have to pass the optional argument to \section that will show up in the table of contents where pictures are not allowed.
Code: Select all
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\newcommand{\secpic}{\hfill\includegraphics[height=18pt]{picture}}
\begin{document}
\section[The First Section]{The First Section\secpic}
some text\dots
\section[The Second Section]{The Second Section\secpic}
some more text\dots
\end{document}
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).