<!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>Let me add some thoughts to my first mail to this problem: One
can produce arbitrary many formulas in<b> one</b> latex
document, e.g.</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^bf(x) dx$ }</div>
<div><br></div>
<div><br></div>
<div>\end{mfpic}</div>
<div><br></div>
<div>\medskip</div>
<div><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){ $\sin\pi =0$ }</div>
<div><br></div>
<div><br></div>
<div>\end{mfpic}</div>
<div><br></div>
<div><br></div>
<div>%etc, preferably separated by \medskip</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 all formulas. One can then open this file with Adobe
Illustrator, copy each formula separately, and save each of the
formulas as an .eps file which can either be used independently or can
be transformed with epstopdf to an embedded pdf file that can be read
in via an \includegraphics command.</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>