Document 398

How to reposition typeset division headings

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

You can modify the typesetting specifications to reposition an entire category of division headings, such as all chapter headings, or several individual division headings. If your document was created with a Style Editor shell, use the Style Editor to reposition the headings.

Repositioning all headings for a given division level

With the sectsty package you can change the location of an entire category of division headings (the process removes the division number from the heading and excludes the division from the table of contents, but you can include the unnumbered division in the table of contents again):

  1. Add the sectsty package to your document.

    The package works with standard LaTeX article, book, and report shells. If the package isn't listed as available for your document, it will not work. Don't attempt to go native to add the package.

  2. From the Typeset menu, choose Preamble and click the mouse in the entry area.
  3. On a new line at the end of the preamble entries, type this command for each division heading level you want to move:
    \divisionfont{x}
    where \divisionfont reflects the heading you want to move (such as \allsectionsfont, \partfont, \chapterfont, or \sectionfont) and x is the command for the new heading location:
    Command Effect
    \centering Centered heading
    \raggedleft Set flush right with a ragged left margin
    \raggedright Set flush left with a ragged right margin
  4. Choose OK.

Repositioning a single division heading

You can reposition a single division heading by replacing it with a TeX command. The process maintains the division number and includes the division in the table of contents. We don't recommend this process for shells in which numbered chapter headings are preceded by the word Chapter.

  1. Place the insertion point where you want the heading to appear.
  2. Enter an encapsulated TeX field.
  3. In the entry area, type {\location\ division{Name}} where location is the location you want, division is the division level you want to move, and Name is the name of the heading as you want it to appear. Define the location as \centering, \raggedleft, or \raggedright, as described above.
  4. Choose OK.
  5. Delete the original heading.

Last revised 05/02/07

This document was created with Scientific WorkPlace.