home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / text / tex / 13342 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!usc!nic.csu.net!cerritos.edu!news.service.uci.edu!unogate!mvb.saic.com!info-tex
  2. Newsgroups: comp.text.tex
  3. Subject: Unbalanced braces
  4. Message-ID: <9249503@MVB.SAIC.COM>
  5. From: Donald Arseneau <ASND%TRIUMFER.BITNET@SHSU.edu>
  6. Date: Thu, 19 Nov 1992 02:20 PDT
  7. Organization: Info-Tex<==>Comp.Text.Tex Gateway
  8. X-Gateway-Source-Info: Mailing List
  9. Lines: 23
  10.  
  11. Bob Jantzen   (volunteer tex coordinator) forwarded:
  12.  
  13.        In a LaTeX Macro I wish to write out a   string containg
  14.        a single left brace"{" to a file to be used as input to
  15.        LaTeX at a later time. The closing right brace"}" also
  16.        needs to be written out after several other lines.
  17.  
  18. I like
  19.  
  20.   \edef\lbr{\string{}\edef\rbr{\string}}
  21.  
  22. then use \lbr for left braces and rbr for right braces in the \write.
  23.  
  24.       The other problem I have is with how to parse a line and determine
  25.       if the last token is a numeric string. (ie a zip code)
  26.       with out knowing if it is the last line of the address.
  27.  
  28. It's hard to give the best answer without more context.  One could
  29. try to assign a counter at every space in the line to see if the next
  30. "word" is a number.  Or set the spacefactors of digits to 1001 and test
  31. \spacefactor at the end of the line.
  32.  
  33. Donald Arseneau       asnd@reg.triumf.ca   asnd@triumfcl
  34.