Inserting comments

If you work collaboratively, you may want to add notes or comments to a document to share additional information with your coauthor which will be removed 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, The Variety of Document Types. For brevity, we will directly look at the essential commands. As with all recipes, the full source code can be downloaded from http://latex-cookbook.net. Follow these essential steps for inserting comments:

  1. Load the xcolor package in the preamble to get color support:
    \usepackage[svgnames]{xcolor}
  2. Load the pdfcomment package in the preamble:
    \usepackage{pdfcomment}

    You could define ...

Get LaTeX Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.