[texhax] getting embedded vs paged pdf (eps/png)

Steve Schwartz s.schwartz at imperial.ac.uk
Mon Mar 10 23:50:21 CET 2008

Hi George,

On Mon, 2008-03-10 at 14:39 -0400, George Georgalis wrote:
> pdfcrop does a nice job, with the example from my other
> followup post... but the method requires a file per
> image for capture.  Which might be worth developing an
> application around.

Well, actually pdfcrop will crop individual pages of a multipage pdf
(and it crops them individually, NOT all to the same size). Then, for

pdftk <file-crop.pdf> burst

will split the result into individual pdf files, numbered sequentially.
I'm not sure what you want to start with, namely just the latex source
of the equations, say, or a real latex document from which you want to
spawn equations or whatever. If the latter, you could define a new
outfile and get your latex source to write out a latex file which you
then process via a shell script of some kind. And if you kept track of
each \newpage in your outfile you'd also know the number pdftk would
assign to the result and could reference it in some other document.

I'll stop here because (a) I'm getting over my depth and (b) as I noted
above, I'm not sure what you want as a starting point and what you want
as an end point. I also don't use TexShop.


> It would make sense if the resulting cropped pdf image
> where included in latex docs, like with \includegraphics
> ...reasonable solution accept the requirement for users
> to externalize each formula in a file AND compile them
> with Makefile targets is a little daunting, when the
> expected solution is a latex template for "typeset" from
> within TexShop. 
Professor Steven J Schwartz      Phone: +44-(0)20-7594-7660
Space and Atmospheric Physics    Fax:   +44-(0)20-7594-7772
The Blackett Laboratory          E-mail: s.schwartz at imperial.ac.uk
Imperial College London          Office: Huxley 6M70 
London SW7 2BW, U.K.             Web: http://www.sp.ph.ic.ac.uk/~sjs

More information about the texhax mailing list