home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.text.tex
- 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
- From: gerd@intellektik.informatik.th-darmstadt.de (Gerd Neugebauer)
- Subject: Re: space of minus sign without printing minus sign?
- Sender: news@news.th-darmstadt.de (The News System)
- Message-ID: <GERD.92Dec17210236@kim.intellektik.informatik.th-darmstadt.de>
- In-Reply-To: shen@athena.cs.uga.edu's message of Wed, 16 Dec 1992 19: 08:54 GMT
- Date: Thu, 17 Dec 1992 21:02:36 GMT
- Distribution: usa
- References: <1992Dec16.190854.17792@athena.cs.uga.edu>
- Nntp-Posting-Host: kim.intellektik.informatik.th-darmstadt.de
- Organization: TH Darmstadt
- Lines: 26
-
- >>>>> On Wed, 16 Dec 1992 19:08:54 GMT, shen@athena.cs.uga.edu (Mingzuo Shen) said:
-
- [...]
-
- MS> The simple solution to me, without
- MS> any complicated programming, is to simply \hskip the amount
- MS> of horizontal space taken by the minus sign (within $ and $)
- MS> but without actually printing the minus sign.
-
- You can try the TeX command \phantom. It takes one argument and
- produces a box with the dimensions of this argument. The argument
- itself is not printed. Thus
-
- \\ -1 \phantom{-}$\epsilon$
- \\ \phantom{-}1 -$\epsilon$
-
- should do the trick.
-
- Note that you have to be carful to typeset the same thing inside the
- phantom as outside. As we know there are different kinds of - around!
- --
- ____ ___ __ ___ Gerd Neugebauer
- / / /___) /' ) /___) FG Intellektik, FB Informatik, TH Darmstadt
- (___/- (___ / / (___ Alexanderstr. 10, D-6100 Darmstadt
- _____/_____________________ Phone: (+49) 6151 16-5382
- (____/ Net: gerd@intellektik.informatik.th-darmstadt.de
-