BOLD, ITALIC, LIGHT, UNDERLINE, CBOLD,... |
Top Previous Next |
Syntax
1. bold|italic|light|underline col|{numexpr}, row|{numexpr}, cols|{numexpr}, rows|{numexpr}
2. bold|italic|light|underline "text|!=text|~regexp|!~regexp[@left,top,right.bottom]", col|{numexpr}, row|{numexpr}, cols|{numexpr}, rows|{numexpr}
If cbold, citalic, clight, or cunderline is used, then columns and rows are interpreted to be the opposite corner of the region, and columns and rows are calculated by UnForm.
Description
The region indicated by the col, row, cols, and rows parameters will have the indicated attribute (bold, italic, light, or underline) applied. All text in the input within that region, but not text generated by text keywords, will be affected. If used, numexpr is a Business Basic expression that generates a numeric value for the column, row, columns, or rows.
If syntax 2 is used, then the region is defined relative to any occurrence of the text, or of text that matches the regular expression regexpr. In these cases, there may be no affected regions, or several. column and row are 0-based in these formats. The search for text or regexpr can be limited to a region on the page by adding a suffix in the format '@left,top,right,bottom'. To use a literal "@" character in text or regexpr, it is necessary to specify "\@".
If the syntax "!=text" or "!~regexpr" is used, then the search is for positions NOT equal to the text or NOT matching the regular expression. When using the NOT syntax, only one search is performed per line in the search region.
Note that the font command is a more powerful alternative to these commands, and it also offers support for fonts that support specific weights or styles other than these.
Examples:
bold 1,5,30,4 bolds a region from column 1, row 5, for 30 columns and 4 lines.
underline "TOTAL:",0,0,36,1 underlines a region beginning at a position where the text "TOTAL:" is found, extending for 36 columns. If "TOTAL:" isn't found, the keyword is ignored until the next page is analyzed.
Drivers: pcl, pdf, ps. underline and light is supported on pcl only. Not all pcl fonts support the light and bold options.
AFO jobs not supported.
|