1. Martin Scharrer
  2. filemod


filemod /

Filename Size Date modified Message
166 B
138 B
2.0 KB
1.9 KB
1.3 KB
2.2 KB
3.0 KB
1.9 KB
4.0 KB
17.7 KB
421 B
26.0 KB
3.3 KB
3.8 KB
2.0 KB
2.1 KB
2.0 KB
3.1 KB
1.3 KB
416 B
438 B
176 B
The filemod Package
Copyright (C) 2011-2016 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.