<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Mac OS X TeX] TEX ->
EPDF?</title></head><body>
<blockquote type="cite" cite>So, I'm curious whether anyone knows a
good way to get a single TeX<br>
equation as a piece of embedded PDF? I'm envisioning a package
that works<br>
like this:<br>
<br>
\usepackage{pdfout}<br>
\include{allmywackytexmacros.tex}<br>
<br>
\begin{document}<br>
<br>
\begin{pdfout}{exp1.pdf}<br>
\[ 1+1 = 2 \]<br>
\end{pdfout}<br>
<br>
\begin{pdfout}{exp2.pdf}<br>
\[ A = \pi \cdot r^2\]<br>
\end{pdfout}<br>
</blockquote>
<div>\end{document}</div>
<div><br></div>
<div>My solution to the problem is to use the package<i> mfpic</i>
with the option metapost. Below is a complete latex source file for a
formula.</div>
<div><br></div>
<div>\documentclass[a4paper]{article}</div>
<div>\usepackage[metapost]{mfpic}</div>
<div>\opengraphsfile{myname}</div>
<div><br>
\begin{document}<br>
</div>
<div>\begin{mfpic}[20]{0}{4}{0}{4}<br>
%the numbers are arbitrary but reasonable in the present
context.</div>
<div><br></div>
<div><br></div>
<div>\tlabel(0,0){ $\int_a^b=f(x) dx$ }<br>
</div>
<div><br></div>
<div>\end{mfpic}</div>
<div><br></div>
<div>\closegraphsfile</div>
<div>\end{document}<br>
</div>
<div>After the first run of the document a file<i> myname.mp</i> is
created which one has to transform via the terminal using the
command</div>
<div><br></div>
<div>mpost myname</div>
<div><br></div>
<div>After the second run of the document the file<i> myname.pdf</i>
contains the formula. One can then open this file with Adobe
Illustrator and save it as an .eps file.</div>
<div><br></div>
<div><br></div>
<div>Claus</div>
<blockquote type="cite" cite><br></blockquote>
<div><br></div>
<div><br></div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
<br>
Claus Gerhardt<br>
Institut für Angewandte Mathematik<br>
Ruprecht-Karls-Universität Heidelberg<br>
Im Neuenheimer Feld 294<br>
69120 Heidelberg<br>
Germany<br>
<br>
Homepage: http://www.math.uni-heidelberg.de/studinfo/gerhardt/</div>
</body>
</html>