| 1 |
\documentclass[11pt,a4paper]{article} |
| 2 |
|
| 3 |
\usepackage{marginalia} |
| 4 |
\marginaliasetup{ |
| 5 |
xsep=5mm, style=\raggedright\sffamily, |
| 6 |
} |
| 7 |
|
| 8 |
\usepackage{tikz} |
| 9 |
\newcommand\drawarrow{% |
| 10 |
\tikz[remember picture,overlay] |
| 11 |
\draw[->,thick] (arrowstart) -- ++(-1.5mm,0) |- (.5mm,.5ex);% |
| 12 |
} |
| 13 |
\newcommand\savearrowstart{% |
| 14 |
\tikz[remember picture,overlay] \coordinate (arrowstart) at (-.5mm,.5ex);% |
| 15 |
} |
| 16 |
|
| 17 |
\begin{document} |
| 18 |
|
| 19 |
Lorem ipsum dolor sit amet,% |
| 20 |
\marginalia[mark={~$\triangleleft$}]{A marginal note. (Extra text to push down the |
| 21 |
note below.)} consectetur adipiscing elit, sed do eiusmod tempor incididunt ut |
| 22 |
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation |
| 23 |
ullamco laboris nisi ut aliquip ex ea commodo consequat.% |
| 24 |
\marginalia[mark={\drawarrow}]{\savearrowstart Another marginal note.} |
| 25 |
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu |
| 26 |
fugiat nulla pariatur. |
| 27 |
|
| 28 |
\end{document} |
| 29 |
|