<div dir="ltr"><div>David, Thanks for pointing the way! <br></div><div><br></div><div>I have one quick follow up question. Is there a way to parse a list like the one in *.fls</div><div><br></div><div>INPUT /usr/local/texlive/2018/texmf-dist/tex/latex/graphics/trig.sty<br>INPUT /usr/local/texlive/2018/texmf-dist/tex/latex/graphics-cfg/graphics.cfg<br>INPUT /usr/local/texlive/2018/texmf-dist/tex/latex/graphics-def/dvips.def<br>INPUT /usr/local/texlive/2018/texmf-dist/tex/latex/psfrag/psfrag.sty<br>INPUT nm3.aux<br>INPUT cap1.aux<br>INPUT cap2.aux<br>INPUT cap1.tex<br>INPUT /usr/local/texlive/2018/texmf-dist/fonts/map/fontname/texfonts.map<br>INPUT /usr/local/texlive/2018/texmf-dist/fonts/tfm/public/cm/cmr17.tfm<br>INPUT Figuras/p11/minima.eps<br>INPUT /usr/local/texlive/2018/texmf-dist/fonts/tfm/public/amsfonts/cmextra/cmex7.tfm<br>INPUT /usr/local/texlive/2018/texmf-dist/tex/latex/amsfonts/umsa.fd</div><div><br></div><div>and decide which file are TeX system file and which are user input files? Is kpsewich a good guidance for that?<br></div><div><br></div><div>Paulo Ney<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 23, 2020 at 4:54 AM David Carlisle <<a href="mailto:d.p.carlisle@gmail.com">d.p.carlisle@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">If you run tex first with --recorder you could pick up the file paths<br>
from its log rather than having to re-implement the logic, handling<br>
texinputs path is easy enough as you can use kpsewhich or equivalent<br>
but \graphicspath may be hidden behind arbitrary layers of tex macros,<br>
so you really need a tex engine or a pretty accurate perl emulation<br>
such as latexml.<br>
<br>
David<br>
</blockquote></div>