I want to modify the chapter title in chapters without number (Namely, table of contents and bibliography). For this porpoise I used the following:
\def\@makeschapterhead#1{
\fbox{\parbox{\linewidth}{\centering
\large\bfseries #1
}}}
The problem is that now I cannot use the \tableofcontents
command since it sends a warning stopping the compilation:
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.4 ...umberline {1}CV D\'etaill\'e}{2}{chapter.1}
? error: unknown file type
It is just a warning, because by pressing enter, it continues compiling. But it is a quite annoying warning.
Any help?
report
. What I am trying to achieve (and I achieve, as soon as I do not use\tableofcontents
), is to have the chapter title of "Table of contents", and the chapter title of "Bibliography", with the given format: enclosed in an fbox, centred, with large size and bf.