\newcommand{\minitoc}[1][Contents]{%
  \etocsettocstyle{\addsec*{#1}}{}%
  \localtableofcontents%
}

\newcommand{\written}[1]{{\noindent\color{Green}Things written in #1}}
\newcommand{\unpublished}[1]{{\noindent\color{Green}Things written but not published in #1}}
\newcommand{\missing}[1]{{\noindent\color{Red}Missing #1}}

\newcommand{\argmax}[1]{\underset{#1}{\mathrm{argmax}\ }}

\newcommand{\copied}{\color{blue}}
\newcommand{\fresh}{\color{black}}
\newcommand{\resetstyle}{\color{black}}
