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

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!dog.ee.lbl.gov!news!vela!cs.uiuc.edu!bharat
  3. From: bharat@cs.uiuc.edu (R. Bharat Rao)
  4. Subject: Blanks after a \newcommand!
  5. Message-ID: <C1IsoM.L6D@cs.uiuc.edu>
  6. Sender: news@cs.uiuc.edu
  7. Organization: University of Illinois, Dept of Computer Science
  8. Date: Wed, 27 Jan 1993 16:05:10 GMT
  9. Lines: 41
  10.  
  11. I have put the following line in a LaTeX file.
  12.  
  13.     \newcommand{\evec}{\mbox {$\vec{E}$}}
  14.  
  15. along with a lot of commands for symbols I frequently use (so I can 
  16. change the symbol easily if I so decide...
  17.  
  18. The problem is as follows.  When I say something
  19.  
  20.     The data base, \evec, is used to ...
  21.  
  22. all works well.
  23.  
  24. However when I say,
  25.  
  26.     The points in \evec are defined by ...
  27.  
  28. there is no space bewteen the bold "E" and the following word "are". 
  29.  
  30. I can remedy this by typing 
  31.  
  32.     The points in \evec\ are defined by ..
  33.  
  34. adding a space using "\ ".  However, is there any way for me to set
  35. up my command in \newcommand to do this automatically (i.e., leave
  36. a space if there is a following space, else not leave a space..
  37.  
  38. As, I do this for 50+ symbols in my thesis, it would really simplify
  39. my task to avoid having to add "\ " every time...
  40.  
  41. Please send e-mail to bharat@cs.uiuc.edu or post in this newsgroup.
  42.  
  43. Thanks for your help,
  44.  
  45. bharat
  46.  
  47. R. Bharat Rao                         E-mail: bharat@cs.uiuc.edu
  48. AI Group, Beckman Institute for Advanced Science and Technology
  49. 405 N. Mathews, Urbana, IL 61801   (217)-333-5978 (O), 337-6498(H)
  50. Electrical & Computer Engineering, University of Illinois, Urbana
  51.