Inserting comments
When collaborating, you may want to append notes or comments to a document, offering extra details to share with co-authors, which can later be eliminated from the final version. The PDF standard supports comments, and so does LaTeX.
How to do it...
We will insert some comments into our small document example from Chapter 1, Exploring Various Document Classes. For brevity, we will directly look at the essential commands. As with all recipes, the full source code can be downloaded. Follow these essential steps for inserting comments:
- Load the xcolor package in the preamble to get color support:
\usepackage[svgnames]{xcolor}
- Load the pdfcomment package in the preamble:
\usepackage{pdfcomment}
You could define some default settings if you wish to, such as the following. Add them when loading the pdfcomment package, as follows:
\usepackage[author={Your name}, icon=Note, color=Yellow, open=true]{pdfcomment}
- To insert a simple comment with...