Comprehensive TeX Archive Network

Direc­tory macros/latex/contrib/filemod

The filemod Package
Copyright (C) Martin Scharrer <martin@scharrer-online.de>

This package provides macros to read and compare the modification dates
of files. These files can be .tex files, images or other files as long as they can be
found by the LaTeX compiler. It uses the \pdffilemoddate primitive of pdfLaTeX
to receive the file modification date as PDF date string, parses it and returns
the value to the user.
The functionality is provided by purely expandable macros or by faster but non-expandable ones.

This package will work with LaTeX and plain eTeX as long pdf(La)TeX (in
PDF or DVI mode) or Lua(La)TeX is used. Xe(La)TeX is not supported because it
does not provide \pdffilemoddate.

    % Prints file modification date and time of main file

    % Include newest of a set of files:

    % Include newest of a set of images:
    % (\includegraphics doesn't expand its fully before parsing it)

pdflatex v1.30.0 or later is required.
Alternative LuaTeX can be used together with the `pdftexcmds` package.

Compile the DTX file (with included INS file) through pdflatex:

    pdflatex filemod.dtx
    pdflatex filemod.dtx
    pdflatex filemod.dtx

Copy the files to the following directories which must be created beforehand.
Example for a Unix/Linux OS, change accordantly for MS Windows and Mac, e.g.
copy it using a graphics interface.

    cp filemod*.sty ${TEXMF}/tex/latex/filemod/
    cp filemod*.tex ${TEXMF}/tex/generic/filemod/

The documentation can be installed by:
    cp filemod.pdf README  ${TEXMF}/doc/latex/filemod/

The source can be installed by:
    cp filemod.dtx  ${TEXMF}/source/latex/filemod/

The TEXMF is /usr/local/texlive/2010/texmf-dist, ${HOME}/texmf or similar.

Down­load the con­tents of this pack­age in one zip archive (275.7k).

file­mod – Pro­vide file mod­i­fi­ca­tion times, and com­pare them

The pack­age pro­vides macros to read and com­pare the mod­i­fi­ca­tion dates of files. The files may be .tex files, im­ages or other files (as long as they can be found by ). It uses the \pdf­file­mod­date prim­i­tive of pdf to find the file mod­i­fi­ca­tion date as PDF date string, parses the string and re­turns the value to the user. The pack­age will also work for DVI out­put with re­cent ver­sions of the com­piler which uses pdf in DVI mode. The func­tion­al­ity is pro­vided by purely ex­pand­able macros or by faster but non-ex­pand­able ones.

Li­censeThe Project Public Li­cense 1.3
Main­tainerMartin Schar­rer
TDS archivefilemod.tds.zip
Con­tained inTeX Live as file­mod
MiKTeX as file­mod
Topics doc­u­ment de­vel­op­ment tools
See also stampinclude
Guest Book Sitemap Contact Contact Author