home *** CD-ROM | disk | FTP | other *** search
- 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
- Newsgroups: comp.text.tex
- Subject: Unbalanced braces
- Message-ID: <9249503@MVB.SAIC.COM>
- From: Donald Arseneau <ASND%TRIUMFER.BITNET@SHSU.edu>
- Date: Thu, 19 Nov 1992 02:20 PDT
- Organization: Info-Tex<==>Comp.Text.Tex Gateway
- X-Gateway-Source-Info: Mailing List
- Lines: 23
-
- Bob Jantzen (volunteer tex coordinator) forwarded:
-
- In a LaTeX Macro I wish to write out a string containg
- a single left brace"{" to a file to be used as input to
- LaTeX at a later time. The closing right brace"}" also
- needs to be written out after several other lines.
-
- I like
-
- \edef\lbr{\string{}\edef\rbr{\string}}
-
- then use \lbr for left braces and rbr for right braces in the \write.
-
- The other problem I have is with how to parse a line and determine
- if the last token is a numeric string. (ie a zip code)
- with out knowing if it is the last line of the address.
-
- It's hard to give the best answer without more context. One could
- try to assign a counter at every space in the line to see if the next
- "word" is a number. Or set the spacefactors of digits to 1001 and test
- \spacefactor at the end of the line.
-
- Donald Arseneau asnd@reg.triumf.ca asnd@triumfcl
-