Writing a de-psfagger

Paulo Ney de Souza pauloney at gmail.com
Thu Jan 23 13:46:34 CET 2020


I am writing a de-psfragger, to change the labels made with psfrag (and
bound to latex - dvips - pstopdf workflow) to something more modern like
pinlabel.

The Perl routine is already working quite nicely on a (single) file that
contains all figures, parsing the TeX, EPS and changing them accordingly.

I am not really happy with the kludge I came up for descending on a tree of
files connected by

  \input
  \include
  \usepackage

taking into consideration the values of

  TEXINPUTS
  GraphicsPath

(and may be others).

What is the proper way to handle this?  What packages do you know that does
a good job at it? Anything to suggest?

I guess this is common to any translator that is written in something other
than TeX. Is there a framework for doing a reliable traversal of a TeX tree
of files in this way?

Many thanks,
Paulo Ney
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20200123/c306759b/attachment.html>


More information about the texhax mailing list