home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
utility
/
pbaseiv.zip
/
P4WPR004.TIP
< prev
next >
Wrap
Text File
|
1991-12-16
|
2KB
|
54 lines
Whenever I attempted to create a table of contents from a
WordPerfect 5.1 document, the Generate command would always
recreate my chapter titles' underlining, even when I didn't
want it to. By examining hidden codes using the Reveal Codes
command (<Alt>-<F3>), I discovered a simple trick that lets
me use special formatting without having it appear in the
table of contents entries.
The method takes advantage of the order in which WordPerfect
inserts codes for titles and table of contents entries.
Depending on the order in which you mark entries and
underline titles, WordPerfect may reverse these symbols,
causing unwanted underlines to print in the table of
contents. By always having the table of contents (ToC) codes
inside the underline codes, you ensure that WordPerfect
prints underlined titles in the document but not in the
table. The macro [below, available as P4WPM\ALTT.WPM on your
PowerBase *.* Volume IV diskette] automatically marks my
titles to produce clean table of contents entries.
Raymond J. Dale
Elkhart, Indiana
Editor's note: Start WordPerfect 5.1 and enter a sample
chapter title. Move the cursor to the beginning of the title
and enter the macro keystrokes, pressing <Enter> only where
shown. When finished, load a document and position the
cursor on each Level One title. Press <Alt>-T to underline
the title and mark it for the table of contents.
To generate the table, move the cursor to the beginning of
the document. Make certain the cursor is on a blank line,
not on a header. Then press <Ctrl>-<Enter><CursorUp>
<Alt>-<F5>dc<Enter> to prepare a page for the table of
contents, then <Alt>-<F5>ggy to make the table. In a few
seconds, you'll see all your marked titles in the table,
sans underlines.
ALTT.WPM
{DISPLAY OFF}
{Block} {;}Turn·on·block·mode~
{End} {;}Mark·to·end·of·paragraph~
{Mark Text}c1{Enter} {;}Mark·text·as·TOC,·level·1~
{Block} {;}Turn·on·block·mode·again~
{Goto}{Goto}{;}Mark·previous·field~
{Underline} {;}Underline·marked·block~
Title: Hold the Underlines
Category: WPR
Issue date: Jan 1991
Editor: Tom Swan
Supplementary files: P4WPM\ALTT.WPM