Code: Select all
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\tableofcontents
\addcontentsline{toc}{section}{\MakeUppercase{section}}
\end{document}
Code: Select all
Package hyperref Warning: old toc file detected, not used; run LaTeX again.
! Undefined control sequence.
\MakeUppercase ...rcaseIsNotSupportedInPdfStrings
l.9 ...line{toc}{section}{\MakeUppercase{section}}
If the hyperref package is commented out, it builds fine with a table of contents containing "SECTION"