%%%%%%%%%%%%%%%%%%%%
% Marcos for math symbols
%%%%%%%%%%%%%%%%%%%%

\newcommand{\D}{\mathrm{d}}
\newcommand{\Real}{\mathbb{R}}
\newcommand{\E}{\mathrm{e}}
\newcommand{\Sph}{\mathbb{S}^2}

\newcommand{\bx}{\bm{x}}
\newcommand{\by}{\bm{y}}
\newcommand{\bp}{\bm{p}}
\newcommand{\bq}{\bm{q}}
\newcommand{\br}{\bm{r}}
\newcommand{\bu}{\bm{u}}
\newcommand{\bF}{\bm{f}}
\newcommand{\bom}{\bm{\omega}}
\newcommand{\hatbom}{\hat{\bm{\omega}}}
\newcommand{\bbS}{\mathbb{S}}
\newcommand{\bbH}{\mathbb{H}}
\newcommand{\tint}{\textstyle\int}

\newcommand{\param}{\pi}
\newcommand{\bparam}{\bm{\param}}
\newcommand{\domain}{\Omega}
\newcommand{\boundary}{\partial\domain}
\newcommand{\interface}{\Gamma}
\newcommand{\velocity}{\bm{v}}
\newcommand{\gnorm}{\bm{n}}
\newcommand{\gnormp}{\gnorm_{\bot}}
\newcommand{\dev}{\D_{\bparam}}
\newcommand{\sdev}{\partial_{\param}}
\newcommand{\dist}{D}
\newcommand{\pixel}{\mathcal{P}}
\newcommand{\lightsource}{\mathcal{L}}
\newcommand{\pr}{\mathbb{P}}
\newcommand{\kernel}{\mathcal{K}}
\newcommand{\kernelT}{\kernel_{\mathrm{T}}}
\newcommand{\kernelC}{\kernel_{\mathrm{C}}}
\newcommand{\kernelS}{\kernel_{\mathrm{S}}}
\newcommand{\kernelB}{\kernel_{\mathrm{B}}}
\newcommand{\kernelOne}{\kernel_0}
\newcommand{\src}{Q}

\newcommand{\Lv}{L}
\newcommand{\Lins}{\Lv^{\mathrm{ins}}}
\newcommand{\Lve}{\Lv^{\mathrm{e}}}
\newcommand{\Ls}{L_\mathrm{s}}
\newcommand{\Le}{\Ls^\mathrm{e}}
\newcommand{\Li}{\Ls^\mathrm{i}}
\newcommand{\Lr}{\Ls^\mathrm{r}}

\newcommand{\sigT}{\sigma_\mathrm{t}}
\newcommand{\sigS}{\sigma_\mathrm{s}}
\newcommand{\sigA}{\sigma_\mathrm{a}}
\newcommand{\phase}{f_\mathrm{p}}
\newcommand{\bsdf}{f_\mathrm{s}}
\newcommand{\trans}{T}
\newcommand{\otrans}{\mathcal{\trans}}
\newcommand{\vis}{V}
\newcommand{\throughput}{\mathcal{T}_\mathrm{path}}
\newcommand{\intSigT}{\Sigma_\mathrm{t}}

\newcommand{\Ldir}{\Lv^{(0)}}
\newcommand{\Lind}{\Lv^{(1)}}
\newcommand{\dsrc}{\dot{\src}}

\newcommand{\dbx}{\dot{\bx}}
\newcommand{\dbom}{\dot{\bom}}
\newcommand{\ddist}{\dot{\dist}}
\newcommand{\dgnorm}{\dot{\gnorm}}
\newcommand{\gedge}{\partial^2\domain}

\newcommand{\Bins}{B^{\mathrm{ins}}}
\newcommand{\Br}{B^{\mathrm{r}}}

\newcommand{\dLv}{\dot{L}}
\newcommand{\dLins}{\dLv^{\mathrm{ins}}}
\newcommand{\dLve}{\dLv^{\mathrm{e}}}

