number-items - Renumber a vertical list of items
number-items start-number char-width num-lines
number-items provides a short cut method of re-numbering a list of vertically aligned numbered items. The command assumes a fixed width number per line. The command operates from the current cursor position in a downward direction. The parameters are defined as follows:
start-number
char-width
num-lines
The following code fragment shows how a list is renumbered.
MY_COMMAND (myCMD_UP, # 9, "Move Up") MY_COMMAND (myCMD_DOWN, 10, "Move down") MY_COMMAND (myCMD_LEFT, 15, "Move down") MY_COMMAND (myCMD_RIGHT, 10, "Move down")
To to use the command to renumber the list from 100 to 103 then the cursor is placed at the left hand side where the number should start. In the example this is #, then issue the command esc x number-items 100 3 4. This renumbers the list resulting in the following:
MY_COMMAND (myCMD_UP, 100, "Move Up") MY_COMMAND (myCMD_DOWN, 101, "Move down") MY_COMMAND (myCMD_LEFT, 102, "Move down") MY_COMMAND (myCMD_RIGHT,103, "Move down")
number-items is a macro defined in misc.emf.
(c) Copyright JASSPA 2009
Last Modified: 2009/09/03
Generated On: 2009/10/12