summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/getfiledate/getfiledate.sty
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2009-11-21 21:26:28 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2009-11-21 21:26:28 +0000
commited96b79e1fb8ebdfdfd29b3f953aede1518d22ec (patch)
tree2e2c28edf5750f1b8612b482b1e5ca08ea4190da /Master/texmf-dist/tex/latex/getfiledate/getfiledate.sty
parent680632df2815ae5a1aec3f0f04f353c2e88cec42 (diff)
getfiledate update
git-svn-id: svn://tug.org/texlive/trunk@16112 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/getfiledate/getfiledate.sty')
-rw-r--r--Master/texmf-dist/tex/latex/getfiledate/getfiledate.sty39
1 files changed, 20 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/getfiledate/getfiledate.sty b/Master/texmf-dist/tex/latex/getfiledate/getfiledate.sty
index 0a8b452581e..3c88fd7b719 100644
--- a/Master/texmf-dist/tex/latex/getfiledate/getfiledate.sty
+++ b/Master/texmf-dist/tex/latex/getfiledate/getfiledate.sty
@@ -12,8 +12,8 @@
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
\ProvidesPackage{getfiledate}
[2009/10/05 v1.0 Get date of last modification of existing file]
-\NeedsTeXFormat{LaTeX2e}
-\RequirePackage{etoolbox}
+\NeedsTeXFormat{LaTeX2e}[1996/12/01]
+\RequirePackage{etextools}[2009/09/30]
\RequirePackage{ltxnew}
\RequirePackage{xkeyval}
\@ifpackageloaded{xcolor}{}{\RequirePackage[table]{xcolor}}
@@ -23,16 +23,15 @@
\new\long\def\gfd@warn#1{\PackageWarningNoLine{getfiledate}{#1}}
\new\let\gfd@alignright\relax
\new\let\gfd@alignleft\relax
-\new\dimen\gfd@width@tmp\gfd@width@tmp=\z@
-\new\let\T@C\textcolor
-\providecommand\space{ }
+\new\dimen\gfd@width@tmp\gfd@width@tmp=\z@\relax
+\providecommand*\space{ }
\define@boolkeys[gfd]{getfiledate}[gfd@]{boxed,putprefix,notime}[true]
\define@cmdkey[gfd]{getfiledate}[gfd@]{prefix}[%
The date of last modification of file]{}
\define@cmdkey[gfd]{getfiledate}[gfd@]{postfix}[was]{}
\define@cmdkey[gfd]{getfiledate}[gfd@]{file}[nofile.tex]{}
\define@cmdkey[gfd]{getfiledate}[gfd@]{width}[\hsize]{}
-\define@cmdkey[gfd]{getfiledate}[gfd@]{marker}[]{}
+\define@cmdkey[gfd]{getfiledate}[gfd@]{marker}[\@empty]{}
\define@cmdkey[gfd]{getfiledate}[gfd@]{markercolor}[blue]{}
\define@cmdkey[gfd]{getfiledate}[gfd@]{filenamecolor}[blue]{}
\define@cmdkey[gfd]{getfiledate}[gfd@]{datecolor}[blue]{}
@@ -72,9 +71,11 @@
\ProcessOptionsX*[gfd]<getfiledate>\relax
\begingroup
\ifcsdef{pdffilemoddate}{}{%
- \gfd@err{Missing command \string\pdffilemoddate}{%
- Use pdfTeX 1.30.0 or later version}
- \aftergroup\endinput
+ \AfterGroup{%
+ \gfd@err{Missing command \string\pdffilemoddate}{%
+ Use pdfTeX 1.30.0 or later version}
+ \endinput
+ }
}
\endgroup
\newcommand\getfiledate[2][]{%
@@ -87,8 +88,8 @@
\ifgfd@boxed
\let\gfd@marker\@empty
\def\gfd@inlinespace{\z@}
- \fboxsep=\gfd@framesep%
- \fboxrule=\gfd@framerule%
+ \fboxsep=\gfd@framesep\relax
+ \fboxrule=\gfd@framerule\relax
\gfd@width@tmp=\dimexpr\gfd@width+2\fboxsep+2\fboxrule\relax
\color{\gfd@framecolor}%
\begin{boxedminipage}{\gfd@width@tmp}%
@@ -114,22 +115,22 @@
\newcommand\gfd@tempc[9]{\gfd@tempd{#1}{#2}{#3}{#4#5}{#6#7}{#8#9}}
\def\gfd@tempd#1#2#3#4#5#6#7\@nil#8{%
\parbox{\gfd@width}{%
- \@killglue\noindent%
+ \removelastskip\noindent%
\ifbool{gfd@putprefix}{\gfd@prefix@a{#8}}{}\ignorespaces
- \T@C{\gfd@datecolor}{#1-#2-#3}%
+ \textcolor{\gfd@datecolor}{#1-#2-#3}%
\ifbool{gfd@notime}{}{%
- \space\T@C{\gfd@sepcolor}{\gfd@separator}\space%
- \T@C{\gfd@datecolor}{#4:#5:#6}\ignorespaces
+ \space\textcolor{\gfd@sepcolor}{\gfd@separator}\space%
+ \textcolor{\gfd@datecolor}{#4:#5:#6}\ignorespaces
}.%
- }
- \@killglue%
+ }%
+ \removelastskip
}
\def\gfd@prefix@a#1{%
\ifcsempty{gfd@marker}{}{\gfd@marker@a}\relax
- \gfd@prefix\space\T@C{\gfd@filenamecolor}{#1}\space\gfd@postfix\space%
+ \gfd@prefix\space\textcolor{\gfd@filenamecolor}{#1}\space\gfd@postfix\space%
}
\def\gfd@marker@a{%
- \T@C{\gfd@markercolor}{\gfd@marker}%
+ \textcolor{\gfd@markercolor}{\gfd@marker}%
\leavevmode\hskip\gfd@inlinespace plus\z@ minus\z@\relax
}