GeneralSection image

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
fleet
Posts: 5
Joined: Sat Aug 15, 2009 1:53 pm

Section image

Post by fleet »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

5gon12eder
Posts: 126
Joined: Sun Feb 13, 2011 8:36 pm

Section image

Post by 5gon12eder »

This is straight forward:

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}
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.
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
Post Reply