diff options
Diffstat (limited to 'macros/latex/contrib/kantlipsum')
-rw-r--r-- | macros/latex/contrib/kantlipsum/README.md | 11 | ||||
-rw-r--r-- | macros/latex/contrib/kantlipsum/kantlipsum.dtx | 38 | ||||
-rw-r--r-- | macros/latex/contrib/kantlipsum/kantlipsum.pdf | bin | 585715 -> 677247 bytes |
3 files changed, 19 insertions, 30 deletions
diff --git a/macros/latex/contrib/kantlipsum/README.md b/macros/latex/contrib/kantlipsum/README.md index 6bfce609d0..3061cf96d1 100644 --- a/macros/latex/contrib/kantlipsum/README.md +++ b/macros/latex/contrib/kantlipsum/README.md @@ -2,16 +2,11 @@ The kantlipsum package spits out sentences in Kantian style provided by the "Kant generator for Python" by Mark Pilgrim, described in the book "Dive into Python". -This is version 0.8a of the package +This is version 0.8b of the package -Changes from earlier version: +Version 0.8b is a maintenance release. -Support for printing only a few sentences from one paragraph has been added; -the code has been polished. - -Version 0.8a fixes a small glitch. - - Copyright 2011-2019 Enrico Gregorio + Copyright 2011-2023 Enrico Gregorio It may be distributed and/or modified under the conditions of the LaTeX Project Public License (LPPL), either version 1.3c of this diff --git a/macros/latex/contrib/kantlipsum/kantlipsum.dtx b/macros/latex/contrib/kantlipsum/kantlipsum.dtx index 744a8c7f53..9d3faf6bee 100644 --- a/macros/latex/contrib/kantlipsum/kantlipsum.dtx +++ b/macros/latex/contrib/kantlipsum/kantlipsum.dtx @@ -7,16 +7,13 @@ The kantlipsum package spits out sentences in Kantian style provided by the "Kant generator for Python" by Mark Pilgrim, described in the book "Dive into Python". -This is version 0.8a of the package +This is version 0.8b of the package Changes from earlier version: -Support for printing only a few sentences from one paragraph has been added; -the code has been polished. +Version 0.8b is a maintenance release. -Version 0.8a fixes a small glitch. - - Copyright 2011-2019 Enrico Gregorio + Copyright 2011-2023 Enrico Gregorio It may be distributed and/or modified under the conditions of the LaTeX Project Public License (LPPL), either version 1.3c of this @@ -65,7 +62,7 @@ See http://www.latex-project.org/lppl.txt --------------------------------------------------------------- \endpreamble \postamble -Copyright (C) 2011-2019 by +Copyright (C) 2011-2023 by Enrico Gregorio enrico DOT gregorio AT univr DOT it @@ -101,10 +98,6 @@ This work consists of the file kantlipsum.dtx \expandafter\endgroup \fi %</internal> -%<*driver|package> -\RequirePackage{expl3}[2019/07/01] -\RequirePackage{xparse} -%</driver|package> %<*driver> \documentclass[a4paper,full]{l3doc} \usepackage{bookmark} @@ -141,6 +134,7 @@ This work consists of the file kantlipsum.dtx %\changes{v0.7}{2017/11/16}{Use new kernel function} %\changes{v0.8}{2017/07/23}{Print only a few sentences of a paragraph} %\changes{v0.8a}{2017/07/24}{Respect options and *-version} +%\changes{v0.8b}{2023/11/21}{Maintenance release} % % \begin{documentation} % @@ -275,16 +269,16 @@ This work consists of the file kantlipsum.dtx % \begin{macrocode} \ProvidesExplPackage {kantlipsum} - {2019/07/23} - {0.8} + {2023/11/21} + {0.8b} {Generate text in Kantian style} % \end{macrocode} % % A check to make sure that \pkg{expl3} is not too old % \begin{macrocode} -\@ifpackagelater { expl3 } { 2019/07/01 } - { } - { +\@ifl@t@r\ExplLoaderFileDate{2022-11-09} + {} + {% \PackageError { kantlipsum } { Support~package~expl3~too~old } { You~need~to~update~your~installation~of~the~bundles~ @@ -425,7 +419,7 @@ This work consists of the file kantlipsum.dtx } \cs_new_protected:Nn \@@_process:nnnn { - \tl_set:Nx \l_tmpa_tl { \seq_item:Nn \g_@@_pars_seq {#1} } + \tl_set:Ne \l_tmpa_tl { \seq_item:Nn \g_@@_pars_seq {#1} } \tl_if_novalue:nTF {#4} { \@@_extract:nnV {#3} {#3} \l_tmpa_tl } { \@@_extract:nnV {#3} {#4} \l_tmpa_tl } @@ -494,11 +488,11 @@ This work consists of the file kantlipsum.dtx \msg_error:nnn {kantlipsum} {already-defined} {#1} } { - \tl_set:Nx \l_tmpa_tl { \seq_item:Nn \g_@@_pars_seq {#2} } + \tl_set:Ne \l_tmpa_tl { \seq_item:Nn \g_@@_pars_seq {#2} } \tl_if_novalue:nTF {#4} { \@@_extract:nnV {#3} {#3} \l_tmpa_tl } { \@@_extract:nnV {#3} {#4} \l_tmpa_tl } - \cs_new:Npx #1 { \l_tmpa_tl } + \cs_new:Npe #1 { \l_tmpa_tl } } } % \end{macrocode} @@ -512,12 +506,12 @@ This work consists of the file kantlipsum.dtx { \seq_set_split:Nnn \l_@@_sentences_seq { . } {#3} \seq_clear:N \l_tmpa_seq - \seq_indexed_map_inline:Nn \l_@@_sentences_seq + \seq_map_indexed_inline:Nn \l_@@_sentences_seq { \int_compare:nT { #1 <= ##1 <= #2 } {\seq_put_right:Nn \l_tmpa_seq { ##2 } } } - \tl_set:Nx \l_tmpa_tl { \seq_use:Nn \l_tmpa_seq { .~ }. } + \tl_set:Ne \l_tmpa_tl { \seq_use:Nn \l_tmpa_seq { .~ }. } } \cs_generate_variant:Nn \@@_extract:nnn { nnV } % \end{macrocode} @@ -3616,7 +3610,7 @@ whole content of philosophy.} % stating how many sentences are available. % \begin{macrocode} \group_end: -\msg_info:nnx {kantlipsum} {how-many} +\msg_info:nne {kantlipsum} {how-many} { \int_eval:n {\seq_count:N \g_@@_pars_seq} } % \end{macrocode} % diff --git a/macros/latex/contrib/kantlipsum/kantlipsum.pdf b/macros/latex/contrib/kantlipsum/kantlipsum.pdf Binary files differindex 297d1eb941..d58f559606 100644 --- a/macros/latex/contrib/kantlipsum/kantlipsum.pdf +++ b/macros/latex/contrib/kantlipsum/kantlipsum.pdf |