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

  1. Path: sparky!uunet!ukma!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!msr.triumf.ca!asnd
  2. From: asnd@msr.triumf.ca (Donald Arseneau)
  3. Newsgroups: comp.text.tex
  4. Subject: Re: Blanks after a \newcommand!
  5. Date: 27 Jan 1993 18:19 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Lines: 39
  8. Distribution: world
  9. Message-ID: <27JAN199318190528@msr.triumf.ca>
  10. References: <C1IsoM.L6D@cs.uiuc.edu>
  11. NNTP-Posting-Host: msr.triumf.ca
  12. News-Software: VAX/VMS VNEWS 1.41    
  13.  
  14. In article <C1IsoM.L6D@cs.uiuc.edu>, bharat@cs.uiuc.edu (R. Bharat Rao) writes...
  15. %  
  16. %     The points in \evec are defined by ...
  17. %  
  18. % there is no space bewteen the bold "E" and the following word "are". 
  19. %  
  20. % I can remedy this by typing 
  21. %  
  22. %     The points in \evec\ are defined by ..
  23. %  
  24. % adding a space using "\ ".  However, is there any way for me to set
  25. % up my command in \newcommand to do this automatically (i.e., leave
  26. % a space if there is a following space, else not leave a space..
  27. %  
  28. % As, I do this for 50+ symbols in my thesis, it would really simplify
  29. % my task to avoid having to add "\ " every time...
  30.  
  31. The big problem I find with using \  is that I get accidental \, and \..
  32. If it were easy to put something after the commands everywhere, I could
  33. use a global substitution in the editor.
  34.  
  35. Here are two methods:
  36.  
  37. 1) Put a non-letter at the end of the command name so spaces are not 
  38. ignored:
  39.  
  40. \def\Ea.{\ifmmode E_a \else $E_a$\fi}
  41.  
  42. The problems are that \newcommand won't handle names with "syntax"
  43. and those extra characters can be confusing (would the REAL periods
  44. please stand up!)
  45.  
  46. 2) Define the commands normally, but use them with {} after:
  47. \LaTeX{} is easy to use if you like the available formats,
  48. otherwise, you need to know the raw \TeX{}.
  49.  
  50. Any others?
  51.  
  52. Donald Arseneau        asnd@reg.triumf.ca
  53.