[Tex/LaTex] Add an image in the right margin


I can add text in the right margin:


But how can I add an image.png in the right margin?

Best Answer

I made the sidenotes package for this purpose. Here is an example.


\usepackage{lipsum} % provides the dummy text
\usepackage{mwe} % provides the example image

    \caption{This is in the margin.}%


The output:

marginfigure image

You can find more information using the package manual or you can use \documentclass{caesar_book} if you want to start with reasonable margin widths and such. There is a tufte-book class as well and I believe that memoirprovides this functionality as well.