In this MWE, I made two commands to highlight parts of the text as a reviewer comment, while the comments are colored uniquely to indicate the author whose comment is typeset.
If I want to make two listoftodos
, each has the comments entries of one author, how can it be done?
\documentclass{article}
\usepackage{hyperref,lipsum}
\usepackage[textwidth=2.5cm,colorinlistoftodos]{todonotes}
\setlength{\marginparwidth}{2.5cm}
\newcommand\stR[2]{% 1st reviewer comment
\todo[%
author=1st Reviewer,noline,caption={1st Reviewer #1 Comment},color=blue!20%
]%
{#1 Comment}{\color{blue}{\bfseries#2}}}
\newcommand\ndR[2]{% 2nd reviewer comment
\todo[%
author=2nd Reviewer,noline,caption={2nd Reviewer #1 Comment},color=red!50!white%
]%
{#1 Comment}{\color{red}{\bfseries#2}}}
\begin{document}
\listoftodos[Reviewers Comments]
\section{Section}
Text \stR{2nd}{2nd comment of the 1st reviewer} another text\vspace{\baselineskip}
\lipsum[1]\vspace{\baselineskip}
Some text \ndR{1st}{1st comment of the 2nd reviewer} continue text
\end{document}
todonotes
arose from that question.todonotes
package.