home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / text / tex / 15556 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.0 KB

  1. 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
  2. From: <barr@triples.Math.McGill.CA>
  3. Newsgroups: comp.text.tex
  4. Subject: whitespace%
  5. Message-ID: <9301281258.AA27289@triples.math.mcgill.ca>
  6. Date: Thu, 28 Jan 93 07:58:32 EST
  7. Organization: Info-Tex<==>Comp.Text.Tex Gateway
  8. X-Gateway-Source-Info: Mailing List
  9. Lines: 13
  10.  
  11. Two posters to c.t.t suggested that it was a good idea to add a % to the
  12. end of any line of which there is doubt.  They did not mention that there
  13. is one case where this may turn out to be a very bad idea.  TeX permits,
  14. but does not require, a whitespace after a number that is being explicitly
  15. assigned to a counter, but you may be in for a nasty surprise if you omit
  16. it.  Try for example
  17. \newcount\testtest=1%
  18. \ifnum\test=1 do one thing \else do another \fi
  19. with and without the %.  I have never tried this, but I expect that
  20. bad things could also happen if you omit whitespace (in this way or any
  21. other) after a reserved word like pt or fil.
  22.  
  23. Michael Barr
  24.