home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / text / tex / 15558 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.0 KB

  1. 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
  2. From: bkph@wheat-chex.ai.mit.edu (Berthold K.P. Horn)
  3. Newsgroups: comp.text.tex
  4. Subject: Re: Super/subscripts -- what formula does TeX use to position?
  5. Date: 28 Jan 1993 01:24:48 GMT
  6. Organization: MIT Artificial Intelligence Lab
  7. Lines: 35
  8. Distribution: na
  9. Message-ID: <1k7cl0INN4n7@life.ai.mit.edu>
  10. References: <C1FJ9C.3Jp@cs.dal.ca>
  11. NNTP-Posting-Host: wheat-chex.ai.mit.edu
  12. In-reply-to: kelley@cs.dal.ca's message of 25 Jan 93 21:48:47 GMT
  13.  
  14.  
  15. In article <C1FJ9C.3Jp@cs.dal.ca> kelley@cs.dal.ca (Dan Kelley) writes:
  16.  
  17.    I need to know the formula used by TeX to position superscripts and subscripts,
  18.    so that I can make my graphing program produce the same spacing.  Let's assume
  19.    that I have a single text line, and that no superscripts lie over subscripts, so
  20.    that no repositioning will be required to avoid crowding.  Then the questions I
  21.    have are: 
  22.  
  23.    1) what distances are the baselines moved to (and in what units?  em-space,
  24.       x-height, ...?).  
  25.    2) what change in font size is done?
  26.  
  27.    Email replies would be appreciated; I doubt whether others on the net need to
  28.    know this.
  29.  
  30.    PS: Sorry to bug you folks, but I've tried reading the tex.web source, and cannot
  31.    figure it out.
  32.  
  33.    -- 
  34.    Dan Kelley, Oceanography Department   |  kelley@open.dal.ca
  35.    Dalhousie University                  |  {uunet watmath}!dalcs!kelley
  36.    Halifax, Nova Scotia, CANADA, B3H 4J1 |  (902) 494-1694
  37.  
  38. See `TeX: The Program' by D.E. Knuth, Addison-Wesley 13437
  39.  
  40. But seriously, you don't say what you are really trying to do,
  41. and there probably are better ways.  Typeset the forumlae using
  42. TeX, then copy and paste them into the drawing program you are using.
  43. You can do this on the NeXT, Macintosh (TeXtures) and in MS Windows 
  44. (using DVIWindo).  That way you get the perfect typsetting of TeX 
  45. and use the same fonts...
  46.  
  47. Berthold K.P. Horn
  48. Cambridge, Massachusetts, USA
  49.