summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fileinfo/readprov.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/fileinfo/readprov.sty')
-rw-r--r--Master/texmf-dist/tex/latex/fileinfo/readprov.sty34
1 files changed, 16 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/fileinfo/readprov.sty b/Master/texmf-dist/tex/latex/fileinfo/readprov.sty
index 673d1f3da94..fa229b60dd2 100644
--- a/Master/texmf-dist/tex/latex/fileinfo/readprov.sty
+++ b/Master/texmf-dist/tex/latex/fileinfo/readprov.sty
@@ -2,7 +2,7 @@
%% --
%% get file infos without reading the entire file
-\def \fileversion {0.3b} \def \filedate {2012/03/20}
+\def \fileversion {0.4} \def \filedate {2012/11/11}
%% copyright (C) 2008, 2010, 2011, 2012 Uwe Lueck,
%% http://www.contact-ednotes.sty.de.vu
@@ -139,33 +139,29 @@
% |\ReadClassInfo{<filename>}| without extension:
\newcommand*{\ReadClassInfo}{%
\read@package@infos\LoadClass{cls}}
+% Before v0.4, the modified ultimate expansion of \@pr@videpackage
+% was fixed or ``static.'' Now \@pr@videpackage is modified
+% at each call of \ReadClassInfo or `\Read'\-`PackageInfos'
+% in such a way that the \emph{current} meaning of
+% `\@pr@vide'\-`package' is used by the modified one---\emph{another}
+% package ('filedate') may have modified
+% \@pr@videpackage before, and the latter's meaning may
+% change several times during a \TeX\ run:
\newcommand*{\read@package@infos}[3]{%
%% #1 \Req.../Load..., #2 extension, #3 name list
\begingroup %% 2010/11/26
- \let\@pr@videpackage\read@pr@videpackage
+ \let\RP@@provpkg\@pr@videpackage
+ \def\@pr@videpackage[##1]{\RP@@provpkg[{##1}]\endinput}%
#1{#3}%
\endgroup \GetFileInfo{#3.#2}% %% 2010/11/26
}
%% <- TODO more classes 2008/03/16
-\def\read@pr@videpackage[#1]{%
- \expandafter\xdef\csname ver@\@currname.\@currext\endcsname{#1}%
- \ifx\@currext\@clsextension
- \typeout{Document Class: \@gtempa\space#1}%
- \else
- \wlog{Package: \@gtempa\space#1}%
- \fi
- \endinput}%
- %% <- TODO \let\read@@... and just add \endinput 2008/03/19
% |\ReadFileInfos{<list-of-filenames>}| with extensions:
\newcommand*{\ReadFileInfos}[1]{%
\begingroup
- \def\@providesfile##1[##2]{%
- %% <- cf. second/final LaTeX def. 2008/03/19
- \wlog{File: ##1 ##2}%
- \expandafter\xdef\csname ver@##1\endcsname{##2}%
- \endgroup \endinput}%
- %% <- TODO \let\read@@... and just add
- %% \endgroup\endinput 2008/03/19
+% v0.4 treats \@providesfile by analogy to \@pr@videpackage above:
+ \let\RP@@provfile\@providesfile
+ \def\@providesfile##1[##2]{\RP@@provfile{##1}[{##2}]\endinput}%
%% 2008/03/19:
\def\ProvidesClass ##1{\ProvidesFile{##1.\@clsextension}}%
\def\ProvidesPackage##1{\ProvidesFile{##1.\@pkgextension}}%
@@ -193,3 +189,5 @@ v0.3 2010/11/25 split off from former "myfiles.sty",
\docnewline -> \\; NOTE etc.
v0.3a 2012/03/16 doc.: grammar fix
v0.3b 2012/03/20 typo fix "Of"
+v0.4 2012/11/10 reimplementation for `filedate'
+ (\@pr@videpackage, \@providefile)