home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / text / tex / 15449 < prev    next >
Encoding:
Text File  |  1993-01-26  |  1.5 KB  |  39 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!mcsun!sunic!uts!kubipdal
  3. From: kubipdal@uts.uni-c.dk (Peter Dalg}rd)
  4. Subject: Re: when is whitespace ignored by LaTeX?
  5. Organization: UNI-C, Danish Computing Centre for Research and Education
  6. Date: Tue, 26 Jan 1993 12:06:36 GMT
  7. Message-ID: <1993Jan26.120636.11592@uts.uni-c.dk>
  8. References: <1993Jan25.213654.29814@eng.ufl.edu>
  9. Lines: 28
  10.  
  11. In <1993Jan25.213654.29814@eng.ufl.edu> ruck@alpha.ee.ufl.edu (John R Ruckstuhl Jr) writes:
  12.  
  13. >Would someone give me a few rules of thumb w.r.t. ignorable whitespace?
  14. [...snip...]
  15.  
  16. >    \multiput(12,0)(200,0){2}{                  % 2 columns
  17. >\multiput(0,883)(0,-133){7}{\framebox(200,133){\parbox[b]{1.75in}{yakyak}}}
  18. >    }
  19.  
  20. >but really, what's the right way to be able to use indentation for
  21. >readability?
  22. [...snip...]
  23.  
  24. I also got fed up of this, so now I routinely start my macro sections
  25. with setting the \catcode of SPC TAB and RET to 9 (ignore). This is
  26. an immense relief. Only problem is when you need those characters
  27. in text strings - you then have to quote those characters (which\ 
  28. can\ be\ somewhat\ annoying) -- or, which is probably a better idea
  29. for other reasons as well, assign the strings to control sequences
  30. at the top of the file, before messing with the catcodes. 
  31.  
  32. It can be quite educating to do this to one of the 'official' style
  33. files, insert formatting characters to your hearts content, and then
  34. find that you suddenly understand what's going on...
  35.  
  36.     Peter Dalgaard
  37.  
  38. PS: Don't forget to set the \catcode-s back, of course.
  39.