Skip to content

Instantly share code, notes, and snippets.

@johnwickerson
Created March 27, 2024 12:07
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 johnwickerson/681c33e624256827453384a161cafaf9 to your computer and use it in GitHub Desktop.
Save johnwickerson/681c33e624256827453384a161cafaf9 to your computer and use it in GitHub Desktop.
Some simple LaTeX macros for commenting on a document
\newif\ifCOMMENTS
\COMMENTStrue
\usepackage{soul}
\ifCOMMENTS
\newcommand{\Comment}[3]{\textcolor{#1}{{\bf [\![#2:}~#3{\bf ]\!]}}}
\else
\newcommand{\Comment}[3]{}
\fi
\newcommand\JW[2][]{{\Comment{red!75!black}{JW}{\st{#1} #2}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment