summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nicefilelist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-12-10 20:57:22 +0000
committerKarl Berry <karl@freefriends.org>2022-12-10 20:57:22 +0000
commit5f05568158ac9b005570e3fd43d01d038c01d4dd (patch)
tree54592b572394e4629518d49bd14c2ff747f77909 /Master/texmf-dist/tex/latex/nicefilelist
parent18148d6dafac14868c10a8638dbc20ba38b50efb (diff)
nicefilelist (10dec22)
git-svn-id: svn://tug.org/texlive/trunk@65235 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/nicefilelist')
-rw-r--r--Master/texmf-dist/tex/latex/nicefilelist/nicefilelist.RLS9
-rw-r--r--Master/texmf-dist/tex/latex/nicefilelist/nicefilelist.sty75
2 files changed, 51 insertions, 33 deletions
diff --git a/Master/texmf-dist/tex/latex/nicefilelist/nicefilelist.RLS b/Master/texmf-dist/tex/latex/nicefilelist/nicefilelist.RLS
deleted file mode 100644
index 42734de8957..00000000000
--- a/Master/texmf-dist/tex/latex/nicefilelist/nicefilelist.RLS
+++ /dev/null
@@ -1,9 +0,0 @@
-\ProvidesFile{nicefilelist.RLS} %% RELEASE INFO
- [{2012/12/12 v0.7a [wrap], `mono' typo, vs.}]
- [{2012/10/30 r0.7 v0.7 [wrap] option}]
- [{2012/10/11 r0.6 v0.6 \string\MaxBaseEmptyList*}]
- [2012/10/01 r0.5 v0.5 \string\MaxBaseEmptyList]
- [{2012/05/20 r0.4 v0.4 Kabelschacht + [r] }]
- [2012/05/20 v0.3 Kabelschacht reimplementation]
- [2012/03/29 v0.2 reimpl.: much within \string\typeout]
- [2012/03/23 v0.1(a) initial]
diff --git a/Master/texmf-dist/tex/latex/nicefilelist/nicefilelist.sty b/Master/texmf-dist/tex/latex/nicefilelist/nicefilelist.sty
index 87d66f48860..aa82af7f271 100644
--- a/Master/texmf-dist/tex/latex/nicefilelist/nicefilelist.sty
+++ b/Master/texmf-dist/tex/latex/nicefilelist/nicefilelist.sty
@@ -1,20 +1,20 @@
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{nicefilelist}[2012/12/12 v0.7a
+\ProvidesPackage{nicefilelist}[2022/12/05 v0.8a
more file list alignment (UL)]
-%% Copyright (C) 2012 Uwe Lueck,
-%% http://www.contact-ednotes.sty.de.vu
-%% -- author-maintained in the sense of LPPL below --
+%% Copyright (C) 2012 Uwe Lück (deceased June 2020)
%%
-%% This file can be redistributed and/or modified under
-%% the terms of the LaTeX Project Public License; either
-%% version 1.3c of the License, or any later version.
-%% The latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% We did our best to help you, but there is NO WARRANTY.
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version. This version of this license is in
+%% https://www.latex-project.org/lppl/lppl-1-3c.txt
+%% and the latest version of this license is in
+%% https://www.latex-project.org/lppl.txt
+%% and version 1.3c or later is part of all distributions of
+%% LaTeX version 2005-12-01 or later.
+%%
%%
-%% Please report bugs, problems, and suggestions via
%%
-%% http://www.contact-ednotes.sty.de.vu
%%
%% === Alignment Settings ===
%% \label{sec:templates}
@@ -40,6 +40,7 @@
\MFfieldtemplate{f-ext}{tex}
\MFfieldtemplate{f-version}{v0.11a}
%% We are not supporting version numbers greater than 9 at present---sorry! (TODO)
+%% \pagebreak
%%
%% |\NFLspaceI|, |\NFLspaceII|, and |\NFLspaceIII|
%% determine the space between the four
@@ -89,7 +90,7 @@
%% %% 2012/10/30:
%% \emph{Without} it expands to `\typeout'
\newcommand*{\NFL@filerow}{\typeout}
-%% ---`\let' does'nt work with 'myfilist''s redefinition of
+%% ---`\let' doesn't work with 'myfilist''s redefinition of
%% `\typeout'.
%% \emph{With} `[wrap]', `\NFL@filerow' applies 'hardwrap''s
%% `\HardWrap':
@@ -219,9 +220,12 @@
\else \expandafter \@secondoftwo \fi}%
%% Dealing with |\NFL@date@or@rest{<token-list>}| before `\NFL@maybe@three':
\def\NFL@date@or@rest##1{%
- \NFL@if@date{##1}{##1}{\NFL@no@date@version##1}}%
-%% |\NFL@if@date{<token-list>}{<yes>}{<no>}| ...
- \def\NFL@if@date##1{\NFL@slashes##1\NFL@xi xyzxyzxyzx\@nil}%
+ \NFL@if@dateS{##1}{##1}{%
+ \NFL@if@dateD{##1}{##1}{\NFL@no@date@version##1}%
+ }%
+ }%
+%% |\NFL@if@dateS{<token-list>}{<yes>}{<no>}| ... slashes
+ \def\NFL@if@dateS##1{\NFL@slashes##1\NFL@xi xyzxyzxyzx\@nil}%
%% |\NFL@slashes| checks that there are slashes at the expected places:
\def\NFL@slashes##1##2##3##4##5##6##7##8{%
\NFL@ifx@kbl##5/%
@@ -230,6 +234,17 @@
%% This especially happens when <token-list> is empty.
%% Digit candidates back:
{##1##2##3##4##6##7}}%
+%% Since 2017-03-08 \LaTeX\ accepts dates formatted as
+%% yyyy-mm-dd instead of yyyy/mm/dd.
+%% Currently both formats are valid.
+%% Therefore the nicefilelist package needs to
+%% also accept ``-" (dash) instead of ``/" (slash) as separator.
+ \def\NFL@if@dateD##1{\NFL@dashes##1\NFL@xi xyzxyzxyzx\@nil}%
+ \def\NFL@dashes##1##2##3##4##5##6##7##8{%
+ \NFL@ifx@kbl##5-%
+ {\NFL@ifx@kbl##8-\NFL@ten@only\NFL@false}%
+ \NFL@false
+ {##1##2##3##4##6##7}}%
%% If the word is a date, we now have taken 6 of the 8 digits.
%% \[|\NFL@ten@only{<digits>}<digit><digit>Q|\]
%% takes the two remaining and then a thing that should be `Q'
@@ -239,7 +254,7 @@
%% Finally checking digits:
##1##2##3\@nnil}%
%% |\NFL@digits<token>| is a loop through single tokens:
- \def\NFL@digits##1{%
+ \def\NFL@digits##1{%
\NFL@ifx@kbl##1\@nnil\NFL@true{%
\NFL@if@digit@code##1<0\NFL@false{%
\NFL@if@digit@code##1>9\NFL@false\NFL@digits
@@ -267,12 +282,19 @@
%% if <rest> contains a version id. Otherwise ```<word-1>_<rest>'"
%% is considered a ``caption" only.
\def\NFL@maybe@three##1##2{%
- \NFL@if@date{##1}%
- {##1\NFLspaceII
- \NFL@space@split{##2}%
- \NFL@maybe@version@rest
- \NFL@version@or@rest}%
- {\NFL@no@date@version##1 ##2}}%
+ \NFL@if@dateS{##1}%
+ {##1\NFLspaceII
+ \NFL@space@split{##2}%
+ \NFL@maybe@version@rest
+ \NFL@version@or@rest}%
+ {\NFL@if@dateD{##1}%
+ {##1\NFLspaceII
+ \NFL@space@split{##2}%
+ \NFL@maybe@version@rest
+ \NFL@version@or@rest}%
+ {\NFL@no@date@version##1 ##2}}}%
+%% \pagebreak
+%%
%% |\NFL@version@or@rest{<token-list>}|:
\def\NFL@version@or@rest##1{%
\NFL@if@version{##1}%
@@ -353,4 +375,9 @@ v0.7 2012/10/13 "updating" date in \Provides...!
sec:test below sec:opt, mentioning `url'
2012/10/30 correcting \NFL@filerow without wrapping,
doc.: |...| in sec:opt
-v0.7a 2012/12/12 doc. monospace -> monofill
+v0.7a 2012/12/12 doc. monospace -> monofill; archived at:
+ https://web.archive.org/web/20221205210517/
+ https://mirror.mwt.me/ctan/install/macros/
+ latex/contrib/nicefilelist.tds.zip
+v0.8a 2022/12/05 Accepting also dashes instead of dashes in date
+ (one-time fix by H.-Martin Münch) \ No newline at end of file