pdf annotations

WARNING: Please update your bookmarks! The content of this site has been moved to http://dille.name where it will be updated as needed. This page will remain unchanged.

pdf annotations provide a nice way to add notes to your document (actually they are much more powerful, but i have merely used text annotations so far):

\pdfannot{/Subtype/Text/Contents(TEXT)}

you can also force the annotations to the margin paragraph:

\marginpar{\pdfannot{/Subtype/Text/Contents(TEXT)}}

the standard tex line break using \\\ do not work, therefore:

\marginpar{\edef\\{\string\r}\pdfannot{/Subtype/Text/Contents(TEXT)}}
be caseful to limit the edef construct to the pdf annotation. this is achieved by the marginpar command here.

you can also adjust the size of the pdf annotation:

\pdfannot with 10cm depth 7cm {/Subtype/Text/Contents(TEXT)}