home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / text / 1632 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.4 KB

  1. Path: sparky!uunet!charon.amdahl.com!amdahl!rtech!sgiblab!spool.mu.edu!uwm.edu!linac!att!att!allegra!alice!npn
  2. From: npn@alice.att.com (Nils-Peter Nelson)
  3. Newsgroups: comp.text
  4. Subject: Re: extended \*(xx sequence for .RS/.RF; is it possible?
  5. Summary: What \* means in troff
  6. Message-ID: <24722@alice.att.com>
  7. Date: 27 Jan 93 19:17:36 GMT
  8. Article-I.D.: alice.24722
  9. References: <1993Jan23.214359.29186@porthos.cc.bellcore.com> <24703@alice.att.com> <1993Jan26.004554.28410@porthos.cc.bellcore.com>
  10. Organization: AT&T Bell Laboratories, Murray Hill NJ
  11. Lines: 23
  12.  
  13.  
  14.  
  15. Tony Gozdz asks:
  16. A related question: what other structures in troff use
  17. the \*( prefix?  If it's only the \*(Rf/.RS/.RF
  18. construct, would it be difficult to assign variable-length
  19. strings to it? (just a wild guess; I'm not a programmer). 
  20.  
  21. ==
  22. \*( means gobble up exactly the next two characters
  23. and treat it as the name of a string. Strings may be
  24. used by any of the macros: footnotes, references,
  25. table of contents, headers, footers, etc.
  26. \*x, where x is *not* ( means gobble up exactly 1 char.
  27. If string names could be more than 2 chars, about a
  28. million troff documents would stop working, because
  29. folks expect \(abcd to produce "string ab"cd,
  30. not "string abcd".
  31. The syntax was a poor choice, but it is so embedded in
  32. the culture it can't be changed. More modern "languages"
  33. use start and end delimiters, rather than fixed length
  34. tokens, although this does lead to verbosity
  35. (as in \stringname abcd \endstringname).
  36.