Skip to content

Instantly share code, notes, and snippets.

@wholmgren
Last active June 10, 2021 08:57
Show Gist options
  • Save wholmgren/0a41372dfd2ebe229562 to your computer and use it in GitHub Desktop.
Save wholmgren/0a41372dfd2ebe229562 to your computer and use it in GitHub Desktop.
A latex shortcut command for easily embedding color-coded author notes
\usepackage{color}
\newcommand{\Eckel}[1]{{\bf\color{blue} JE: #1}}
\newcommand{\Holmgren}[1]{{\bf\color{red} WH: #1}}
Here's some text. It can be a pain to insert good comments into tex documents. \Eckel{I have a trick for that!}.
Here's some more text. \Holmgren{Nice!}.
@wholmgren
Copy link
Author

I learned this awesome trick from Jon Eckel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment