Is there a simple way of getting a list of figure filenames from a tex file? for example if I have included 10 png, 5 pdf and 3 eps files, is there a script that can output the filenames to a list so I can make sure they all get kept/moved to a different directory together? I've looked at the extract package, but that produces a tex file with the figure code extracted. I guess I can use 'grep', such as cat my.tex | grep eps, but just checking there isn't a standard tex command to do this.
Asked
Active
Viewed 2,464 times
9
1 Answers
9
the built in \listfiles does this:
\documentclass{article}
\usepackage{graphicx}
\listfiles
\begin{document}
\includegraphics{ug}
\includegraphics{eg2}
\includegraphics{foo}
\end{document}
produces a log of:
ug.png Graphic file (type png)
eg2.png Graphic file (type png)
foo.pdf Graphic file (type pdf)
On my system which happens to have files of those names.
David Carlisle
- 757,742
\listfilesin LaTeX could help. I would check thelogfile. – Malipivo Apr 08 '14 at 21:20