General ⇒ Section image
Section image
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Posts: 126
- Joined: Sun Feb 13, 2011 8:36 pm
Section image
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}