Debian Codegraph @

texmf-dist/tex/generic/filemod/filemod-expmin.tex

raw
1 %%
2 %% Copyright (C) 2011 by Martin Scharrer <[email protected]>
3 %% ----------------------------------------------------------
4 %% This work may be distributed and/or modified under the
5 %% conditions of the LaTeX Project Public License, either version 1.3
6 %% of this license or (at your option) any later version.
7 %% The latest version of this license is in
8 %% http://www.latex-project.org/lppl.txt
9 %% and version 1.3 or later is part of all distributions of LaTeX
10 %% version 2005/12/01 or later.
11 %%
12 %% This work has the LPPL maintenance status `maintained'.
13 %%
14 %% The Current Maintainer of this work is Martin Scharrer.
15 %%
16 %% This work consists of the files filemod.dtx and filemod.ins
17 %% and the derived files filemod.sty, filemod-expmin.sty,
18 %% filemod.tex and filemod-expmin.tex.
19 %%
20 \expandafter\edef\csname filemod@cat\endcsname{\noexpand\catcode`\noexpand\@=\the\catcode`\@\relax}
21 \catcode`\@=11
22 \newif\iffilemod@direct
23 \filemod@directtrue
24 \ifx\pdffilemoddate\@undefined
25 \input pdftexcmds.sty
26 \filemod@directfalse
27 \ifx\pdf@filemoddate\@undefined
28 \edef\filemod@help
29 {The required command \string\pdffilemoddate\space is not defined.
30 This means that the used\space\space LaTeX compiler does not support it.
31 Please make sure that pdfLaTeX 1.30.0 or\space\space\space newer or LuaLaTeX is used.
32 XeLaTeX does not support reading file modification\space\space dates.
33 }%
34 \errhelp\expandafter{\filemod@help}
35 \errmessage{filemod package: Required command \string\pdffilemoddate\space is not defined!}
36 \fi
37 \fi
38 \begingroup
39 \catcode`\D=12
40 \catcode`\Z=12
41 \catcode`\:=12
42 \iffilemod@direct
43 \gdef\filemodNumdate#1{%
44 \expandafter\filemod@Numdate\pdffilemoddate{#1}D:00000000000000Z\relax
45 }
46 \else
47 \gdef\filemodNumdate#1{%
48 \expandafter\expandafter
49 \expandafter\filemod@Numdate\pdf@filemoddate{#1}D:00000000000000Z\relax
50 }
51 \fi
52 \gdef\filemod@Numdate D:#1#2#3#4#5#6#7#8#9\relax{%
53 #1#2#3#4#5#6#7#8%
54 }
55 \iffilemod@direct
56 \gdef\filemodNumtime#1{%
57 \expandafter\filemod@Numtime\pdffilemoddate{#1}D:00000000000000Z\relax
58 }
59 \else
60 \gdef\filemodNumtime#1{%
61 \expandafter\expandafter
62 \expandafter\filemod@Numtime\pdf@filemoddate{#1}D:00000000000000Z\relax
63 }
64 \fi
65 \gdef\filemod@Numtime D:#1#2#3#4#5#6#7#8#9\relax{%
66 \filemod@@Numtime#9\relax
67 }
68 \gdef\filemod@@Numtime#1#2#3#4#5#6#7\relax{%
69 #1#2#3#4#5#6%
70 }
71 \endgroup
72 \def\filemodCmp#1#2%
73 {%
74 \ifcase0%
75 \ifnum\filemodNumdate{#2}>\filemodNumdate{#1} 1\else
76 \ifnum\filemodNumdate{#2}=\filemodNumdate{#1} %
77 \ifnum\filemodNumtime{#2}>\filemodNumtime{#1} 1\fi
78 \fi
79 \fi
80 \space
81 \expandafter\@firstoftwo
82 \or
83 \expandafter\@secondoftwo
84 \fi
85 }
86 \long\def\@firstoftwo#1#2{#1}
87 \long\def\@secondoftwo#1#2{#2}
88 \filemod@cat
89 \expandafter\let\csname filemod@cat\endcsname\relax
90 \endinput
91 %%
92 %% End of file `filemod-expmin.tex'.