PDF Annotations

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 LaTeX line break using \\ does 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)}
Feedback is always welcome! If you'd like to get in touch with me concerning the contents of this article, please use Twitter.