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 want to insert small images in sidenotes. Is it possible (everything seems to)? How could I do it?

share|improve this question
4  
A so called “minimum working example” would be nice. Show us, what you could achieve so far. –  PattaFeuFeu Nov 5 '12 at 17:34
    
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It is considered a lot better to put in some code that will compile, as it makes it a lot easier for us to copy it into our text editor and work with it, and see exactly what it is you are trying to do. –  Stephen Nov 5 '12 at 19:19
add comment

1 Answer

I am not sure if I understand the question correctly. You can use \includegraphics inside \marginpar:

\documentclass{article}
\usepackage{graphicx}
\usepackage[nopar]{lipsum}% just to generate text for the example

\begin{document}

\lipsum[1]\marginpar{\includegraphics[width=\marginparwidth]{ctanlion}}\lipsum[1]

\end{document}

enter image description here

CTAN lion drawing by Duane Bibby.

Another option would be to use \marginnote from the marginnote package:

\documentclass{article}
\usepackage{graphicx}
\usepackage{marginnote}
\usepackage[nopar]{lipsum}

\begin{document}

\lipsum[1]\marginnote{\includegraphics[width=\marginparwidth]{ctanlion}}\lipsum[1]

\end{document}
share|improve this answer
    
Thanks a lot. It works –  Anibal Vivaceta Nov 6 '12 at 3:25
    
@AnibalVivaceta You're welcome! Don't forget (after a sensible wait) to accept the answer (up-voting and accepting are different actions); in case of doubt, please see How do you accept an answer?. –  Gonzalo Medina Nov 6 '12 at 3:27
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.