Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Direc­tory tex-archive/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.

Examples:
    % Prints file modification date and time of main file
    \filemodprint{\jobname}

    % Include newest of a set of files:
    \input{\filemodNewest{{file1}{file2}{file3}}}

    % Include newest of a set of images:
    % (\includegraphics doesn't expand its fully before parsing it)
    \FilemodNewest{{file1}{file2}{file3}}
    \includegraphics{\filemodresultfile}


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


INSTALLATION:
=============
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/

OPTIONAL:
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.

Files

Name Size Date Notes
README 1968 2011-09-20 12:59
filemod-expmin.sty 2845 2011-09-20 12:59
filemod-expmin.tex 2919 2011-09-20 12:59
filemod.pdf 279161 2011-09-20 12:59
filemod.sty 9352 2011-09-20 12:59
filemod.tex 9508 2011-09-20 12:59

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 LaTeX). It uses the \pdf­file­mod­date prim­i­tive of pdfLaTeX 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 LaTeX com­piler which uses pdfLaTeX 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.

Pack­age De­tailsfile­mod
Ver­sion1.2
Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2011 Martin Schar­rer
Main­tainerMartin Schar­rer
TDS archivefilemod.tds.zip
Con­tained inTeXlive as file­mod
MikTeX as file­mod
Topics doc­u­ment de­vel­op­ment tools
See also stampinclude
Guest Book Sitemap Contact