|
Compatible with versions WordPerfect 8
and later versions
Downloading,
Documentation, Modifications, and Support |
A macro that divides any alphabetized list
such as an index or directory with the appropriate capital letter
between each section. ("A," "B," "C,"
etc.). All lines from the cursor position to the end of the document
will be processed.
Several options are available from a menu,
including a choice of letter color. Be sure to place cursor on the first line of the alphabetical
list before playing the macro. The alphabetical list must
not be inside a table, header, or other substructure. The macro
will work only inside normal body text (including columns).
TIP
If you want to create alphabetical headings
for paragraphs of text (not just single lines of
text, which is what ALPHADIV was designed for), you can manually
add letter headings to specific paragraphs with a simple macro,
such as the following, which is based on code posted by Charles
Rossiter, Corel C_Tech, on the WordPerfect 10 newsgroup. It uses
the first letter of the paragraph as a heading (divider), so
be sure to sort the paragraphs first.
To copy the macro into your WordPerfect, see
here.
//
Beginning of macro PosLineBeg //
Skip past any format codes or non-text characters - While
((?RightCode>0) or (not((CtoN(?RightChar)>32)and(CtoN(?RightChar)<127))))
PosCharNext EndWhile // Select, copy, and paste
the letter divider - SelectCharNext
EditCopy
PosLineVeryBeg
HardReturn
PosLineUp
EditPaste ("Unformatted Text"; 1; OLE!) //
Format the letter divider - SelectCharPrevious
AttributeAppearanceToggle (Attrib: Bold!)
AttributeRelativeSize (Size: VeryLarge!) // Return
to paragraph - PosLineDown Quit
// End of macro
Instructions: Put your cursor on the start of the appropriate paragraph
entry (i.e., before all text on the line) and play the macro.
It should insert a large, bold letter, one line above the paragraph.
You can assign this macro to a toolbar button
or keystroke.
Optional code for the above
macro: An alternative to using the
two Attribute... commands to create the large, bold divider letter
is to use a style with the StyleOn command (see below). Be aware,
however, that using a system Heading style means the letters
will be marked for inclusion in any Table of Contents.
StyleOn (Heading2Style!)
For a
larger, centered letter use StyleOn (Heading1Style!) instead.
To insert a space between the letter and the
paragraph, add these two commands just after the letter is formatted:
PosLineEnd
HardReturn |