Debian Codegraph @

texmf-dist/doc/lualatex/marginalia/marginalia-doc-example-valign.tex

raw
1 \documentclass[11pt,a4paper]{article}
2
3 \usepackage{marginalia}
4 \marginaliasetup{
5 ysep page top=0mm,
6 style recto outer=\raggedright\footnotesize,
7 style recto inner=\raggedleft\footnotesize,
8 width=30mm,
9 }
10
11 \begin{document}
12
13 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod%
14 \marginalia[valign=t]{{\large\ttfamily valign=t}\\The baseline of this marginal note
15 is the baseline of the its top line.}%
16 \marginalia[valign=b,pos=reverse]{{\large\ttfamily valign=b}\\The baseline of this
17 marginal note is the baseline of its bottom line.}
18
19 \vspace{30mm}
20
21 Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
22 nisi%
23 \marginalia[valign=c,pos=reverse]{{\large\ttfamily valign=c}\\The baseline of this
24 marginal note is midway between the top and bottom of its content.}%
25 \marginalia[valign=m]{{\large\ttfamily valign=m}\\The baseline of this marginal note
26 is midway between the baseline of its top line and the baseline of its bottom line.}
27
28 \end{document}
29