diff options
author | Karl Berry <karl@freefriends.org> | 2011-02-02 01:10:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-02-02 01:10:13 +0000 |
commit | a1756fc28c0487bf546d247d048a19e97e20a28b (patch) | |
tree | 58a40dba6de697427f4f3de4ff2a04ec7b4fc631 /Master/texmf-dist/source/latex/fileinfo | |
parent | fe6f73e8a6e7202bba968b7db2c378b3fefc3129 (diff) |
fileinfo (1feb11)
git-svn-id: svn://tug.org/texlive/trunk@21259 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/fileinfo')
-rw-r--r-- | Master/texmf-dist/source/latex/fileinfo/README.tex | 11 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/fileinfo/makedoc.cfg | 40 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/fileinfo/myfilist.tex | 133 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/fileinfo/readprov.tex | 129 |
4 files changed, 313 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/fileinfo/README.tex b/Master/texmf-dist/source/latex/fileinfo/README.tex new file mode 100644 index 00000000000..ce26748edb5 --- /dev/null +++ b/Master/texmf-dist/source/latex/fileinfo/README.tex @@ -0,0 +1,11 @@ +\ProvidesFile{README.tex}[2010/11/27 make README.pdf] +\listfiles + +\documentclass[12pt]{article} +\usepackage{verbatim} +\pagestyle{empty} +\begin{document} +\vspace*{-2\baselineskip} +\enlargethispage{1\baselineskip} +\verbatiminput{README.txt} +\end{document} diff --git a/Master/texmf-dist/source/latex/fileinfo/makedoc.cfg b/Master/texmf-dist/source/latex/fileinfo/makedoc.cfg new file mode 100644 index 00000000000..43d57ed87cc --- /dev/null +++ b/Master/texmf-dist/source/latex/fileinfo/makedoc.cfg @@ -0,0 +1,40 @@ +\ProvidesFile{makedoc.cfg}[2011/01/24 documentation settings] + +\author{Uwe L\"uck\thanks{\url{http://contact-ednotes.sty.de.vu}}} +% \author{Uwe L\"uck---{\tt http://contact-ednotes.sty.de.vu}} + +%% hyperref: +\RequirePackage{ifpdf} +\usepackage[% + \ifpdf +% bookmarks=false, %% 2010/12/22 +% bookmarksnumbered, + bookmarksopen, %% 2011/01/24!? + bookmarksopenlevel=2, %% 2011/01/23 +% pdfpagemode=UseNone, +% pdfstartpage=10, +% pdfstartview=FitH, + citebordercolor={ .6 1 .6}, + filebordercolor={1 .6 1}, + linkbordercolor={1 .9 .7}, + urlbordercolor={ .7 1 1}, %% playing 2011/01/24 + \else + draft + \fi +]{hyperref} + +\RequirePackage{niceverb}[2011/01/24] +\RequirePackage{readprov} %% 2010/12/08 +\RequirePackage{hypertoc} %% 2011/01/23 +\RequirePackage{texlinks} %% 2011/01/24 +\makeatletter + \@ifundefined{strong} + {\let\strong\textbf} %% 2011/01/24 + {} +\makeatother + +\errorcontextlines=4 +\pagestyle{headings} + +\endinput + diff --git a/Master/texmf-dist/source/latex/fileinfo/myfilist.tex b/Master/texmf-dist/source/latex/fileinfo/myfilist.tex new file mode 100644 index 00000000000..38083b0832d --- /dev/null +++ b/Master/texmf-dist/source/latex/fileinfo/myfilist.tex @@ -0,0 +1,133 @@ +\ProvidesFile{myfilist.tex}[2011/01/29 documenting myfilist.sty] +\title{\textsf{myfilist}\\---\\ + List Infos on just the Files\\You Want to Know About% + \GetFileInfo{myfilist.sty}\thanks{% + This file describes version + \textcolor{blue}{\fileversion} % \textbf{\fileversion} + of \textsf{\filename} as of \filedate.}} +% \listfiles + +%% Preprocessing: +\RequirePackage{makedoc} +\CopyFDconditionFromTo{PScomment}{comment} +% \MainDocParser{\ProcessInputWith{PScomment}} +%% Replacements: +\SetPatternCodes{\MakeOther\\\MakeOther\ } %% CARE! +\MakeExpandableAllReplacer{LaTeX2e}{LaTeX2e }{\LaTeXe }{LEAVE} +% \MakeExpandableAllReplacer{TeX}{\TeX }{\TeX{} }{LEAVE} +\PrependExpandableAllReplacer{log}{ .log}{ `.log'} +\PrependExpandableAllReplacer{tex}{ .tex}{ `.tex'} +\PrependExpandableAllReplacer{cls}{ .cls}{ `.cls'} +\PrependExpandableAllReplacer{sty}{ .sty}{ `.sty'} +\PrependExpandableAllReplacer{NOTE}{NOTE: }{\textbf{Note: }} +\SetPatternCodes{\MakeOther\\} %% less care needed +\PrependExpandableAllReplacer{dots}{...}{$\dots$} +\PrependExpandableAllReplacer{provf}{\ProvidesFile}{`\ProvidesFile'} +\PrependExpandableAllReplacer{loads}{"loads"}{``loads''} +\PrependExpandableAllReplacer{USAGE}{USAGE:}{\section{Usage}} +\PrependExpandableAllReplacer{IMPLEM} + {IMPLEMENTATION:}{\section{Implementation}} +\PrependExpandableAllReplacer{gather} + {gather.tex}{`gather.tex'} +\PrependExpandableAllReplacer{readprov.pdf} + {readprov.pdf}{`readprov.pdf'} +\PrependExpandableAllReplacer{readprov-} %% 2010/11/26 + {readprov-.sty}{readprov.sty} +\PrependExpandableAllReplacer{readprov} + {readprov.sty}{'readprov.sty'} +\PrependExpandableAllReplacer{myfilist-} %% 2010/11/26 + {myfilist-.sty}{myfilist.sty} +\PrependExpandableAllReplacer{myfilist} + {myfilist.sty}{'myfilist.sty'} +\PrependExpandableAllReplacer{rungather}[\MakeOther\ ]% +{run gather.tex}{\emph{run} gather.tex} + %% <- TODO \PrependStandardEnhancement... +\SetCorrectHookJobLast +\ResetPatternCodes + +\MainDocParser{\ProcessInputWith{PScomment}} +\LaTeXresultFile{myfilist.doc} +\MakeCloseDoc{myfilist.sty} + %% <- we must NOT read mdoccorr.cfg here! + %% (or put the above setup into a new one!) -> +% \MakeJobDoc{0}{\ProcessInputWith{PScomment}} + +%% Typesetting: +\documentclass{article} +\usepackage{color} %% for highlighting package version!? TODO +\input{makedoc.cfg} +\ReadPackageInfos{myfilist} +\usepackage{wiki} +%% TeX markup inserted by the txt-to-TeX function must be +%% declared here for using 'niceverb''s ``auto mode". +\AddToNoVerbList{\LaTeXe\dots\textbf\emph} +\begingroup \MakeActive\" + \gdef\fineDQ{``\begingroup + \let\do\MakeOther \dospecials \tt + \def"{\endgroup''}}% +\endgroup + +\pagestyle{headings} +\usepackage{parskip} + +\begin{document} + +\maketitle + +\begin{abstract}\sloppy\noindent + 'myfilist' addresses lazy file versions management, + when you move your package or chapter files through + various computers and various directories and after a while + wonder where the most recent versions are. + + Like Paul Ebermann's + 'dateiliste',\urlfoot{CtanPkgRef}{dateiliste} + 'myfilist' varies \LaTeX's `\listfiles' + for listing file (especially version) informations. + Differences to 'dateiliste' and \LaTeX\ are: + \begin{enumerate} + \item You choose the files (and their order) to be listed; + \item indeed: this has very little to do with files used in + typesetting some document; + \item output is just screen, `.log', or a `.txt'-type file + that you choose. + \end{enumerate} + + The code of this package was ready in spring 2008; + in spring 2010 I presented it as a kind of study on improving + 'nicetext''s\urlfoot{CtanPkgRef}{nicetext} + `txt'-to-\LaTeX\ processing after 'nicetext v0.4' + (aim was to do this without modifying the documented file, + yet I did not obey this ruly strictly here). + The new idea is adding 'wiki.sty''s ``environments'' + feature to 'makedoc' and 'niceverb''s ``auto mode" + in order to interprete `txt' comment indents in the package file, + while 'wiki.sty''s \emph{font} switching + still is not compatible with 'niceverb''s. Easy script + commands for achieving this are still missing (sorry; see the code + in 'myfilist.tex' that achieved the present formatting.) +\end{abstract} + +\pagebreak +\tableofcontents + +\section{Installing} +The file '\jobname.sty' is provided ready, installation only requires +putting it somewhere where \TeX\ finds it +(which may need updating the filename data + base).\urlfoot{ukfaqref}{inst-wlcf} +\section{File Info Header} + +\sloppy +\wikiEnvironments %% TODO fails with "or" 2010/03/31 +\MakeActiveLetHere\"\fineDQ %% fails with "loads" +\AutoCmdInput{myfilist.doc} +\nowikiEnvironments + +\section{Example} +`gather.tex' for the present bundle has been as follows + %% TODO 2010/11/27: +(added development versions of 'fifinddo.sty' etc.): +\verbatiminput{gather} %% 2010/11/27 + +\end{document} diff --git a/Master/texmf-dist/source/latex/fileinfo/readprov.tex b/Master/texmf-dist/source/latex/fileinfo/readprov.tex new file mode 100644 index 00000000000..80e728d297f --- /dev/null +++ b/Master/texmf-dist/source/latex/fileinfo/readprov.tex @@ -0,0 +1,129 @@ +\ProvidesFile{readprov.tex}[2011/01/29 documenting readprov.sty] + +\title{\textsf{readprov}\\---\\Get File Info without Loading% +% \GetFileInfo{readprov.sty}% +% \ReadFileInfos{readprov.sty}% %% \NeedsTeXFormat + \thanks{% + This file describes +% \protect\GetFileInfo{readprov.sty}% %% FAILS! + version +% \textbf{\fileversion} of \textsf{\filename} as of \filedate.}% + \textcolor{blue}{\UseVersionOf{readprov.sty}} + of \textsf{readprov.sty} as of \UseDateOf{readprov.sty}.}% +} %% <- TODO macro in makedoc.cfg +% \listfiles + +%% Preprocessing: +\RequirePackage{makedoc} +\CopyFDconditionFromTo{PScomment}{comment} +\MainDocParser{\ProcessInputWith{PScomment}} +%% Replacements: +\StartPrependingChain +\SetPatternCodes{\MakeOther\\\MakeOther\ } %% CARE! +% \PrependExpandableAllReplacer{tex}{ .tex}{ `.tex'} +\PrependExpandableAllReplacer{sty}{ .sty}{ `.sty'} +\PrependExpandableAllReplacer{cls}{.cls}{`.cls'} +\PrependExpandableAllReplacer{etc}{etc. }{etc.\ } +% \PrependExpandableAllReplacer{etc...}{etc. ...}{etc.\ $\dots$} +\SetPatternCodes{\MakeOther\\} %% less care needed +\PrependExpandableAllReplacer{LaTeX}{LaTeX}{\LaTeX} +\PrependExpandableAllReplacer{xpbl}{expandable}{\emph{expandable}} +\PrependExpandableAllReplacer{rob}{robust}{\emph{robust}} +\PrependExpandableAllReplacer{frag}{fragile}{\emph{fragile}} +\PrependExpandableAllReplacer{doc}{doc.sty}{'doc.sty'} +\PrependExpandableAllReplacer{myfilist}{myfilist.sty}{'myfilist.sty'} +\PrependExpandableAllReplacer{readprov}{readprov.sty}{'readprov.sty'} +\PrependExpandableAllReplacer{provf}{\ProvidesFile}{`\ProvidesFile'} +\PrependExpandableAllReplacer{NOTE}{NOTE:}{\paragraph{Note:}} +% \PrependExpandableAllReplacer{Note}{Note:}{\emph{Note:} } +\PrependExpandableAllReplacer{prov}{provided}{\emph{provided}} +\PrependExpandableAllReplacer{*fail*}{*fail*}{\emph{fail}} +\PrependExpandableAllReplacer{INSTALL}{INSTALL:}{\section{Installation}} +\PrependExpandableAllReplacer{USAGE}{USAGE:}{\section{Usage}} +\PrependExpandableAllReplacer{IMPLEM} + {IMPLEMENTATION:}{\section{Implementation}} +\PrependExpandableAllReplacer{LOAD}{LOADING:} + {\paragraph{Loading:}} +\PrependExpandableAllReplacer{INS}{INSERTING:} + {\paragraph{Inserting:}} +\PrependExpandableAllReplacer{READ}{EXTRACTING:} + {\paragraph{Extracting:}} +\PrependExpandableAllReplacer{TODO}{TODO} + {\textcolor{blue}{TODO}} +\SetPatternCodes{\MakeOther\\\MakeOther\$} +\PrependExpandableAllReplacer{dots}{...}{$\dots$} +\SetCorrectHookJobLast +\ResetPatternCodes + +\LaTeXresultFile{readprov.doc} +\MakeCloseDoc{readprov.sty} + %% <- we must NOT read mdoccorr.cfg here! + %% (or put the above setup into a new one!) -> +% \MakeJobDoc{0}{\ProcessInputWith{PScomment}} + +%% Typesetting: +\documentclass{article} +\usepackage{color} %% for highlighting package version!? TODO +\input{makedoc.cfg} +\usepackage{readprov} +% \ReadFileInfos{report.cls} %% WORKS! 2010/11/27 +\usepackage{wiki} +\begingroup \MakeActive\" + \gdef\fineDQ{``\begingroup + \let\do\MakeOther \dospecials \tt + \def"{\endgroup''}}% +\endgroup +% \makeatletter \MakeLetter\_ + +\pagestyle{headings} +% \usepackage{parskip} + +\begin{document} + +\maketitle + +\begin{abstract}\sloppy\noindent + 'readprov.sty' + renders `\GetFileInfo' from \LaTeX's + 'doc.sty'\urlfoot{CtanPkgRef}{doc} + (without the latter being required) + and new robust (expandable) variants of it, + usable with files that are not really loaded + (they are quit when their file info is found, cf. the 'zwgetfdate' + package\urlfoot{CtanPkgRef}{zwgetfdate}). + So, e.g., you can describe packages that are incompatible + with each other or with packages that your document uses. + You even can report about various class files. + + Such packages then also appear with \LaTeX's `\listfiles'. + You may consider this a bug $\dots$ +'myfilist.sty' + makes it a feature (see `myfilist.pdf'). +\end{abstract} + +% \pagebreak +\tableofcontents + +\section{Installing} +The file '\jobname.sty' is provided ready, installation only requires +putting it somewhere where \TeX\ finds it +(which may need updating the filename data + base).\footnote{\url{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=inst-wlcf}} + +\section{File Info Header} + +\sloppy +\makeatletter + \newcommand*{\docnewline}{\leavevmode\@normalcr[\topsep]} + %% <- \leavevmode for use with \paragraph. + %% sometimes needs to be preceded by a space. +\makeatother +\AddToNoVerbList{% + \LaTeX\emph\dots\quad\paragraph\texttt\textcolor\\} +\MakeActiveLetHere\"\fineDQ +\let\\\docnewline +%% CARE! from next line on, code line indents are special! +\wikiEnvironments %% TODO fails with "or" 2010/03/31 +\AutoCmdInput{readprov.doc} + +\end{document} |