Skip to content

Instantly share code, notes, and snippets.

@nehiljain
Forked from priyankt68/comments.tex
Created June 15, 2014 17:16
Show Gist options
  • Save nehiljain/080aacbeb11414b43f7a to your computer and use it in GitHub Desktop.
Save nehiljain/080aacbeb11414b43f7a to your computer and use it in GitHub Desktop.
Put comments in latex.
\newcount\Comments % 0 suppresses notes to selves in text
\Comments=1 % TODO: set to 0 for final version
% for comments
\usepackage{color}
\definecolor{darkgreen}{rgb}{0,0.5,0}
\definecolor{purple}{rgb}{1,0,1}
% \kibitz{color}{comment} inserts a colored comment in the text
\newcommand{\kibitz}[2]{\ifnum\Comments=1\textcolor{#1}{#2}\fi}
% add yourself here:
\newcommand{\nehil}[1]{\kibitz{red} {[NJ: #1]}}
\newcommand{\jeremy}[1] {\kibitz{purple} {[JK: #1]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment