[cairo] Inkscape eps export for Latex

James Cloos cloos at jhcloos.com
Thu Sep 3 05:51:26 PDT 2009

>>>>> "Bernd" == Bernd Bandemer <bandemer at gmail.com> writes:

Bernd> There is no reason the placeholders in the eps file should be
Bernd> actual postscript text. The only reason psfrag uses this way is
Bernd> for practicality. It would be cleaner to have some sort of
Bernd> "coordinate tag" which in itself does not render anything, but
Bernd> allows applications of psfrag to position its latex code properly
Bernd> within the postscript canvas.

I suspect that on the pdf side, an annotation is the correct solution.
The ps code could output a pdfmark to emulate the annotation, or just
define something in the header which expects a pair of coordinates and
a label and pops them.  The ps code in that case might look something
akin to:

% in the header
/replaceme {pop pop pop} bind def

% in the page
47.5 199.2 (y=sqrt x) replaceme

James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6

More information about the cairo mailing list