How to get a file's "date modified" string when including graphics?

How to get a file's "date modified" string when including graphics?

I am working on my thesis, and want to have the date corresponding to when each figure was generated included in it's caption.

Currently I manually update the caption when I update the figure.

I am wondering if there is a LaTeX package or equivalent that I can use (with texmaker) to access the file information so that this field is generated automatically?

答え1

It looks like there's a package for you: filemod.

You should only need \usepackage{filemod} and \filemodprintdate{〈filename〉}

To adjust the formatting, you can use datetime as described in the filemod manual.

Both these packages appear to have been written by regulars here

関連情報