What I did:
\renewcommand{\thesection}{{\sc Chapter \arabic{section}}}
to have other section styles and names.
The command \tableofcontents, creates a warning overfull \hbox.
Normally you get
1 Title section 1
etc.
Now I get:
(both on the same line, thus over each other)
Chapter 1
Title section 1
Thus it looks like:
Cha%$%$%$ection 1
It seems that the hbox for the sectionnumber 1 etc is not changed, so the "Chapter 1" does not fit.
Can you help me?
Page Layout ⇒ tableofcontents, overfull \hbox, text over text problem
NEW: TikZ book now 40% off at Amazon.com for a short time.

tableofcontents, overfull \hbox, text over text problem
Hi,
switch to a class implementing chapters (book, scrbook, memoir) and use the titlesec/titletoc packages to customize the headings and the ToC entries. A little example:
switch to a class implementing chapters (book, scrbook, memoir) and use the titlesec/titletoc packages to customize the headings and the ToC entries. A little example:
Code: Select all
\documentclass{book}
\usepackage{titlesec}
\usepackage{titletoc}
\titleformat{\chapter}[hang]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing*{\chapter}
{0pt}{20pt}{20pt}
\titlecontents{chapter}[0pt]
{}{\contentspush{Chapter\hspace*{10pt}}\thecontentslabel\hspace*{1em}}
{}{\titlerule*[1pc]{.}\contentspage}
\begin{document}
\tableofcontents
\chapter{Test chapter}
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...