GDDM-PGF V2R1.3 OPS User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF | BOOK


Using TRCs to select symbol sets

GDDM-PGF V2R1.3 OPS User's Guide
SC33-1776-00



TRC (table reference code) characters control the choice of symbol sets made by a printer. The codes are in column 2, and assume values from 0 to 3, corresponding to four possible symbol sets. As described in "Basic text handling" in topic 2.4.1, you can control the symbol set of OPS in exactly the same way. For example:


          1 ...
            )ops ss font0 font1 font2 font3
            )ops trc on;   * column 2 is now considered as TRC code
           0 Written with font0
           1 Written with font1
           2 Written with font2
           3 Written with font3
             )ops trc off; * if it is used here only...
          1

You can also attach individual character box sizes, colors, and leading space to the different TRC values. These are used in the example below, which creates a text foil using TF commands and TRC codes.

Note: This example is actually part of the OPS sample file, ADM7OPXA, so you can get the infile and use it yourself as the starting point for one of your presentations.


    ________________________________________________________________________ 
   |                                                                        |
   |                                                                        |
   |     %******************************************************************|**
   |   1 )ops prefix %;* Assure prefix is known if the page is "cut out" ***|*
   |     %* A more complicated text foil using text flow functions and TRC  |
   |     %******************************************************************|**
   |     % reset;                    * The recommended way to start a new pa|e
   |     % trc on;                   * TRC means: column 2 controls the font|
   |     %*** Define 3 fonts for TRC use:                                   |
   |     % ss  admuudrp admuucip admuusrp                                   |
   |     % h   3.5      3        2.3                                        |
   |     % col tur      yel      whi                                        |
   |     % lsp 0        0        .1t                                        |
   |     %*** now 0 in column points to 1st font, 1 points to 2nd font, etc.|
   |     %*** Do NOT add further (global) ss, h, color, or lsp commands     |
   |     %*** Local commands, like color on the head-command, are OK:       |
   |    0% head 'Text flow functions' dr r 2 color r                        |
   |    0% head 'OPS' ss admuuksf, col t dr off; * Even local SS is OK    |
   |     %*                                                                 |
   |     %*** Start text flow.                                              |
   |     % tf xmax 96; in 4                                                 |
   |    0% tfh Here are the OPS text flow commands:                         |
   |    1% tful                                                             |
   |    1% tfli TF - Text flow start                                        |
   |    2% tfp May be used to set Xmax and paragraph spacing (psp keyword)  |
   |    1% tfli TFH and TFP - Header and Paragraph                          |
   |    2% tfp For all the bulk text. TFH spaces 1.5 paragraph spaces -     |
   |    2thats the only difference.                                         |
   |    1% tfli TFUL, TFOL, TFEUL, TFEOL, TFLI - for lists                  |
   |    2% tfp This foil uses an unordered list. You can nest and mix       |
   |    2unordered and ordered lists to any depth                           |
   |    1% tfli TFXMP, TFEXMP                                               |
   |    2% tfp Use these around                                             |
   |    1examples                                                           |
   |    2or text with                                                       |
   |    1tabs                                                               |
   |     % tfeul                                                            |
   |     % trc off                                                          |
   |                                                                        |
   |                                                                        |
   |________________________________________________________________________|
   Figure 27. Sample source for a text foil showing TRC codes and formatting


Figure 28 shows the result.


    __________________________________________________________________________________ 
   |                                                                                  |
   |                                                                                  |
   |                                                                                  |
   |                                                                                  |
   | PICTURE 24                                                                                 |
   |                                                                                  |
   |                                                                                  |
   |                                                                                  |
   |__________________________________________________________________________________|

Figure 28. A text foil using text flow functions


Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012