Skip to content

Instantly share code, notes, and snippets.

@Adjuvant
Created December 3, 2018 12:23
Show Gist options
  • Select an option

  • Save Adjuvant/33d85816d182feb80c3ccde589d67b7e to your computer and use it in GitHub Desktop.

Select an option

Save Adjuvant/33d85816d182feb80c3ccde589d67b7e to your computer and use it in GitHub Desktop.
Latex header stuff for todo notes across publications
% setup revision commands
\usepackage{xargs} % Use more than one optional parameter in a new commands
%\usepackage[dvipsnames]{xcolor} % Coloured text etc. now in acmart.cls
\usepackage[colorinlistoftodos,prependcaption,textsize=small]{todonotes}
\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{\feedback}[2][1=]{\todo[linecolor=yellow,backgroundcolor=yellow!25,bordercolor=yellow,#1]{#2}}
\newcommandx{\improvement}[2][1=]{\todo[linecolor=Plum,backgroundcolor=Plum!25,bordercolor=Plum,#1]{#2}}
\newcommandx{\thiswillnotshow}[2][1=]{\todo[disable,#1]{#2}}
\newcommandx{\completedRevision}[2][1=]{\todo[disable,backgroundcolor=red,#1]{#2}}
\newcommandx{\dataSource}[2][1=]{\todo[disable,backgroundcolor=red,#1]{#2}}
% Commands for authored comments
\newcommandx{\TomTodo}[2][1=]{\todo[linecolor=orange,backgroundcolor=orange!25,bordercolor=orange,author=Tom,inline,#1]{#2}}
\newcommandx{\OtherPersonTodo}[2][1=]{\todo[linecolor=OliveGreen,backgroundcolor=OliveGreen!25,bordercolor=OliveGreen,author=Mathieu,inline,#1]{#2}}
\newcommandx{\AnotherPersonTodo}[2][1=]{\todo[linecolor=OliveGreen,backgroundcolor=OliveGreen!25,bordercolor=OliveGreen,author=Pat,inline,#1]{#2}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment