Skip to content

Instantly share code, notes, and snippets.

@johnhw
Created October 7, 2018 09:35
Show Gist options
  • Save johnhw/ccec7422c3d72a5a0e089b546aa24024 to your computer and use it in GitHub Desktop.
Save johnhw/ccec7422c3d72a5a0e089b546aa24024 to your computer and use it in GitHub Desktop.
Preamble for formatting math in lecture notes
$$\newcommand{\vec}[1]{{\bf #1} }
\newenvironment{examinable}{\hspace{16em}}{{\hspace{16em}\LARGE[\spadesuit]}}
\newcommand{\real}{\mathbb{R}}
\newcommand{\expect}[1]{\mathbb{E}[#1]}
\DeclareMathOperator*{\argmin}{arg\,min}
\begin{examinable}
\vec{x}
\real
\end{examinable}
$$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment