home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!amdahl!rtech!pacbell.com!ames!sun-barr!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!mintaka.lcs.mit.edu!ai-lab!wheat-chex!bkph
- From: bkph@wheat-chex.ai.mit.edu (Berthold K.P. Horn)
- Newsgroups: comp.text.tex
- Subject: Re: Super/subscripts -- what formula does TeX use to position?
- Date: 28 Jan 1993 01:24:48 GMT
- Organization: MIT Artificial Intelligence Lab
- Lines: 35
- Distribution: na
- Message-ID: <1k7cl0INN4n7@life.ai.mit.edu>
- References: <C1FJ9C.3Jp@cs.dal.ca>
- NNTP-Posting-Host: wheat-chex.ai.mit.edu
- In-reply-to: kelley@cs.dal.ca's message of 25 Jan 93 21:48:47 GMT
-
-
- In article <C1FJ9C.3Jp@cs.dal.ca> kelley@cs.dal.ca (Dan Kelley) writes:
-
- I need to know the formula used by TeX to position superscripts and subscripts,
- so that I can make my graphing program produce the same spacing. Let's assume
- that I have a single text line, and that no superscripts lie over subscripts, so
- that no repositioning will be required to avoid crowding. Then the questions I
- have are:
-
- 1) what distances are the baselines moved to (and in what units? em-space,
- x-height, ...?).
- 2) what change in font size is done?
-
- Email replies would be appreciated; I doubt whether others on the net need to
- know this.
-
- PS: Sorry to bug you folks, but I've tried reading the tex.web source, and cannot
- figure it out.
-
- --
- Dan Kelley, Oceanography Department | kelley@open.dal.ca
- Dalhousie University | {uunet watmath}!dalcs!kelley
- Halifax, Nova Scotia, CANADA, B3H 4J1 | (902) 494-1694
-
- See `TeX: The Program' by D.E. Knuth, Addison-Wesley 13437
-
- But seriously, you don't say what you are really trying to do,
- and there probably are better ways. Typeset the forumlae using
- TeX, then copy and paste them into the drawing program you are using.
- You can do this on the NeXT, Macintosh (TeXtures) and in MS Windows
- (using DVIWindo). That way you get the perfect typsetting of TeX
- and use the same fonts...
-
- Berthold K.P. Horn
- Cambridge, Massachusetts, USA
-