I want to highlight or mark some text in the editor window to remind me that I need to review it. Is it possible? Thanks.
Asked
Active
Viewed 540 times
1 Answers
1
You can use todonotes package. I have the following definition
\usepackage[colorinlistoftodos,prependcaption]{todonotes}
If you want, you can even define different types of todo. Here is what I have, each with its own color:
%--------This section has to do with todo notes ----------------
\usepackage{etoolbox}
\usepackage[colorinlistoftodos,prependcaption]{todonotes}
\newcommandx{\intodo}[2][1=]{\todo[inline,#1]{#2}}
\newcommandx{\unsure}[2][1=]{\todo[linecolor=red,backgroundcolor=red!25,bordercolor=red,#1]{#2}}
\newcommandx{\change}[2][1=]{\todo[linecolor=blue,backgroundcolor=blue!25,bordercolor=blue,#1]{#2}}
\newcommandx{\info}[2][1=]{\todo[linecolor=OliveGreen,backgroundcolor=OliveGreen!25,bordercolor=OliveGreen,#1]{#2}}
\newcommandx{\improve}[2][1=]{\todo[linecolor=Plum,backgroundcolor=Plum!25,bordercolor=Plum,#1]{#2}}
ozsu
- 2,385
%TODO review this, and you can have all of these%TODOs listed in the structure panel on the left side of the editor. (Many editors, including TeXshop, have some form of support for magic comments, though I don't know which have exactly todo-comments implemented.) – Torbjørn T. Mar 21 '18 at 22:47