diff options
author | Karl Berry <karl@freefriends.org> | 2012-11-13 23:35:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-11-13 23:35:22 +0000 |
commit | 2bd3a97e68ab7bbf790cb6cfcc49c2d9dae3e51d (patch) | |
tree | 31059ca2ad0437e710baf9cae91647a6bb7cdbe5 /Master/texmf-dist/tex/latex/fileinfo/readprov.sty | |
parent | 5909d32861c0b70ab3db6533b76d04334d3b1674 (diff) |
fileinfo (13nov12)
git-svn-id: svn://tug.org/texlive/trunk@28252 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fileinfo/readprov.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/fileinfo/readprov.sty | 34 |
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) |