Skip to content

Instantly share code, notes, and snippets.

@germanD
Created June 13, 2017 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save germanD/29af6c4fa0e663ee0cf92fccc553c6cf to your computer and use it in GitHub Desktop.
Save germanD/29af6c4fa0e663ee0cf92fccc553c6cf to your computer and use it in GitHub Desktop.
My Skull comments
\newcommand{\mute}[1]{\ifdefined\draftflag{#1} \else{} \fi}
% Requires flag \draftflag to be passed around to .tex,
% or defined here
\usepackage{skull}
\newcounter{ToDos}
\newcounter{WarnCounts}
\newcommand{\decorateWC}{
\stepcounter{WarnCounts}
\marginpar{\textcolor{red}{$\skull\ \theWarnCounts$}}}
\newcommand{\decorateTD}{
\stepcounter{ToDos}
\marginnote{\textcolor{red}{$\textbf{TO DO}_{\#\ \theToDos}$}}}
% Skeleton for remark comments
% 1: Name, 2: Color, 3:Comment
\newcommand{\signedComment}[3]
{\mute{\textcolor{#2}{(#1: {#3})}\decorateWC}}
% remarks
%%\newcommand{\todo}[1]{\mute{\textcolor{red}{(TO DO:{#1})}\decorateTD}}
\newcommand{\todo}[1]{\mute{\textcolor{red}{{\large \bf (TO DO:)}{#1}}\decorateWC}}
\newcommand{\gad}[1]{\signedComment{GAD}{red}{#1}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment