Print

Print


On Fri, Jun 16, 2006 at 02:18:10PM +0200, Arik Raffael Funke wrote:

> I am working on quite a large document and the content is getting quite
> long and it becomes difficult find things quickly. I have thus
> introduced an "artificial" structure layer by adding following to the code:
> 
> \addtocontents{toc}{\contentsline {chapter}{\centerline{SECTION 1}}{}}

* A higher order structure element than chapter is part.
* The generic interface for formatting issues in the table
  of contents are macros that start with \l@:
  \l@part, \l@chapter, ...
  Package tocloft provides help at user level.

> Unfortunately this line in the content listing is classified as a
> chapter and a page break to the following chapter will occur. I have
> found no way to prevent this. Adding \nopagebreak, \newpage etc. to the
> toc file just resulted in errors.

The standard classes make a page break *before* this entry
easier, but they don't force page breaks.

BTW, a better place for asking this kind of questions
is the newsgroup comp.text.tex or AFAIK the mailing list texhax,
see:
  http://www.tex.ac.uk/cgi-bin/texfaq2html?label=maillists
  Where to get help

See also FAQ section P.6 "Table of contents and indexes", e.g.:
  http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tocloft
  The format of the Table of Contents, etc.

Yours sincerely
  Heiko <[log in to unmask]>