# [texhax] Extract equations as EPS from larger doc?

Philipp K. Janert janert at ieee.org
Sat Jun 20 04:36:42 CEST 2009

Thanks for your answer, but it is entirely missing
the point.

I don't want to extract "information", because there is
no receiver for this "information". I am trying to extract
a PICTURE (a "blob"), so that I can give that to a real,
dead-trees and ink publisher, who can then glue that
picture into the printed book without interpreting it any
further, so that (hopefully) my READERS can extract
information from it.

In other words, it is crucial to me that LaTeX has already
done its magic and processed the commands into
something that no longer needs to be interpreted by a
machine (only by a human reader).

What I was looking for were some creature comforts
managing the potentially hundreds of files that this
will require. (And here we get into finer points, whether
it is simpler to have one large LaTeX file, which then
needs to be split to get the individual equation images,
or should there be a separate LaTeX document for
each equation, etc. THAT'S what my original question

This may all be very hard to understand if you are
very used to LaTeX. Most other publishing environments
are still (2009) absolutely and unbelievably brain-dead
compared to LaTeX, but that's the world we live in.

In any case, I suggest we end this thread. I think it
has exhausted its usefulness.

Best,

Ph.

On Friday 19 June 2009 11:32:53 am you wrote:
> My previous idea more specific, without regarding actual facilities of the
> extract package:
>
> redefine the equation environment (resp. others) so it:
>
> 1. writes a file whose <filename> contains the equation number (ususually
> just expansion of \theequation) and whose content is
>
>     \documentclass ... \begin{document}
>     $$<equation content>\eqno<expansion of \theequation>$$
>     \end{document}
>
> 2. adds latex <filename>' to a batch file (or/plus something producing the
> .eps version if you really need it)
>
> ... clearer?
>
> HTH ... Uwe.
>
> -----Ursprüngliche Nachricht-----
> Von: "Uwe Lueck" <uwe.lueck at web.de>
> Gesendet: 19.06.09 15:19:17
>
> "Philipp K. Janert" <janert at ieee.org> schrieb am 17.06.2009 18:05:51:
> > "I want to extract EPS of individual equations from
> > a multipage PostScript document."
>
> I don't know much of these things, only were busy with parsing .eps with
> TeX as in the graphics package ...
>
> .. but this looks like throwing the logical information away and then
> trying to retrieve it from the glyph placement information, so seems not so
> sound ...
>
> The extract' package -- www.ctan.org/pkg/extract -- seems to address
> extracting information directly from the LaTeX commands. I cannot judge
> right now whether it is developped enough right now to handle your task
> immediately.
>
> HTH -- Uwe.