todonotes
provides a nice method to add notes in latex document in the margin.
However, it doesn't work properly with latex documents with muli-level \input
statements
(eg. inputing a tex in another tex file that was inputted in the main file).
A simple solution is to use the following package:
\usepackage{marginnote} % to add notes to margins
\usepackage{amssymb} % for special latex symbols
\usepackage{xcolors} % for more broader range of latex colors
A few snippets that can then be used to add notes and also turn off the notes during final submission is as below:
\begin{document}
% put the notes on the left and todo on right margin
\newcommand{\todo}[2][NA]{{\color{red} $\rhd$\marginnote{[Assignee #1]: #2}}}
\newcommand{\note}[2][NA]{{\reversemarginpar \color{blue} $\lhd$\marginnote{[#1 says]: #2}}}
% uncomment following line before submitting
% \renewcommand{\note}[2][NA]{}
% \renewcommand{\todo}[2][NA]{}
TODO: sync the comment/uncommenting with the draft
/final
status of the latex doc