\newcommand{\dLs}{\dot{L}_\mathrm{s}}
\newcommand{\dLe}{\dLs^\mathrm{e}}
\newcommand{\dLi}{\dLs^\mathrm{i}}
\newcommand{\dLr}{\dLs^\mathrm{r}}

\newcommand{\dphase}{\dot{f}_p}
\newcommand{\dbsdf}{\dot{f}_s}

\newcommand{\dLdir}{\dLv^{(0)}}
\newcommand{\dLind}{\dLv^{(1)}}

\newcommand{\pcam}{\bx^\mathrm{cam}}
\newcommand{\plight}{\bx^\mathrm{light}}
\newcommand{\dlight}{\bom^\mathrm{light}}
\newcommand{\ilight}{I^\mathrm{light}}

\newcommand{\thmref}[1]{Theorem~\ref{thm:#1}}
\newcommand{\corref}[1]{Corollary~\ref{cor:#1}}

%%%%%%%%%%%%%%%%%%%%
% Marcos for colorboxes
%%%%%%%%%%%%%%%%%%%%

\definecolor{grayL}{rgb}{.95, .95, .95}
\definecolor{purpleL}{rgb}{.9735, .95, .9761}
\definecolor{purpleD}{rgb}{.8941, .8, .9043}
\definecolor{greenL}{rgb}{.9643, .9906, .9750}
\definecolor{greenD}{rgb}{.7145, .9249, .7999}
\definecolor{orangeLL}{rgb}{0.9991, 0.9846, 0.9759}
\definecolor{orangeL}{rgb}{.9982, .9692, .9518}
\definecolor{orangeD}{rgb}{.9929, .8766, .8071}

\definecolor{redL}{rgb}{1.0, 0.95, 0.95}
\definecolor{redD}{rgb}{1.0, 0.8, 0.8}
\definecolor{yellowL}{rgb}{1.0, 1.0, 0.95}
\definecolor{yellowD}{rgb}{0.95, 0.95, 0.6}
\definecolor{blueLL}{rgb}{0.98, 0.98, 1.0}
\definecolor{blueL}{rgb}{0.95, 0.95, 1.0}
\definecolor{blueD}{rgb}{0.8, 0.8, 1.0}

\newtcolorbox{myBox}{%
	colback=orangeLL,colframe=orangeD,top=1mm,bottom=1mm,left=1mm,right=1mm%
}
\newtcolorbox{myMathBox}{%
	colback=orangeLL,colframe=orangeD,top=-1mm,bottom=1mm,left=1mm,right=1mm%
}
\newtcolorbox{myTitledBox}[2][]{%
	colback=white,colframe=orangeD,top=1mm,bottom=1mm,left=1mm,right=1mm,title={#2},fonttitle=\bfseries\color{black},#1%
}

\newenvironment{myitemizeP}{%
	\begin{itemize}}{\end{itemize}}
\tcolorboxenvironment{myitemizeP}{blanker,before skip=6pt,after skip=6pt,borderline west={3mm}{0pt}{purpleD}}
%
\newenvironment{myitemizeG}{%
	\begin{itemize}}{\end{itemize}}
\tcolorboxenvironment{myitemizeG}{blanker,before skip=6pt,after skip=6pt,borderline west={3mm}{0pt}{greenD}}
%
\newenvironment{myitemizeO}{%
	\begin{itemize}}{\end{itemize}}
\tcolorboxenvironment{myitemizeO}{blanker,before skip=6pt,after skip=6pt,borderline west={3mm}{0pt}{orangeD}}
%
\newtcbtheorem{thm}{Theorem}%
{colback=white,colframe=orangeD,top=1mm,bottom=1mm,left=1mm,right=1mm,enlarge top by=1mm,fonttitle=\bfseries\color{black}}{thm}
