\newcommand{\eg}{\textit{e.g.},\ }
\newcommand{\ie}{\textit{i.e.},\ }
\newcommand{\etal}{\textit{et al.}}

\let\oldtableofcontents\tableofcontents % backup

\let\oldaddcontentsline\addcontentsline
\newcommand{\ADDCONTENTSLINE}[3]{
	\oldaddcontentsline{#1}{#2}{\uppercase{#3}}
}
\newcommand{\CAPinToC}{\let\addcontentsline\ADDCONTENTSLINE}
\newcommand{\noCAPinToC}{\let\addcontentsline\oldaddcontentsline}