% This file contains all unofficial tweaks to the official template
% That is, main.tex is **minimially** changed (only \import added)

%%
%% additional package imports (never in the main.tex!!!)
%%
\usepackage{overpic}
\usepackage{enumitem} %< control spacing in itemize/enumerate/...
\usepackage{overpic} %< add raw math symbols to figures
\usepackage{color}
% \usepackage{microtype} %< hardcore text layout optimization (ONLY UPDATE ~DEADLINE)
% \usepackage{placeins} %< if you want to use FloatBarriers

%%
%% basic colors
%%
\definecolor{turquoise}{cmyk}{0.65,0,0.1,0.3}
\definecolor{purple}{rgb}{0.65,0,0.65}
\definecolor{dark_green}{rgb}{0, 0.5, 0}
\definecolor{orange}{rgb}{0.8, 0.6, 0.2}
\definecolor{red}{rgb}{0.8, 0.2, 0.2}
\definecolor{darkred}{rgb}{0.6, 0.1, 0.05}
\definecolor{blueish}{rgb}{0.0, 0.3, .6}
\definecolor{light_gray}{rgb}{0.7, 0.7, .7}
\definecolor{pink}{rgb}{1, 0, 1}
\definecolor{greyblue}{rgb}{0.25, 0.25, 1}

%%
%% basic TODOs
%%
\newcommand{\todo}[1]{{\color{red}#1}}
\newcommand{\TODO}[1]{\textbf{\color{red}[TODO: #1]}}

%% 
%% Inlined comments/edits
%%
% --- Andrea Tagliasacchi (AT)
\newcommand{\at}[1]{{\color{blueish}#1}} %< I changed something and I want you to see it
\newcommand{\AT}[1]{{\color{blueish}{\bf [AT: #1]}}} %< inlined comment for max visibility
\newcommand{\At}[1]{\marginpar{\tiny{\textcolor{blueish}{#1}}}} %< useful for ~deadline (no layout changes)
% --- Geoffrey Hinton (GE)
\newcommand{\gh}[1]{{\color{dark_green}#1}}
\newcommand{\Gh}[1]{\marginpar{\tiny{\textcolor{dark_green}{#1}}}}
\newcommand{\GH}[1]{{\color{dark_green}{\bf [AT: #1]}}}


%% 
%% Circled numbers instead of itemize lists
%%
% i.e. instead of (1) phrase, (2) phrase, ..., and avoids name clash with `\eq{ref}` as (1)
% is often used for Eq.~(1)
\newcommand{\CIRCLE}[1]{\raisebox{.5pt}{\footnotesize \textcircled{\raisebox{-.6pt}{#1}}}}

%%
%% basic math symbols
%%
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator*{\argmax}{arg\,max}
\newcommand{\loss}[1]{\mathcal{L}_\text{#1}}
\newcommand{\expect}{\mathbb{E}}
\newcommand{\real}{\mathbb{R}}

%%
%% shortcuts for standard references
%% 
\newcommand{\Fig}[1]{Fig.~\ref{fig:#1}}
\newcommand{\Figure}[1]{Figure~\ref{fig:#1}}
\newcommand{\Tab}[1]{Tab.~\ref{tab:#1}}
\newcommand{\Table}[1]{Table~\ref{tab:#1}}
\newcommand{\eq}[1]{(\ref{eq:#1})}
\newcommand{\Eq}[1]{Eq.~\ref{eq:#1}}
\newcommand{\Equation}[1]{Equation~\ref{eq:#1}}
\newcommand{\Sec}[1]{Sec.~\ref{sec:#1}}
\newcommand{\Section}[1]{Section~\ref{sec:#1}}
\newcommand{\Appendix}[1]{Appendix~\ref{app:#1}}

%%
%% lorem (i.e. filler latin text)
%% 
\usepackage{blindtext}
\newcommand{\lorem}[1]{\todo{\blindtext[#1]}}

%%
%% paragraph (fine tune spacing close to deadline)
%% 
\renewcommand{\paragraph}[1]{\vspace{1em}\noindent\textbf{#1}.}
% \setlength{\parindent}{3pt}%