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 May 29, 2015 |
|
Para#End - Numbers each paragraph at the end of the paragraph. | ||
|
This macro (Para#End.wcm) numbers each paragraph in the document at the end of the paragraph with a bracketed and automatically incrementing counter, like this:[1] The macro was created to help those who want to publish to certain online journals that require such numbering. It is also an example of using a macro to place a WordPerfect counter at various places in the document to display automatically incrementing numbers. Operation (1) The macro begins by removing any existing bracketed numbers that have the same pattern used previously:
(2) Starting at the current cursor location, the macro then inserts a uniquely named counter (ParaNumberAtEnd) surrounded by user-selected text brackets at the end of each paragraph (e.g., [1], [2], etc.). The counter -- and thus the number it displays -- is automatically incremented immediately after each counter is displayed. Notes You can delete any paragraph along with its bracketed counter, or just the bracketed counter itself (if you don't want to number that particular item), and the remaining counters will reset themselves to the proper numbering. Use Reveal Codes to be sure you delete both of the number's two counter codes. If you insert a paragraph, either copy an existing bracketed number (copy the brackets and the two codes between them) and paste it at the end of the newly inserted paragraph, or simply play the macro again on the entire document. Similarly, you can copy any visible bracketed code and paste it wherever desired or needed. Reveal Codes are very helpful in ensuring that you copy all four elements (the two brackets with the two codes inside them). All other counters will automatically reset themselves. Other documents that were numbered with this macro can be inserted into the current document (presumably, also numbered), and all counters will automatically reset themselves. If you use a paragraph style (e.g., Heading 2) for short headings, followed by a single hard return, the heading won't be numbered. If there are two or more hard returns between the heading and the next paragraph, the heading will be numbered. Tip You can use counters to count or number
anything in a document. Counters can automatically display numbers,
letters, or Roman numerals. They give you control over where numbers
are displayed. For an overview and an example of using macros to create
them, insert them, or reset them see "Using WordPerfect counters". |
|