Skip to content

Instantly share code, notes, and snippets.

@ferrine
Last active March 27, 2018 12:50
Show Gist options
  • Save ferrine/16bd5508327a02bfd46657ba1193ff5a to your computer and use it in GitHub Desktop.
Save ferrine/16bd5508327a02bfd46657ba1193ff5a to your computer and use it in GitHub Desktop.
Latex optional gray C++ style author notes
\newif\ifIncludeAuthorNotes
% Comment the below line to remove notes from text
\IncludeAuthorNotestrue
\DeclareRobustCommand{\note}[1]{
\ifIncludeAuthorNotes
% the below line skips are intentional and force comment to be on a separate line
\textcolor{gray}{/* #1 */}
\fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment