[OS X TeX] OT: Pages from iWork

Bruno Voisin bvoisin at mac.com
Tue Feb 8 13:20:12 CET 2005


Le 8 févr. 05, à 01:45, Herb Schulz a écrit :

> Have you tried to drag an equation from LaTeX Equation Editor onto a 
> pages
> document? If you make it in-line, does the baseline line of the 
> equation
> line up with the rest of the text?

Just tried this: Pages has no notion of a formula baseline or anything, 
the formula is just a picture to it. Thus only the bottom of the 
formula is aligned with the baseline of the text.

With Expressionist the situation isn't actually better, it's also the 
bottom of the formula that is aligned with the baseline of the 
surrounding text, but at least copying the formula from Pages and 
pasting it back inside Expressionis works: the formula is recognized as 
such and disassembled into its elements (subscripts, superscripts, 
etc.) that can then be edited etc.

That said, the graphical quality of the formula created with 
Expressionist is of course lower than with TeX.

I've tried to look at how Expressionist is able to preserve its markup 
upon copying and pasting in external applications: whether saved as an 
independent Expressionist file, as a PICT file, as an EPS file or as 
TeX code, a formula created with Expressionist always contains the 
original Expressionist code in comment fields. For example, the formula 
$ax^2+bx+c = 0$ seems to correspond to the Expressionist code

> |Expr|[#>`b___}).# b'4" Times~: ;bP8&c55*a$^x_^2 ,K bx ,K c |
> 	|,] 0}& b!( b"0 b#8 b$@ b%H b&P!WW}]|[

Saved as an EPS file it becomes:

> %!PS-Adobe-2.0 EPSF-1.2
> %%Creator: Expressionist (R) version 3.15F oct. 1993
> %%Title:Untitled
> %%CreationDate: mardi 8 fŽvrier 2005 13:04:26
> %%Pages 0
> %%DocumentFonts: Symbol Times-Roman Times-Italic
> %%BoundingBox:0 0 75 13
> %%EndComments
> save
> 1 setlinecap 0 setlinejoin  2 setmiterlimit
> 6 array currentmatrix aload pop pop pop abs exch abs add exch abs add 
> exch abs add 2 exch div /onepx exch def
> [ 0.238806 0 0 0.238806 0 0 ] concat
> %%EndProlog
> /T {/fsize exch def /funder exch 0 ne def /fital exch fsize mul 4 div 
> def /fbold exch 0 ne def
> /fmat [ fsize 0 fital fsize 0 0 ] def findfont fmat makefont setfont 
> moveto} bind def
> /t {funder {currentpoint 0 fsize 12 div rmoveto 2 index stringwidth 
> rlineto fsize 24 div setlinewidth stroke moveto} if
> fbold {currentpoint fsize 24 div 0 rmoveto 2 index show moveto} if 
> show} bind def
> 0 15 /Times-Italic 0 0 0 50 T
> (a) t
> 26 15 /Times-Italic 0 0 0 50 T
> (x) t
> 49 33 /Times-Roman 0 0 0 29 T
> (2) t
> 76 15 /Times-Roman 0 0 0 50 T
> (+) t
> 116 15 /Times-Italic 0 0 0 50 T
> (bx) t
> 175 15 /Times-Roman 0 0 0 50 T
> (+) t
> 215 15 /Times-Italic 0 0 0 50 T
> (c) t
> 249 15 /Times-Roman 0 0 0 50 T
> (=) t
> 289 15 /Times-Roman 0 0 0 50 T
> (0) t
> %%Trailer
> restore
> %%]|Expr|[#>`b___}).# b'4" Times~: ;bP8&c55*a$^x_^2 ,K bx ,K c |
> %%	|,] 0}& b!( b"0 b#8 b$@ b%H b&P!WW}]|[

while copied in TeX format (called "Text format") it becomes:

> %]|Expr|[#>`b___}).# b'4" Times~: ;bP8&c55*a$^x_^2 ,K bx ,K c |
> %|,] 0}& b!( b"0 b#8 b$@ b%H b&P!WW}]|[
> $$\rm a{x}^{2}\ +\ bx\ +\ c\ =\ 0$$

You can edit, from within Expressionist, the table of conversion 
associating each Expressionist element (subscript, superscript, 
integral, etc.) with TeX code. I assume the situation would be the same 
with its successor MathEQ.

Bruno Voisin
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list