Margin Figures LaTeX
A small example of how to add figures to the margin using the 'marginfigure' define.
Also customize the page dimensions (so the margin figure isn't squashed too small).

\documentclass[12pt]{book}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{tikz}
\usepackage{lmodern}
\usetikzlibrary{calc}
\usepackage{sidenotes}
%\usepackage{mwe} % provides the example image
% modify the margins so that the marginfigure isn't too small
\usepackage[a4paper,
left=24.8mm,
top=27.4mm,
headsep=2\baselineskip,
textwidth=107mm,
marginparsep=8.2mm,
marginparwidth=49.4mm,
textheight=49\baselineskip,
headheight=\baselineskip]{geometry}
\parindent=0pt
\title{Margin Figures HowTo LaTeX}
\author{Kenwright}
\begin{document}
\chapter{Hello World}
\lipsum[4]
\begin{marginfigure}%
\includegraphics[width=\marginparwidth]{./images/cht1.jpg}%
\caption{This is in the margin.}%
\end{marginfigure}%
\lipsum[4-5]
\begin{marginfigure}%
\includegraphics[width=\marginparwidth]{./images/cht7.jpg}%
\caption{This is in the margin.}%
\end{marginfigure}%
\lipsum[2]
\chapter{Hello LaTeX}
\lipsum[10-12]
\end{document}
|