texlive[65757] Master/texmf-dist: cascade (8feb23)

commits+karl at tug.org commits+karl at tug.org
Wed Feb 8 21:58:34 CET 2023


Revision: 65757
          http://tug.org/svn/texlive?view=revision&revision=65757
Author:   karl
Date:     2023-02-08 21:58:33 +0100 (Wed, 08 Feb 2023)
Log Message:
-----------
cascade (8feb23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/cascade/README.md
    trunk/Master/texmf-dist/doc/latex/cascade/cascade-french.pdf
    trunk/Master/texmf-dist/doc/latex/cascade/cascade.pdf
    trunk/Master/texmf-dist/source/latex/cascade/cascade.dtx
    trunk/Master/texmf-dist/source/latex/cascade/cascade.ins
    trunk/Master/texmf-dist/tex/latex/cascade/cascade.sty

Modified: trunk/Master/texmf-dist/doc/latex/cascade/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/cascade/README.md	2023-02-08 00:50:24 UTC (rev 65756)
+++ trunk/Master/texmf-dist/doc/latex/cascade/README.md	2023-02-08 20:58:33 UTC (rev 65757)
@@ -2,7 +2,7 @@
 
 Author: F. Pantigny (`fpantigny at wanadoo.fr`).
 
-CTAN page: `https://ctan.org/pkg/nicematrix`
+CTAN page: `https://ctan.org/pkg/cascade`
 
 ## License
 The LaTeX extension `cascade` is distributed under the LPPL 1.3 license.
@@ -20,7 +20,7 @@
 For a manual installation:
 
 * put the files `cascade.ins` and `cascade.dtx` in the same directory; 
-* run `latex cascade.ins`.
+* run `latex cascade.ins` in that directory.
 
 The file `cascade.sty` will be generated.
 

Modified: trunk/Master/texmf-dist/doc/latex/cascade/cascade-french.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/cascade/cascade.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/cascade/cascade.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/cascade/cascade.dtx	2023-02-08 00:50:24 UTC (rev 65756)
+++ trunk/Master/texmf-dist/source/latex/cascade/cascade.dtx	2023-02-08 20:58:33 UTC (rev 65757)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright (C) 2018-2021 by F. Pantigny
+% Copyright (C) 2018-2023 by F. Pantigny
 % -----------------------------------
 %
 % This file may be distributed and/or modified under the
@@ -15,8 +15,8 @@
 %
 % \fi
 % \iffalse
-\def\myfileversion{1.2}
-\def\myfiledate{2021/08/23}
+\def\myfileversion{1.2a}
+\def\myfiledate{2023/02/08}
 %
 %
 %<*batchfile>
@@ -26,7 +26,7 @@
 \usedir{tex/latex/cascade}
 \preamble
 
-Copyright (C) 2018-2021 by F. Pantigny
+Copyright (C) 2018-2023 by F. Pantigny
 -----------------------------------
 
 This file may be distributed and/or modified under the
@@ -62,36 +62,7 @@
 \skip\footins = 2\bigskipamount
 
 
-\EnableCrossrefs
-\makeatletter
-\ExplSyntaxOn
-\DoNotIndex{\begin,\end}
-\DoNotIndex{\c at iRow,\c at jCol,\theiRow,\thejCol}
-\DoNotIndex{\pgfpicture,\endpgfpicture,\tikzpicture,\endtikzpicture}
-\DoNotIndex{\pgfpoint,\pgfnode,\pgfnodealias,\pgfcoordinate}
-\DoNotIndex{\pgf at x,\pgf at y}
-\DoNotIndex{\int_add:Nn,\int_case:nnTF,\int_compare:nNnTF,\int_compare:nTF,
-  \int_compare_p:nNn,\int_decr:N,\int_eval:n,\int_add:Nn,\int_gdecr:N,\int_gincr:N
-  \int_gset:Nn,\int_gset_eq:NN,\int_gzero:N,\int_gzero_new:N,\int_if_odd:nTF,
-  \int_max:nn,\int_new:N,\int_set:Nn,\int_set_eq:NN,\int_step_inline:nnn,
-  \int_step_variable:nNn,\int_step_variable:nnNn,\int_sub:Nn,\int_use:N,\int_zero:N,
-  \int_zero_new:N,\g_tmpa_int,\l_tmpa_int,\l_tmpb_int
-}
-\DoNotIndex{\dim_abs:n,\dim_add:Nn,\dim_compare:nNnTF,\dim_compare_p:nNn,
-\dim_const:Nn,\dim_eval:n,\dim_gadd:Nn,\dim_gset:Nn,\dim_gset_eq:NN,
-\dim_gset:Nn,\dim_gset_eq:NN,\dim_gsub:Nn,\dim_gzero_new:N,\dim_max:nn,
-\dim_min:nn,\dim_new:N,\dim_ration:nn,\dim_set:Nn,\dim_set_eq:NN,\dim_sub:Nn,
-\dim_use:N,\dim_zero:N,\dim_zero_new:N,\g_tmpa_dim,\l_tmpa_dim,\l_tmpb_dim,
-\c_zero_dim}
-\DoNotIndex{\cs_new_protected:Npn,\cs_new:Npn,\cs_set_eq:NN,
-\cs_set_protected:Npn}
-\DoNotIndex{\bool_if:NTF,\bool_new:N,\bool_set_false:N,\bool_set_true:N,\l_tmpa_bool}
-\DoNotIndex{\group_begin:,\group_end:,\c_math_toggle_token}
-\DoNotIndex{\tl_set:Nn,\l_tmpa_tl}
-\ExplSyntaxOff
-\makeatother
 
-
 \begin{document}
 \DocInput{cascade.dtx}
 \end{document}
@@ -157,7 +128,7 @@
 % \end{center}
 % 
 % \interitem
-% For the lisibility of such constructions, a simplified version of |\Cascade|
+% For the legibility of such constructions, a simplified version of |\Cascade|
 % is available, named |\ShortCascade|.  
 %
 % The code |\ShortCascade{X}{Y}| is merely a shortcut for the code
@@ -522,7 +493,7 @@
 % 
 % \iffalse
 %%
-%% The command \Cascade is defined with \NewDocumentCommand of xparse
+%% The command \Cascade is defined with \NewDocumentCommand of L3.
 % \fi
 % \interitem
 % \DescribeMacro{\Cascade}
@@ -548,6 +519,11 @@
     \spread at equation
     \dim_set_eq:NN \l_@@_interline_dim \l_@@_interline_all_dim
     \keys_set:nn { cascade / command } { #1 }
+    \tl_if_empty:nF { #6 }
+      {
+        \bool_if:NF \l_@@_t_bool
+          { \msg_error:nn { cascade } { angular~argument~without~t } }
+      }
     \@@_initialisation:
     \hbox_set:Nn \l_@@_box_one 
       { 
@@ -608,12 +584,7 @@
 %    \begin{macrocode}
             \bool_if:NT \l_@@_first_argument_bool
               {
-%    \end{macrocode}
-% Here, you should use |\box_ht_plus_dp:N| when TeXLive 2021 will be available
-% on Overleaf. 
-%    \begin{macrocode}
-                \dim_set:Nn \l_tmpa_dim
-                  { \box_ht:N \l_tmpb_box + \box_dp:N \l_tmpb_box }
+                \dim_set:Nn \l_tmpa_dim { \box_ht_plus_dp:N \l_tmpb_box }
                 \l_tmpa_dim = 0.5\l_tmpa_dim
                 \dim_add:Nn \l_tmpa_dim { \the \fontdimen 22 \textfont2 }
                 \dim_sub:Nn \l_tmpa_dim 
@@ -660,7 +631,7 @@
 %    \end{macrocode}
 % 
 % \bigskip
-% The following macro is only for the lisibility of the code.
+% The following macro is only for the legibility of the code.
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_the_vcenter:nn #1 #2
   {
@@ -802,6 +773,15 @@
     ignored.
   }
 %    \end{macrocode}
+%
+%    \begin{macrocode}
+\msg_new:nnn { cascade } { angular~argument~without~t }
+  {
+    You~can't~use~the~argument~between~angular~brackets~because~
+    you~have~not~used~the~key~'t'. The~argument~between~angular~brackets~
+    will~be~ignored.
+  }
+%    \end{macrocode}
 % 
 % \bigskip
 % \DescribeMacro{\ShortCascade}
@@ -824,16 +804,14 @@
 % \vspace{1cm}
 % \section{History}
 %
+% \subsection*{Changes between versions 1.1 and 1.2}
+%
+% New commands |\Edacsac| and |\ShortEdacsac|.
+%
 % \subsection*{Changes between versions 1.0 and 1.1}
 % 
 % New option |t|.
 % 
-% \subsection*{Changes between versions 1.0 and 1.1}
-%
-% New commands |\Edacsac| and |\ShortEdacsac|.
-% 
-%
-% \PrintIndex
 % \tableofcontents
 %
 % \end{document}

Modified: trunk/Master/texmf-dist/source/latex/cascade/cascade.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/cascade/cascade.ins	2023-02-08 00:50:24 UTC (rev 65756)
+++ trunk/Master/texmf-dist/source/latex/cascade/cascade.ins	2023-02-08 20:58:33 UTC (rev 65757)
@@ -1,5 +1,5 @@
 %%
-%% Copyright (C) 2018-2021 by F. Pantigny
+%% Copyright (C) 2018-2023 by F. Pantigny
 %%
 %%
 %% This file may be distributed and/or modified under the
@@ -17,7 +17,7 @@
 \usedir{tex/latex/cascade}
 \preamble
 
-Copyright (C) 2018-2021 by F. Pantigny
+Copyright (C) 2018-2023 by F. Pantigny
 
 This file may be distributed and/or modified under the
 conditions of the LaTeX Project Public License, either

Modified: trunk/Master/texmf-dist/tex/latex/cascade/cascade.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/cascade/cascade.sty	2023-02-08 00:50:24 UTC (rev 65756)
+++ trunk/Master/texmf-dist/tex/latex/cascade/cascade.sty	2023-02-08 20:58:33 UTC (rev 65757)
@@ -6,7 +6,7 @@
 %%
 %% cascade.dtx  (with options: `package')
 %% 
-%% Copyright (C) 2018-2021 by F. Pantigny
+%% Copyright (C) 2018-2023 by F. Pantigny
 %% 
 %% This file may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -18,8 +18,8 @@
 %% and version 1.3 or later is part of all distributions of
 %% LaTeX version 2005/12/01 or later.
 %% 
-\def\myfileversion{1.2}
-\def\myfiledate{2021/08/23}
+\def\myfileversion{1.2a}
+\def\myfiledate{2023/02/08}
 \RequirePackage{l3keys2e}
 \ProvidesExplPackage
   {cascade}
@@ -87,7 +87,7 @@
 \NewDocumentCommand \CascadeOptions { m }
   { \keys_set:nn { cascade / global } { #1 } }
 %%
-%% The command \Cascade is defined with \NewDocumentCommand of xparse
+%% The command \Cascade is defined with \NewDocumentCommand of L3.
 \NewDocumentCommand \Cascade { O { } m m m m D < > { } }
   {
     \if_mode_math:
@@ -104,6 +104,11 @@
     \spread at equation
     \dim_set_eq:NN \l__cascade_interline_dim \l__cascade_interline_all_dim
     \keys_set:nn { cascade / command } { #1 }
+    \tl_if_empty:nF { #6 }
+      {
+        \bool_if:NF \l__cascade_t_bool
+          { \msg_error:nn { cascade } { angular~argument~without~t } }
+      }
     \__cascade_initialisation:
     \hbox_set:Nn \l__cascade_box_one
       {
@@ -141,8 +146,7 @@
             \__cascade_the_vcenter:nn { #2 } { #4 }
             \bool_if:NT \l__cascade_first_argument_bool
               {
-                \dim_set:Nn \l_tmpa_dim
-                  { \box_ht:N \l_tmpb_box + \box_dp:N \l_tmpb_box }
+                \dim_set:Nn \l_tmpa_dim { \box_ht_plus_dp:N \l_tmpb_box }
                 \l_tmpa_dim = 0.5\l_tmpa_dim
                 \dim_add:Nn \l_tmpa_dim { \the \fontdimen 22 \textfont2 }
                 \dim_sub:Nn \l_tmpa_dim
@@ -304,6 +308,12 @@
     in~an~encompassing~command.~If~you~go~on,~this~key~will~be~
     ignored.
   }
+\msg_new:nnn { cascade } { angular~argument~without~t }
+  {
+    You~can't~use~the~argument~between~angular~brackets~because~
+    you~have~not~used~the~key~'t'. The~argument~between~angular~brackets~
+    will~be~ignored.
+  }
 \NewDocumentCommand \ShortCascade { O { } m m }
   { \Cascade [ #1 ] { } { #2 } { } { #3 } }
 \NewDocumentCommand \ShortEdacsac { O { } m m }



More information about the tex-live-commits mailing list.