home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / text / tex / 13350 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.9 KB  |  44 lines

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!linac!att!cbnewsk!cbnewsj!att-out!walter!qualcom.qualcomm.com!network.ucsd.edu!mvb.saic.com!info-tex
  2. From: Peter Schmitt <A8131DAL%AWIUNI11.BITNET@SHSU.edu>
  3. Newsgroups: comp.text.tex
  4. Subject: Re: writing { and } to a file in Latex
  5. Message-ID: <9254411@MVB.SAIC.COM>
  6. Date: Wed, 18 Nov 92 19:30:23 MEZ
  7. Organization: Info-Tex<==>Comp.Text.Tex Gateway
  8. X-Gateway-Source-Info: Mailing List
  9. Lines: 33
  10.  
  11. >       In a LaTeX Macro I wish to write out a   string containg
  12. >       a single left brace"{" to a file to be used as input to
  13. >       LaTeX at a later time. The closing right brace"}" also
  14. >       needs to be written out after several other lines.
  15. >
  16. Couldn't you do it using πverb (maybe in connection with πprotect) ?
  17. - as a non-LaTeX user I do not know.
  18. Probably the simplest solution is to define a control sequence that
  19. produces a `other character' {:
  20.  
  21.   πbegingroup
  22.   πcatcode`π{12 πglobalπletπ{={
  23.   πcatcode`π}12 πglobalπletπ}=}
  24.   πendgroup
  25.  
  26. No π{ and π} should produce the desired result.
  27. This is, of course, a plain TeX solution, but it should work under LaTeX, too.
  28.  
  29. >      The other problem I have is with how to parse a line and determine
  30. >      if the last token is a numeric string. (ie a zip code)
  31.                    ^you probably mean the last word?
  32. >      with out knowing if it is the last line of the address.
  33. >
  34. Does this mean that you want to check every line of the address?
  35. Is the number of lines in an address fixed?
  36.  
  37.  
  38. Peter Schmitt                             a8131dal@awiuni11.edvz.univie.ac.at
  39.                                                         schmitt@awirap.bitnet
  40. -----------------------------------------------------------------------------
  41. Institute of Mathematics                                     Strudlhofgasse 4
  42. University of Vienna                                              A-1090 Wien
  43.                                                                       Austria
  44.