|
Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate |
|
Toolbox for WordPerfect |
||
|
Macros, tips, and
templates for Corel® WordPerfect® for Windows® |
Page updated Sep 1, 2009 | |
| AlphaDiv - "Alphabetical List Divider" - Divide any alphabetical list with capital letters | ||
|
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.
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. To insert a space between the letter and the
paragraph, add these two commands just after the letter is formatted: |
|