home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1140 < prev    next >
Encoding:
Internet Message Format  |  1990-12-28  |  4.9 KB

  1. From: jaap@sequent.UUCP (Jaap Vermeulen)
  2. Newsgroups: comp.sources.wanted,alt.sources
  3. Subject: Re: Desperate person needs Courier
  4. Message-ID: <32595@sequent.UUCP>
  5. Date: 5 Apr 90 16:24:04 GMT
  6.  
  7. [I Emailed this but got some strange error, sorry]
  8.  
  9. ajos1@csug.cs.reading.ac.uk (Antony OSullivan) writes:
  10.  
  11. >4) Someone said that I could use '.cs', But this hasn't worked.
  12.  
  13. Well, the '.cs' command should work.
  14. The point is it has to be in effect when the text is actually written out.
  15. I believe that the '.DS' request diverts its text into a macro.
  16.  
  17. Maybe you should use plain troff:
  18.  
  19. .nf
  20. .ft 1
  21. .cs 1 22
  22. ... your text ...
  23. .cs 1
  24. .fi
  25.  
  26. or try something like
  27.  
  28. .DS
  29. \!.cs R 22
  30. ... your text ...
  31. \!.cs R
  32. .DE
  33.  
  34. Anyways here are some excerpts from the manual:
  35.  
  36.       [...]
  37.  
  38.           .csFNM  off     -       P    Constant  character  space   (width)
  39.              ---
  40.                                        mode  is  set  on  for  font  F  (if
  41.                                                                      -
  42.                                        mounted); the width of every charac-
  43.                                        ter  will  be  taken to be N/36 ems.
  44.                                                                   -
  45.                                        If M is absent, the em  is  that  of
  46.                                           -
  47.                                        the  character's point size; if M is
  48.                                                                        -
  49.                                        given,  the  em  is  M-points.   All
  50.                                                             -
  51.                                        affected  characters are centered in
  52.                                        this space, including those with  an
  53.                                        actual width larger than this space.
  54.                                        Special  Font  characters  occurring
  55.                                        while the current font is F are also
  56.                                                                  -
  57.                                        so treated.  If  N  is  absent,  the
  58.                                                         -
  59.                                        mode  is  turned off.  The mode must
  60.                                        be still or again in effect when the
  61.                                        characters  are  physically printed.
  62.                                        Ignored in NROFF.
  63.  
  64.       [...]
  65.  
  66.           7.4.Diversions.  Processed output may be diverted  into  a  macro
  67.           - - ----------
  68.           for  purposes  such  as  footnote processing (see Tutorial T5) or
  69.           determining the horizontal and vertical size  of  some  text  for
  70.           conditional  changing  of  pages  or columns.  A single diversion
  71.           trap may be set at a specified  vertical  position.   The  number
  72.           registers  dn  and  dl respectively contain the vertical and hor-
  73.           izontal size of the most  recently  ended  diversion.   Processed
  74.           text  that  is diverted into a macro retains the vertical size of
  75.           each of its lines when reread in nofill mode  regardless  of  the
  76.                                            ------
  77.           current  V.  Constant-spaced (cs) or emboldened (bd) text that is
  78.                    -
  79.           diverted can be reread correctly only if these modes are again or
  80.           still  in  effect at reread time.  One way to do this is to imbed
  81.           in the diversion the appropriate cs or bd requests with the tran-
  82.                                                                       -----
  83.           sparent mechanism described in 10.6.
  84.           -------
  85.           Diversions may be nested and certain parameters and registers are
  86.           associated  with  the  current  diversion  level  (the  top  non-
  87.           diversion level may be thought of as the  0th  diversion  level).
  88.           These are the diversion trap and associated macro, no-space mode,
  89.           the internally-saved marked place (see mk and  rt),  the  current
  90.           vertical  place  (.d register), the current high-water text base-
  91.           line (.h register), and the current diversion name (.z register).
  92.  
  93.       [...]
  94.  
  95.           10.6.Transparent throughput.  An input line beginning with  a  \!
  96.           -- - ----------- ----------
  97.           is  read  in copy mode and transparently output (without the ini-
  98.                        ---- ----     -------------
  99.           tial \!); the text processor is otherwise unaware of  the  line's
  100.           presence.  This mechanism may be used to pass control information
  101.           to a post-processor or to imbed control lines in a macro  created
  102.           by a diversion.
  103.  
  104.       [...]
  105.  
  106. Hope this helps.
  107.  
  108.     -Jaap-
  109. -- 
  110. "Some call me Jaaper"                +---------------------------+
  111.                         | Sequent Computers Systems |
  112.     Internet : sequent!jaap@uunet.uu.net    | Beaverton, Oregon        |
  113.     Uucp     : ...uunet!sequent!jaap    +---------------------------+
  114.