Technical Support
Forums and Mailing Lists
Search Mackichan Web

SWP & SW
Version 5/5.5

Installation
Word Processing
Computations
Typesetting
File Issues
Graphics
Exam Builder
Style Editor
Other
Free Updates
Technical Articles

Scientific Notebook
Support Information
Troubleshooting

TeXnology
BibDB
TeXnology links

Document 395

How to move an entry in the table of contents

Version: 3.x, 4.x, 5.x - Scientific WorkPlace & Scientific Word

LaTeX generates the entries in a typeset table of contents from the section headings in your document. You can force a table of contents entry to move from the bottom of one page to the top of the next, or vice versa. Use LaTeX commands in the body of your document to lengthen pages and create page breaks in the table of contents.

Forcing an entry to move to the next page of the table of contents

This procedure forces a page break before a table of contents entry:

  1. Compile your document to generate a table of contents.

  2. Determine the table of contents entry you want to force to the next page.

  3. In the body of your document, find the corresponding section heading.

  4. Place the insertion point above the heading in the document.

  5. Enter a TeX field.

  6. In the entry area, type \addtocontents{toc}{\protect\pagebreak}.

  7. Choose OK.

    When you compile your document to create a new table of contents, LaTeX places a page break before the table of contents entry for the section heading, and forces the entry to the next page of the table of contents. The body of your document remains unchanged.

Forcing an entry to move to the previous page of the table of contents

This procedure lengthens the page and forces a page break after a table of contents entry.

  1. Compile your document to generate a table of contents.

  2. Determine the table of contents entry you want to force to the previous page.

  3. In the body of your document, find the corresponding section heading.

  4. Place the insertion point immediately above the heading.

  5. Enter a TeX field.

  6. In the entry area, type \addtocontents{toc}{\protect\enlargethispage*{1000pt}} where the actual point value depends on how much information you're trying to fit on the page.

  7. Choose OK.

  8. Place the insertion point in the paragraph following the heading.

  9. Enter a TeX field.

  10. In the entry area, type \addtocontents{toc}{\protect\pagebreak}.

  11. Choose OK.

    When you compile your document to create a new table of contents, LaTeX forces the entry for the section heading to the previous page of the table of contents and places a page break after the entry. The body of your document remains unchanged.

Last revised 03/03/06

This document was created with Scientific WorkPlace.



MacKichan Software, Inc. 19689 7th Avenue NE, Suite 183 #238 Poulsbo, WA 98370
Phone: 360-394-6033 Toll-free: 877-724-9673 Fax: 360-394-6039

Please email comments and suggestions regarding this site to webmaster@mackichan.com.
© Copyright 1998 - MacKichan Software, Inc. All rights reserved.