home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!UB.com!pacbell.com!sgiblab!spool.mu.edu!howland.reston.ans.net!usc!news.service.uci.edu!unogate!mvb.saic.com!info-tex
- From: <barr@triples.Math.McGill.CA>
- Newsgroups: comp.text.tex
- Subject: whitespace%
- Message-ID: <9301281258.AA27289@triples.math.mcgill.ca>
- Date: Thu, 28 Jan 93 07:58:32 EST
- Organization: Info-Tex<==>Comp.Text.Tex Gateway
- X-Gateway-Source-Info: Mailing List
- Lines: 13
-
- Two posters to c.t.t suggested that it was a good idea to add a % to the
- end of any line of which there is doubt. They did not mention that there
- is one case where this may turn out to be a very bad idea. TeX permits,
- but does not require, a whitespace after a number that is being explicitly
- assigned to a counter, but you may be in for a nasty surprise if you omit
- it. Try for example
- \newcount\testtest=1%
- \ifnum\test=1 do one thing \else do another \fi
- with and without the %. I have never tried this, but I expect that
- bad things could also happen if you omit whitespace (in this way or any
- other) after a reserved word like pt or fil.
-
- Michael Barr
-