summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-11-27 01:31:08 +0000
committerKarl Berry <karl@freefriends.org>2009-11-27 01:31:08 +0000
commit791133138a9bd0f02696c3ebce66bc7b9a29e6c2 (patch)
treef4f30a9125b0b49d7f58111520348ad159ae703c /Master/texmf-dist/tex/latex
parentfc5af52f05a1b38ceecdf30ba7a5cb0cd5b9dfb5 (diff)
getfiledateupdate (26nov09)
git-svn-id: svn://tug.org/texlive/trunk@16189 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/getfiledate/getfiledate.sty19
1 files changed, 11 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/getfiledate/getfiledate.sty b/Master/texmf-dist/tex/latex/getfiledate/getfiledate.sty
index 3c88fd7b719..6e9faf2c3c8 100644
--- a/Master/texmf-dist/tex/latex/getfiledate/getfiledate.sty
+++ b/Master/texmf-dist/tex/latex/getfiledate/getfiledate.sty
@@ -1,4 +1,6 @@
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
+% This is file getfiledate.sty, version 1.2. %
+% %
% This package fetches and formats the date of last modification of any %
% existing file. It is based on an idea by Heiko Oberdiek (2009). %
% %
@@ -8,10 +10,11 @@
% is in http://www.latex-project.org/lppl.txt and version 1.3 or later %
% is part of all distributions of LaTeX version 2005/12/01 or later. %
% %
-% (c) Ahmed Musa 2009 %
+% Copyright (c) 2009 Ahmed Musa (a.musa@rocketmail.com). %
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
+
\ProvidesPackage{getfiledate}
- [2009/10/05 v1.0 Get date of last modification of existing file]
+ [2009/11/23 v1.2 Get date of last modification of existing file]
\NeedsTeXFormat{LaTeX2e}[1996/12/01]
\RequirePackage{etextools}[2009/09/30]
\RequirePackage{ltxnew}
@@ -31,7 +34,7 @@
\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}[\@empty]{}
+\define@cmdkey[gfd]{getfiledate}[gfd@]{marker}[]{}
\define@cmdkey[gfd]{getfiledate}[gfd@]{markercolor}[blue]{}
\define@cmdkey[gfd]{getfiledate}[gfd@]{filenamecolor}[blue]{}
\define@cmdkey[gfd]{getfiledate}[gfd@]{datecolor}[blue]{}
@@ -83,11 +86,11 @@
\setkeys[gfd]{getfiledate}{file={#2}}%
\par\vspace{\gfd@head}%
\begingroup
- \gfd@alignright%
+ \gfd@alignright
\mbox{%
\ifgfd@boxed
\let\gfd@marker\@empty
- \def\gfd@inlinespace{\z@}
+ \def\gfd@inlinespace{\z@}%
\fboxsep=\gfd@framesep\relax
\fboxrule=\gfd@framerule\relax
\gfd@width@tmp=\dimexpr\gfd@width+2\fboxsep+2\fboxrule\relax
@@ -99,7 +102,7 @@
\noindent\gfd@tempa{\gfd@file}%
\fi
}%
- \gfd@alignleft%
+ \gfd@alignleft
\endgroup
\par\vspace{\gfd@foot}%
}
@@ -115,7 +118,7 @@
\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}{%
- \removelastskip\noindent%
+ \removelastskip\noindent
\ifbool{gfd@putprefix}{\gfd@prefix@a{#8}}{}\ignorespaces
\textcolor{\gfd@datecolor}{#1-#2-#3}%
\ifbool{gfd@notime}{}{%
@@ -126,7 +129,7 @@
\removelastskip
}
\def\gfd@prefix@a#1{%
- \ifcsempty{gfd@marker}{}{\gfd@marker@a}\relax
+ \ifcsempty{gfd@marker}{}{\gfd@marker@a}%
\gfd@prefix\space\textcolor{\gfd@filenamecolor}{#1}\space\gfd@postfix\space%
}
\def\gfd@marker@a{%