home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / text / tex / 14286 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.7 KB  |  41 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.th-darmstadt.de!news!gerd
  3. From: gerd@intellektik.informatik.th-darmstadt.de (Gerd Neugebauer)
  4. Subject: Re: space of minus sign without printing minus sign?
  5. Sender: news@news.th-darmstadt.de (The News System)
  6. Message-ID: <GERD.92Dec17210236@kim.intellektik.informatik.th-darmstadt.de>
  7. In-Reply-To: shen@athena.cs.uga.edu's message of Wed, 16 Dec 1992 19: 08:54 GMT
  8. Date: Thu, 17 Dec 1992 21:02:36 GMT
  9. Distribution: usa
  10. References: <1992Dec16.190854.17792@athena.cs.uga.edu>
  11. Nntp-Posting-Host: kim.intellektik.informatik.th-darmstadt.de
  12. Organization: TH Darmstadt
  13. Lines: 26
  14.  
  15. >>>>> On Wed, 16 Dec 1992 19:08:54 GMT, shen@athena.cs.uga.edu (Mingzuo Shen) said:
  16.  
  17. [...]
  18.  
  19. MS> The simple solution to me, without
  20. MS> any complicated programming, is to simply \hskip the amount
  21. MS> of horizontal space taken by the minus sign (within $ and $)
  22. MS> but without actually printing the minus sign.
  23.  
  24. You can try the TeX command \phantom. It takes one argument and
  25. produces a box with the dimensions of this argument. The argument
  26. itself is not printed. Thus
  27.  
  28. \\    -1  \phantom{-}$\epsilon$
  29. \\      \phantom{-}1  -$\epsilon$
  30.  
  31. should do the trick.
  32.  
  33. Note that you have to be carful to typeset the same thing inside the
  34. phantom as outside. As we know there are different kinds of - around!
  35. --
  36.      ____   ___    __   ___       Gerd Neugebauer
  37.     /   /  /___) /'  ) /___)     FG Intellektik, FB Informatik, TH Darmstadt
  38.    (___/- (___  /   / (___      Alexanderstr. 10, D-6100 Darmstadt
  39.  _____/_____________________   Phone: (+49) 6151 16-5382
  40. (____/                        Net: gerd@intellektik.informatik.th-darmstadt.de
  41.