\relax \ifx\hyper@anchor\@undefined \global \let \oldcontentsline\contentsline \gdef \contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}} \global \let \oldnewlabel\newlabel \gdef \newlabel#1#2{\newlabelxx{#1}#2} \gdef \newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}} \AtEndDocument{\let \contentsline\oldcontentsline \let \newlabel\oldnewlabel} \else \global \let \hyper@last\relax \fi \citation{five} \@writefile{toc}{\contentsline {section}{\numberline {1}Introduction}{1}{section.1}} \citation{one} \citation{two} \citation{three} \citation{four} \citation{two} \@writefile{toc}{\contentsline {section}{\numberline {2}Excluding the simple cases}{2}{section.2}} \@writefile{toc}{\contentsline {section}{\numberline {3}The six difficult cases}{3}{section.3}} \bibcite{one}{1} \bibcite{two}{2} \bibcite{three}{3} \bibcite{four}{4} \bibcite{five}{5}