home *** CD-ROM | disk | FTP | other *** search
- 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
- From: Peter Schmitt <A8131DAL%AWIUNI11.BITNET@SHSU.edu>
- Newsgroups: comp.text.tex
- Subject: Re: writing { and } to a file in Latex
- Message-ID: <9254411@MVB.SAIC.COM>
- Date: Wed, 18 Nov 92 19:30:23 MEZ
- Organization: Info-Tex<==>Comp.Text.Tex Gateway
- X-Gateway-Source-Info: Mailing List
- Lines: 33
-
- > 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.
- >
- Couldn't you do it using πverb (maybe in connection with πprotect) ?
- - as a non-LaTeX user I do not know.
- Probably the simplest solution is to define a control sequence that
- produces a `other character' {:
-
- πbegingroup
- πcatcode`π{12 πglobalπletπ{={
- πcatcode`π}12 πglobalπletπ}=}
- πendgroup
-
- No π{ and π} should produce the desired result.
- This is, of course, a plain TeX solution, but it should work under LaTeX, too.
-
- > 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)
- ^you probably mean the last word?
- > with out knowing if it is the last line of the address.
- >
- Does this mean that you want to check every line of the address?
- Is the number of lines in an address fixed?
-
-
- Peter Schmitt a8131dal@awiuni11.edvz.univie.ac.at
- schmitt@awirap.bitnet
- -----------------------------------------------------------------------------
- Institute of Mathematics Strudlhofgasse 4
- University of Vienna A-1090 Wien
- Austria
-