[Mac OS X TeX] TEX -> EPDF?

Claus Gerhardt gerhardt at math.uni-heidelberg.de
Wed Dec 5 19:28:35 EST 2001

>So, I'm curious whether anyone knows a good way to get a single TeX
>equation as a piece of embedded PDF?  I'm envisioning a package that works
>like this:
>\[ 1+1 = 2 \]
>\[ A = \pi \cdot r^2\]

My solution to the problem is to use the package mfpic with the 
option metapost. Below is a complete latex source file for a formula.



%the numbers are arbitrary but reasonable in the present context.

\tlabel(0,0){ $\int_a^b=f(x) dx$ }



After the first run of the document a file myname.mp is created which 
one has to transform via the terminal using the command

mpost myname

After the second run of the document the file myname.pdf contains the 
formula. One can then open this file with Adobe Illustrator and save 
it as an .eps file.



Claus Gerhardt
Institut für Angewandte Mathematik
Ruprecht-Karls-Universität Heidelberg
Im Neuenheimer Feld 294
69120 Heidelberg

Homepage: http://www.math.uni-heidelberg.de/studinfo/gerhardt/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20011206/8791856d/attachment.html>

More information about the MacOSX-TeX mailing list