HP 3000 Manuals

Center Text [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Center Text 

Purpose 

Centers one or more lines of text.

Default Syntax 

[n] |

where n represents the number of lines to center beginning at the cursor
line.  The default value of n is 1.

Description 

This command centers one or more lines of text between the left margin
and the current right margin column.

The right margin is determined by the Join Length variable, which has a
default value of 80.  You can alter this variable by invoking the Set
Options command and changing the value of the Join Length parameter.  You
can specify a value less than or equal to the last column on the screen.

The non-default value you provide for this field only affects the current
session.  You can save this new default for other subsequent sessions by
using the Save Config File command.  Refer to the Save Config File and
Load Config File commands for information about customizing your editing
options.

Procedures 

To center a line using the default join length: 

   1.  Move the cursor to a column anywhere on the line to be centered.

   2.  Press the | key.  HP EDIT centers the text between the left and
       right margins.

To center more than one line using the default join length: 

   1.  Move the cursor to a column anywhere on the first line of the
       group to be centered.

   2.  Type a count that represents the number of lines you want to
       center beginning at the current line.

   3.  Press the | key.  HP EDIT centers the text between the left and
       right margins of each line.

[REV BEG]

To center a block of text: 

   1.  Select a block of text using either the Mark Character Block Start
       or the Mark Line Block Start commands.

   2.  Press the | key while the cursor is within an explicit block, or
       at the end of an implicit block.
[REV END]

To center a line using another join length: 

   1.  Issue the Set Options (O) command.

   2.  Press the j key to modify the Join Length field.

   3.  Enter the desired numeric value representing the right margin
       column and press Return.

   4.  Press Return to return to your editing session.

   5.  Move the cursor to a column anywhere on the line to be centered.

   6.  Press the | key.  HP EDIT centers the text between the left margin
       and the user-defined right margin.

Related Commands 

None



MPE/iX 5.0 Documentation