diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/getfiledate/getfiledate-guide.pdf | bin | 117059 -> 113586 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/getfiledate/getfiledate-guide.tex | 21 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/getfiledate/getfiledate.sty | 39 |
3 files changed, 30 insertions, 30 deletions
diff --git a/Master/texmf-dist/doc/latex/getfiledate/getfiledate-guide.pdf b/Master/texmf-dist/doc/latex/getfiledate/getfiledate-guide.pdf Binary files differindex ad75071b8cf..4f0fe29e5d0 100644 --- a/Master/texmf-dist/doc/latex/getfiledate/getfiledate-guide.pdf +++ b/Master/texmf-dist/doc/latex/getfiledate/getfiledate-guide.pdf diff --git a/Master/texmf-dist/doc/latex/getfiledate/getfiledate-guide.tex b/Master/texmf-dist/doc/latex/getfiledate/getfiledate-guide.tex index 147523a9e43..dd7803b18c2 100644 --- a/Master/texmf-dist/doc/latex/getfiledate/getfiledate-guide.tex +++ b/Master/texmf-dist/doc/latex/getfiledate/getfiledate-guide.tex @@ -1,13 +1,12 @@ -%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% -% This is file getfiledate-guide.tex, the documentation for the % -% getfiledate package. % -% % -% DON'T RUN: For demonstration only. % -% % -% (c) Ahmed Musa 2009 % -%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% +%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% +% This is file getfiledate-guide.tex, the documentation for the getfiledate % +% package. % +% % +% (c) Ahmed Musa 2009 % +%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% \documentclass[a4paper,11pt,final]{article} \usepackage[scaled=0.9]{helvet} +\usepackage{mathpazo} \usepackage{getfiledate} \usepackage[left=3.5cm,right=3.5cm,top=3.5cm,bottom=3.5cm]{geometry} \usepackage{fancyvrb,shortvrb} @@ -118,7 +117,7 @@ The package options are listed in Table~\ref{tab:Package-options} below. +width+ & +\hsize+ & The width of the parbox or boxedminipage containing the filedate.\\ +head+ & +0ex+ & The vertical separation between the paragraph before the filedate and the filedate itself. When this option is passed to package without value, its default becomes the +\baselineskip+.\\ +foot+ & +0ex+ & The vertical skip between the filedate's line and the paragraph after filedate. When this option is passed to package without value, its default becomes the +\baselineskip+.\\ -+marker+ & +\blacktriangle-+ +right+ & The mark before the filename, on the same line with the filedate.\\ ++marker+ & +\@empty+ & The mark before the filename, on the same line with the filedate.\\ +markercolor+ & +blue+ & The color of the marker.\\ +filenamecolor+ & +blue+ & The color of the filename.\\ +datecolor+ & +blue+ & The color of filedate.\\ @@ -129,7 +128,7 @@ The package options are listed in Table~\ref{tab:Package-options} below. +framesep+ & +3pt+ & The +\fboxsep+ for the boxedminipage.\\ +framerule+ & +0.4pt+ & The +\fboxrule+ for the boxedminipage.\\ +align+ & +justified+ & Alignment of the boxedminipage (possible values are \stya{center}, \stya{left}, \stya{right} and \stya{justified}).\\ -+putprefix+ & +false+ & The boolean switch for placing prefix and postfix before the filedate. If this option is not entered in the call to \cmda{\getfiledate}, no prefix and no postfix will be inserted (even if the user specifies prefix and postfix in the call to \cmda{\getfiledate}). This option has been necessitated by users who just want to get filedate without any prefix, postfix or filename.\\ ++putprefix+ & +true+ & The boolean switch for placing prefix and postfix before the filedate. If this option is not entered in the call to \cmda{\getfiledate}, or if it is entered as \stya{putprefix=true}, both prefix and postfix will be inserted. On the other hand, if the user sets \stya{putprefix=false}, then no prefix and postfix will be inserted (even if the user specifies prefix and postfix in the call to \cmda{\getfiledate}). This option has been necessitated by users who just want to get filedate without any prefix, postfix or filename.\\ +notime+ & +false+ & The boolean switch for turning the display of time on or off.\\ +boxed+ & +false+ & The boolean switch for enclosing the filedate in a box. If the user simply enters this option without value, it will be assumed to be +true+. If it doesn't appear in the options list, its value is +false+. \end{longtable} @@ -145,7 +144,7 @@ The simplest example is to use the \cmda{\getfiledate} macro in the following wa for which the default values of the package options will be used. For the sample file \styb{misc-test1.tex}, the outcome of this will be: \small -\getfiledate[putprefix]{misc-test1.tex} +\getfiledate{misc-test1.tex} \normalsize \bigskip 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 } |