.TABS - set tabs for the current output unit.

Alternate Entry Name: _TABS

Usage:

B:
   .tabs( ptr [, maxcol] )
C:
   void _tabs(void *ptr [, int maxcol] );

Where:

ptr
is a pointer to a MNVL_KWD structure of the form used by .BSET.
maxcol
is the maximum column for which propagated tabs are to be set. The default is 256.

Description:

.TABS is a convenient way to set user-specified tabs. It will normally be called with "ptr" pointing to an array of numbers as returned by .BSET. This means that the first element in the array is a count of the number of elements which follow. .TABS will clear any current tab settings, set tabs for the columns specified in the structure, and then fill out the tab settings to column "maxcol".

If only one value <n> is listed in the given array, tab stops will be set every <n> columns along the line, beginning at column one. Otherwise, the difference between the last two specified stops is used as an increment for setting the remaining tabs in the line. If the last two values are the same (i.e. the increment is zero), no tab stops will be set except the ones specified in the array.

Examples:

.tabs( ptr );
    if ptr is defined as
    ptr[] { 5, 8, 16, 32, 35, 40};
 tabs are set at 8,16,32,35,40,45,50,...
 and every 5 up to 256.
   if ptr is defined as
   ptr[] {1, 10};
 tabs are set at 1,11,21,31,...
 and every 10 up to 256.
   if ptr is defined as
   ptr[] {3, 5, 10, 10};
 tabs are set at 5 and 10 only.

See Also:

expl b lib .bset

expl b lib tabset

Copyright © 1996, Thinkage Ltd.