Skip to content

Instantly share code, notes, and snippets.

@brescia123
Created September 29, 2015 08:21
Show Gist options
  • Save brescia123/4f48c12ed55153e474e2 to your computer and use it in GitHub Desktop.
Save brescia123/4f48c12ed55153e474e2 to your computer and use it in GitHub Desktop.
Useful commands for Latex
\definecolor{light-gray}{gray}{0.95}
\definecolor{yellow}{RGB}{255, 251, 140}
% single line code blocks with monospace font and light-gray background (StackOverflow style)
\newcommand{\code}[1]{\colorbox{light-gray}{\texttt{#1}}}
% note command
\newcommand{\todo}[1]{\colorbox{yellow}{\textbf{\#TODO} #1}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment