diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/filedate/filedate.tex')
-rw-r--r-- | Master/texmf-dist/source/latex/filedate/filedate.tex | 82 |
1 files changed, 46 insertions, 36 deletions
diff --git a/Master/texmf-dist/source/latex/filedate/filedate.tex b/Master/texmf-dist/source/latex/filedate/filedate.tex index 2e1a2383ec5..c80305232ea 100644 --- a/Master/texmf-dist/source/latex/filedate/filedate.tex +++ b/Master/texmf-dist/source/latex/filedate/filedate.tex @@ -1,6 +1,10 @@ -\ProvidesFile{filedate.tex}[2012/10/25 documenting filedate.sty] +\ProvidesFile{filedate.tex}[2012/11/06 documenting filedate.sty] %% 2012/06/24 -\title{\pkgtitle{filedate.sty}{Access and Compare Info and Modification Date}} +\title{\pkgtitle{filedate.sty}{Access and Compare + \LaTeX~File~% %% 2012/11/06 + Info + \\ %% 2012/11/06 + and Modification Date}} % \listfiles { \RequirePackage{makedoc} \ProcessLineMessage{} \MakeJobDoc{18}%% 2012/10/16 @@ -13,12 +17,14 @@ document versions, macro programming} \usepackage{lmodern} \sloppy -\newcommand*{\TODO}[1][]{% - \textcolor{blue}{TODO\ifx$#1$\else\space#1\fi}} +% \newcommand*{\TODO}[1][]{% +% \textcolor{blue}{TODO\ifx$#1$\else\space#1\fi}} + %% <- rm. 2012/11/06 \providecommand*{\LuaTeX}{Lua\TeX} \providecommand*{\pdfTeX}{pdf\TeX} \providecommand*{\XeLaTeX}{X\lower.5ex\hbox{E}\kern-.125em\LaTeX} %% <- TODO some logo package +% \newcommand*{\qtdfile}{} %% 2012/11/06 \begin{document} \maketitle \begin{MDabstract} @@ -74,11 +80,7 @@ demonstrating what may go wrong. % \cs{CheckDateOfToday}\{wrong.tex\} % \cs{stop} % \end{quotation} -\vskip \bigskipamount -\hrule -\verbatiminput{wrong} -\hrule -\vskip \bigskipamount +\MDsampleinput{wrong} \ReadFileInfos{wrong} You may run it (by the command line \qtd{\file{latex wrong}}) and experience: \begin{enumerate} @@ -115,39 +117,44 @@ You may run it (by the command line \qtd{\file{latex wrong}}) and experience: \input{filedate.doc} \section{Use with Present Package Documentation} -At this place, the documentation source \qtd{\file{filedate.tex}} -issues -\begin{verbatim} - \EqualityMessages - \CheckDateOfPDFmod{filedate.sty} - \CheckDateOfPDFmod{filedate.tex} - \ReadFileInfos{srcfiles} - \CheckDateOfPDFmod{srcfiles.tex} -\end{verbatim} - \EqualityMessages - \CheckDateOfPDFmod{filedate.sty} - \CheckDateOfPDFmod{filedate.tex} - \ReadFileInfos{srcfiles} - \CheckDateOfPDFmod{srcfiles.tex} -in order to check whether the ``info dates" of the package file -\qtd{\file{filedate.sty}} and of the documentation source and driver -\qtd{\file{filedate.tex}} are the same as their modification dates +%% mod. 2012/11/06: +\noNiceVerb + \input{fdatechk.tex} +\useNiceVerb + +\AddQuotes + +Above this paragraph, +the documentation source `filedate.tex' issues +\[|\input{fdatechk.tex}|\] +in order to run the following \TeX~script `fdatechk.tex': +\MDsampleinput{fdatechk} +(That is done \emph{above} the paragraph to avoid wrong spacing + within the paragraph from `filedate.tex'.) +This way we check whether the ``info dates" of the package file +`filedate.sty', of the documentation source and driver +`filedate.tex', and of some other related files +are the same as their modification dates according to |\pdffilemoddate| (using \code{pdflatex}). -When I added this on 2012-10-17, it indeed informed me that I had not updated -\file{filedate.tex}'s info date +When I added the (original) check on 2012-10-17, +it indeed informed me that I had not updated +`filedate.tex's info date (\code{2012/10/16}, generation of first version of the file from a template, draft). |\EqualityMessages| confirms that the tests were run indeed. -Check for \qtd{\file{srcfiles.tex}}, the \TeX\ script generating a -release overview, has been added 2012-10-19. -That script performs the checks as well, -but I might not run it the same day. However, such checks rather -approaching package management should better be based on modification -\emph{times}. If this should be done by \TeX\ -(\CtanPkgRef{pdftex}{\pdfTeX}, \ctanpkgref{pdfcmds}), -it should better be based on the \ctanpkgref{filemod} package. +The \TeX~script `srcfiles.tex' that in the first instance +generates a release overview additionally inputs `fdatechk.tex' +(as of 2012-11-06) as well. This way the check is performed +even when I rerun the documentation without updating the file list, +as well the other way round. +%% rm. 2012/11/06: +% However, such checks rather +% approaching package management should better be based on modification +% \emph{times}. If this should be done by \TeX\ +% (\CtanPkgRef{pdftex}{\pdfTeX}, \ctanpkgref{pdfcmds}), +% it should better be based on the \ctanpkgref{filemod} package. \end{document} @@ -157,3 +164,6 @@ VERSION HISTORY 2012/10/17 completed 2012/10/19 for v0.21 added srcfiles check, corr. history 2012/10/25 for v0.3 more than two keywords, lmodern +2012/11/06 for r0.3a final demo with `fdatechk.tex', \AddQuotes + for \qtd{\file{..., and other mod.s of + doc. there; title extended |