home *** CD-ROM | disk | FTP | other *** search
- From: jaap@sequent.UUCP (Jaap Vermeulen)
- Newsgroups: comp.sources.wanted,alt.sources
- Subject: Re: Desperate person needs Courier
- Message-ID: <32595@sequent.UUCP>
- Date: 5 Apr 90 16:24:04 GMT
-
- [I Emailed this but got some strange error, sorry]
-
- ajos1@csug.cs.reading.ac.uk (Antony OSullivan) writes:
-
- >4) Someone said that I could use '.cs', But this hasn't worked.
-
- Well, the '.cs' command should work.
- The point is it has to be in effect when the text is actually written out.
- I believe that the '.DS' request diverts its text into a macro.
-
- Maybe you should use plain troff:
-
- .nf
- .ft 1
- .cs 1 22
- ... your text ...
- .cs 1
- .fi
-
- or try something like
-
- .DS
- \!.cs R 22
- ... your text ...
- \!.cs R
- .DE
-
- Anyways here are some excerpts from the manual:
-
- [...]
-
- .csFNM off - P Constant character space (width)
- ---
- mode is set on for font F (if
- -
- mounted); the width of every charac-
- ter will be taken to be N/36 ems.
- -
- If M is absent, the em is that of
- -
- the character's point size; if M is
- -
- given, the em is M-points. All
- -
- affected characters are centered in
- this space, including those with an
- actual width larger than this space.
- Special Font characters occurring
- while the current font is F are also
- -
- so treated. If N is absent, the
- -
- mode is turned off. The mode must
- be still or again in effect when the
- characters are physically printed.
- Ignored in NROFF.
-
- [...]
-
- 7.4.Diversions. Processed output may be diverted into a macro
- - - ----------
- for purposes such as footnote processing (see Tutorial T5) or
- determining the horizontal and vertical size of some text for
- conditional changing of pages or columns. A single diversion
- trap may be set at a specified vertical position. The number
- registers dn and dl respectively contain the vertical and hor-
- izontal size of the most recently ended diversion. Processed
- text that is diverted into a macro retains the vertical size of
- each of its lines when reread in nofill mode regardless of the
- ------
- current V. Constant-spaced (cs) or emboldened (bd) text that is
- -
- diverted can be reread correctly only if these modes are again or
- still in effect at reread time. One way to do this is to imbed
- in the diversion the appropriate cs or bd requests with the tran-
- -----
- sparent mechanism described in 10.6.
- -------
- Diversions may be nested and certain parameters and registers are
- associated with the current diversion level (the top non-
- diversion level may be thought of as the 0th diversion level).
- These are the diversion trap and associated macro, no-space mode,
- the internally-saved marked place (see mk and rt), the current
- vertical place (.d register), the current high-water text base-
- line (.h register), and the current diversion name (.z register).
-
- [...]
-
- 10.6.Transparent throughput. An input line beginning with a \!
- -- - ----------- ----------
- is read in copy mode and transparently output (without the ini-
- ---- ---- -------------
- tial \!); the text processor is otherwise unaware of the line's
- presence. This mechanism may be used to pass control information
- to a post-processor or to imbed control lines in a macro created
- by a diversion.
-
- [...]
-
- Hope this helps.
-
- -Jaap-
- --
- "Some call me Jaaper" +---------------------------+
- | Sequent Computers Systems |
- Internet : sequent!jaap@uunet.uu.net | Beaverton, Oregon |
- Uucp : ...uunet!sequent!jaap +---------------------------+
-