home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.text.tex
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!dog.ee.lbl.gov!news!vela!cs.uiuc.edu!bharat
- From: bharat@cs.uiuc.edu (R. Bharat Rao)
- Subject: Blanks after a \newcommand!
- Message-ID: <C1IsoM.L6D@cs.uiuc.edu>
- Sender: news@cs.uiuc.edu
- Organization: University of Illinois, Dept of Computer Science
- Date: Wed, 27 Jan 1993 16:05:10 GMT
- Lines: 41
-
- I have put the following line in a LaTeX file.
-
- \newcommand{\evec}{\mbox {$\vec{E}$}}
-
- along with a lot of commands for symbols I frequently use (so I can
- change the symbol easily if I so decide...
-
- The problem is as follows. When I say something
-
- The data base, \evec, is used to ...
-
- all works well.
-
- However when I say,
-
- The points in \evec are defined by ...
-
- there is no space bewteen the bold "E" and the following word "are".
-
- I can remedy this by typing
-
- The points in \evec\ are defined by ..
-
- adding a space using "\ ". However, is there any way for me to set
- up my command in \newcommand to do this automatically (i.e., leave
- a space if there is a following space, else not leave a space..
-
- As, I do this for 50+ symbols in my thesis, it would really simplify
- my task to avoid having to add "\ " every time...
-
- Please send e-mail to bharat@cs.uiuc.edu or post in this newsgroup.
-
- Thanks for your help,
-
- bharat
-
- -
- R. Bharat Rao E-mail: bharat@cs.uiuc.edu
- AI Group, Beckman Institute for Advanced Science and Technology
- 405 N. Mathews, Urbana, IL 61801 (217)-333-5978 (O), 337-6498(H)
- Electrical & Computer Engineering, University of Illinois, Urbana
-