% 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{amsmath}
\usepackage{mathtools}
\usepackage{overpic}
\usepackage{color}
\usepackage{listings} %< add code
\usepackage[skip=.2em]{caption} %< caption spacing control
\usepackage{xcolor}
\usepackage{currfile}
\usepackage{cancel}
\usepackage{float}
\usepackage{rotating}
\usepackage{booktabs}
\usepackage{comment}
%\usepackage{subcaption}

% Tabularx, Siunit
\usepackage{tabularx}
\usepackage{etoolbox,siunitx}
\robustify\bfseries
\sisetup{detect-all=true,input-symbols={()}}

% \usepackage{microtype} %< hardcore text layout optimization (ONLY UPDATE ~DEADLINE)
% \usepackage{placeins} %< if you want to use FloatBarriers

%%
%% Official support for 2-column teaser figure
%%
\usepackage{cuted} %< for strip environment

%%
%% For auto-referencing of figures (see fig/teaser.tex and \label{} therein) 
%%
\usepackage{currfile} %< for \currfilebase macro

%%
%% better underline
%%
\usepackage{soul}
\setuldepth{foobar}

%%
%% caption and (global) spacing overrides
%%
\usepackage{caption} %< for "\captionof" commands (teaser)
% \setlength{\abovecaptionskip}{.5em} % space above caption
% \setlength{\belowcaptionskip}{1em} % space below caption

