Take the 2-minute tour ×
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.

I need to typeset a case report consisting mainly of text, with the occasional picture. This can be done in the article or amsart classes, of course, but I would like to include a varying graphic (a small gimmick) in the margins, much like in the LEGO Progress Report (the minifigures on pages 10, 16 and 17 for example).

My question, therefore, is how I could achieve this?

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

You may use package graphicx to include external graphic files into your document. To place it absolute at the current page, you may use package textpos or eso-pic. If it should be placed as side note (aka margin note) you may either use \marginpar{\includegraphics[width=\marginwidth]{filename}}. If this results in problems with the vertical position you should habe a look at package marginfix. If you simply don't wont the margin note to float at the margin, try package marginnote and \marginnote{\includegraphics[wdith=\marginwidth]{filename}}.

Here a simply \marginpar example:

\begin{filecontents*}{\jobname.eps}
%!
%%BoundingBox:100 100 172 172
100 100 moveto
72 72 rlineto
72 neg 0 rlineto
72 72 neg rlineto
stroke
100 100 moveto
/Times-Roman findfont
72 scalefont
setfont
(A) show
showpage
\end{filecontents*}
\documentclass[mpinclude]{scrartcl}
\AfterCalculatingTypearea{\addtolength{\marginparwidth}{\marginparwidth}}
\recalctypearea
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{graphicx}
\begin{document}
\section{Test}

\blindtext[3]

And now the
picture\marginpar{\includegraphics[width=\marginparwidth]{\jobname.eps}}
\blindtext[2]
\end{document}

first page of the result of the example code

share|improve this answer
add comment

Your Answer

 
discard

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.