Debian Codegraph @

texmf-dist/doc/latex/filemod/README

raw
1 The filemod Package
2 ~~~~~~~~~~~~~~~~~~~
3 Copyright (C) Martin Scharrer <[email protected]>
4
5 This package provides macros to read and compare the modification dates
6 of files. These files can be .tex files, images or other files as long as they can be
7 found by the LaTeX compiler. It uses the \pdffilemoddate primitive of pdfLaTeX
8 to receive the file modification date as PDF date string, parses it and returns
9 the value to the user.
10 The functionality is provided by purely expandable macros or by faster but non-expandable ones.
11
12 This package will work with LaTeX and plain eTeX as long pdf(La)TeX (in
13 PDF or DVI mode) or Lua(La)TeX is used. Xe(La)TeX is not supported because it
14 does not provide \pdffilemoddate.
15
16 Examples:
17 % Prints file modification date and time of main file
18 \filemodprint{\jobname}
19
20 % Include newest of a set of files:
21 \input{\filemodNewest{{file1}{file2}{file3}}}
22
23 % Include newest of a set of images:
24 % (\includegraphics doesn't expand its fully before parsing it)
25 \FilemodNewest{{file1}{file2}{file3}}
26 \includegraphics{\filemodresultfile}
27
28
29 REQUIREMENTS:
30 =============
31 pdflatex v1.30.0 or later is required.
32 Alternative LuaTeX can be used together with the `pdftexcmds` package.
33
34
35 INSTALLATION:
36 =============
37 Compile the DTX file (with included INS file) through pdflatex:
38
39 pdflatex filemod.dtx
40 pdflatex filemod.dtx
41 pdflatex filemod.dtx
42
43 Copy the files to the following directories which must be created beforehand.
44 Example for a Unix/Linux OS, change accordantly for MS Windows and Mac, e.g.
45 copy it using a graphics interface.
46
47 cp filemod*.sty ${TEXMF}/tex/latex/filemod/
48 cp filemod*.tex ${TEXMF}/tex/generic/filemod/
49
50 OPTIONAL:
51 The documentation can be installed by:
52 cp filemod.pdf README ${TEXMF}/doc/latex/filemod/
53
54 The source can be installed by:
55 cp filemod.dtx ${TEXMF}/source/latex/filemod/
56
57 The TEXMF is /usr/local/texlive/2010/texmf-dist, ${HOME}/texmf or similar.
58