I encountered a slight problem, when I started playing around with the look of Table of Contents.
The simple example I tried was
Code: Select all
\documentclass[a4paper,12pt]{report}
\def\tableofcontents{\section*{\centering Contents}\@starttoc{toc}}
\begin{document}
\tableofcontents
\chapter{A}
\chapter{B}
\section{B1}
\end{document}
!You can't use '\spacefactor' in vertical mode.
\@->\spacefactor
\@m
l.4 \tableofcontents
Can anyone point me in the direction of my screw up.
Cheers!