\usepackage[rightcaption]{sidecap}  % figures with side captions
\sidecaptionvpos{figure}{t} % align side-captions to the top
%%
%% 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{darkgray}{rgb}{0.5, 0.5, 0.5}
\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]}}
\newcommand{\todocite}[1]{{\color{red}[#1]}}

%% 
%% Inlined comments/edits
%%

\newcommand{\DF}[1]{{\color{blue}\textbf{[DF: #1]}}}
\newcommand{\SSA}[1]{{\color{darkred}\textbf{[SS: #1]}}}
\newcommand{\SV}[1]{{\color{purple}\textbf{[SV: #1]}}}
\newcommand{\NS}[1]{{\color{JungleGreen}\textbf{[NS: #1]}}}
\newcommand{\RS}[1]{{\color{darkred}\textbf{[Rick: #1]}}}
\newcommand{\ds}[1]{{\leavevmode\color[rgb]{0.8,0,0.8}[Deqing: #1]}}
\newcommand{\rit}[1]{{\leavevmode\color[rgb]{0.8,0,0.8}[richardt: #1]}}

\newcommand{\df}[1]{{\color{greyblue}#1}}
\newcommand{\ssa}[1]{{\color{darkred}#1}}
\newcommand{\sdv}[1]{{\color{purple}#1}}

\newcommand{\AT}[1]{{\bf \color[rgb]{.5,.5,1}[AT\@: #1]}}
\newcommand{\at}[1]{{\color[rgb]{.5,.5,1} #1}}

\newcommand{\SRBS}[1]{{\color{teal}\textbf{[SRBS: #1]}}}


% \newcommand{\DF}[1]{}
% \newcommand{\SSA}[1]{}
% \newcommand{\SV}[1]{}
% \newcommand{\NS}[1]{}
% \newcommand{\ds}[1]{}

% \newcommand{\df}[1]{}
% \newcommand{\ssa}[1]{}
% \newcommand{\sdv}[1]{}



\newcommand{\ReviewerOne}{{\color{purple}\textbf{vbuf}}}
\newcommand{\ReviewerTwo}{{\color{greyblue}\textbf{3xwE}}}
\newcommand{\ReviewerThree}{{\color{darkred}\textbf{knqy}}}


%% 
%% 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}}}}

%%
%% shortcuts for standard references
%% 
%% please use \autoref{fig:xx} \autoref{tab:xx}
\newcommand{\eq}[1]{(\ref{eq:#1})}

%%
%% lorem (i.e. filler latin text)
%% 
\usepackage{bbm}
\usepackage{lipsum}
\usepackage{blindtext}
\newcommand{\lorem}[1]{{\color{darkgray} \blindtext[#1]}}
\newcommand{\loremshort}[1]{{\color{darkgray} \lipsum[1][0-#1]}}

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

%%
%% macro for text
%% 
% \newcommand{\supplementary}{{\color{purple}{supplementary material}}\xspace}

\newcommand{\benchmark}{ORBIT\xspace}


\newcommand{\NeRF}{NeRF\xspace}
\newcommand{\RobustNeRF}{RobustNeRF\xspace}
\newcommand{\mipNeRFthreesixty}{mip-NeRF 360\xspace}
\newcommand{\ddnerf}{D$^2$NeRF\xspace}
\newcommand{\DDNeRF}{\ddnerf}
\newcommand{\NeRFW}{NeRF-W\xspace}
\newcommand{\SupplementaryMaterial}[1]{{supplementary material}}
%\renewcommand{\SupplementaryMaterial}[1]{\color{purple}{supplementary material\xspace}}
%#1\xspace

%
%%
%% compact itemize/enumeration (e.g. contributions)
%%
\usepackage{enumitem}
\setlist[itemize]{noitemsep,leftmargin=*,topsep=0em}
\setlist[enumerate]{noitemsep,leftmargin=*,topsep=0em}

%%
%% hardwired names
%%
\newcommand{\SceneTableOne}{\texttt{Table Scene}\xspace}

%%
%% 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}}

%%
%% math symbols
%% 
\newcommand{\C}{\mathbf{C}} %< color
\newcommand{\oracle}{\mathbf{S}}
\newcommand{\segmenter}{\mathcal{S}}
\newcommand{\object}{\mathcal{O}} %< object
\newcommand{\point}{\mathbf{p}} %< point in space
\newcommand{\camera}{\boldsymbol{c}} %< camera (intrinsics+extrinsics)
\newcommand{\image}{\C}
\newcommand{\gt}{\text{gt}} %< ground truth
\newcommand{\exposure}{\Gamma}
\newcommand{\params}{\boldsymbol{\theta}}
\newcommand{\near}{{t_n}}
\newcommand{\far}{{t_f}}
\newcommand{\radiance}{\mathbf{c}}
\newcommand{\sky}{\text{sky}}
\newcommand{\ray}{\mathbf{r}}
\newcommand{\pose}{\mathbf{T}}
\newcommand{\origin}{\mathbf{o}}
\newcommand{\dir}{\mathbf{d}}
\newcommand{\position}{\mathbf{x}}
\newcommand{\latentExposure}{\beta}
\newcommand{\density}{\sigma}
\newcommand{\feature}{\mathbf{z}}
\newcommand{\definedAs}{=}
\newcommand{\lidarPoints}{\mathcal{D}}
\newcommand{\given}{;}
\newcommand{\conv}{\circledast}
\newcommand{\gaussian}{\mathcal{N}}
\newcommand{\kernel}{\kappa}
\newcommand{\weight}{\omega}
\newcommand{\kernelPar}{\alpha}
\newcommand{\barrier}{\mathcal{B}}
\newcommand{\residuals}{\boldsymbol{\epsilon}}
\newcommand{\residual}{\epsilon}

\newcommand{\threshold}{\mathcal{T}}
\newcommand{\transient}{\tau}
\newcommand{\uncertainty}{\beta}
\newcommand{\render}{\mathcal{R}}
\newcommand{\latent}{\boldsymbol{\ell}}

\newcommand{\RMSE}{\mathrm{RMSE}}
\newcommand{\ATE}{\mathrm{ATE}}
\newcommand{\RPE}{\mathrm{RPE}}
\newcommand{\RPEt}{\mathrm{RPE_t}}
\newcommand{\RPEr}{\mathrm{RPE_r}}
