Skip to content

Instantly share code, notes, and snippets.

@wholmgren
Last active May 21, 2025 07:46
Show Gist options
  • Select an option

  • Save wholmgren/0a41372dfd2ebe229562 to your computer and use it in GitHub Desktop.

Select an option

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