Defining Styles Defining Styles

Whenever MOSES writes a report or draws a picture, it is done using a set of attributes which are called a style. Precisely which style is used when will be discussed later, but styles are defined to MOSES by a command:


where ST_NAME is the style name and the available options are:


     -PITCH, CPI



     -TABS, TBCHAR, S(1), S(2), .....

     -R_INDENT, RI

     -L_INDENT, LI

     -F_INDENT, FI









The -COLOR_SCHEME option here defines the color scheme which will be used when displaying this style. The options -PITCH, -POINTS, -LEDDING, and -TABS are used to define the text size and spacing. Here, CPI is the number of characters per inch which will be printed, CHAR_HEIGHT defines the height of the characters being printed, and LED defines the amount of space between lines of type as a fraction of the type size. Standard type has a ledding of 1.2, so that for a default device, if one wants to double space text, he should specify LED to be 2.2. The -TABS option is used to define a tab character, TBCHAR, and a set of tab stops in characters.

The next three options define any indentation from the margins for this style. Here, RI is the indentation from the right margin, LI is the indentation from the left margin, and FI is the indentation for the first line of a paragraph. Both RI and LI must be positive, but FI may be a negative number of a value up to the value of RI. Again, RI, LI, and FI are measured in points.

The -BEFORE and -AFTER options define the number of points of blank space which will be set before or after a paragraph, while the -JUSTIFY option is used to define whether or not the right margin of the text will be justified. If YES/NO is NO, the margin will not be justified.

The -FONT option is used to define the type style which will be used, and the value for FONT_NAME must be either LGOTHIC or COURIER. The -FACE option defines the character of the type, and FACE_NAME must be either: NORMAL, UNDERLINE, BOLD, ITALICS, or BITALICS. Here, NORMAL will be standard type, UNDERLINE will be underlined, etc.

The -USE option is used to create a new style based on a previously defined one, OLD_NAME. If used, this should be the first option specified, and it instructs MOSES to use the previous style as the default values for the current style.

The last two options are used when pictures or graphs are being produced. The -CSYM_HEIGHT option defines the height of any centered symbols on a graph. These are normally used to differentiate between two curves, or to denote points. The -LINE_WIDTH option defines the width of any lines being drawn.