\documentclass[a4paper]{article}
\usepackage{filemod}
\renewcommand*{\thefilemoddate}[3]{\printmonth{#2} #3, #1}
\renewcommand*{\thefilemodtime}[4]{\unskip}
\newcommand*{\printmonth}[1]{\ifcase#1\relax\or
January\or February\or March\or April\or May\or June\or July\or
August\or September\or October\or November\or December\fi}
\begin{document}
\today
\filemodprint{\jobname.tex}
\end{document}
Ciao
Enrico
Please can you give the order in which the chapters are compiled, eg, are they standalone or included into the main document with some command(s)?
I just uploaded v0.5 of currfile to CTAN which now support \input@path so that it works with files read with \includefrom from the 'import' package.
It should be available on CTAN tomorrow or the day after and then one or two days later or so for TeXLive and MikTeX. In the meantime you can get it directly from the source code repository at https://bitbucket.org/martin_scharrer/currfile, i.e. https://bitbucket.org/martin_scharrer/currfile/src/default/currfile.sty. Just put this in your local TEXMF tree under 'tex/latex/currfile/' or your document directory.
For printing the file modification date/time I would recommend the code Enrico Gregorio posted earlier which uses the 'filemod' package. However, I'm biased here because that package is also written by me.
Regards,
Martin
Thanks very much, to all involved, for working on this.
In the end, what would be wonderful is a simply construct like \today,
which we (less-clever user-types) could simply embed as needed. While
getfiledate is a nice package, I find it a bit cumbersome to work with
since I need to strip away a lot of the 'built-in' formatting features
that I don't need. Maybe I'm in the minority, but all I want is the file
date (time stamp), which I can then format as needed. So, instead of
\today. something like \filedate or \timestamp or some such.
Yes, that should work very well. I'm a big fan of packages that provide
as close to primitive elements as possible.
I think what other people (like me) also need is a way to include the
date the *document* was created or last updated, and not the chapters in
the document.
After all, the readers do not always want 7 creation dates for one
document. From this point of view, the included files problem is more
difficult: what I want is the latest modification time among all of the
included files in the document, with the root file included too.
Is there a way to get a list of all files included in a document,
together with the root file, and than get the last modified one ?
Thank you,
Timothy Madden
Thank you,
Timothy Madden
> >
> > Where can I lay my hands on the latest documentation for the updated
> > version of currfile?
>
> And, request for docs for latest version of filemod. ;-)
Again, CTAN or build it yourself by running `pdflatex currfile.dtx` or `pdflatex filemod.dtx` from the repository.
Note that the 'currfile' manual didn't changed much but simply mentions now that it supports `\input@path` which is required for e.g. the 'import' package.
The 'filehook' manual now holds the documentation of the two new macros.
Please be a little more patient next time and simply wait one or two days longer.
Regards,
Martin