summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/cascade/cascade.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/cascade/cascade.dtx')
-rw-r--r--macros/latex/contrib/cascade/cascade.dtx74
1 files changed, 26 insertions, 48 deletions
diff --git a/macros/latex/contrib/cascade/cascade.dtx b/macros/latex/contrib/cascade/cascade.dtx
index 3112dab314..8ccc24de98 100644
--- a/macros/latex/contrib/cascade/cascade.dtx
+++ b/macros/latex/contrib/cascade/cascade.dtx
@@ -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,35 +62,6 @@ version 2005/12/01 or later.
\skip\footins = 2\bigskipamount
-\EnableCrossrefs
-\makeatletter
-\ExplSyntaxOn
-\DoNotIndex{\begin,\end}
-\DoNotIndex{\c@iRow,\c@jCol,\theiRow,\thejCol}
-\DoNotIndex{\pgfpicture,\endpgfpicture,\tikzpicture,\endtikzpicture}
-\DoNotIndex{\pgfpoint,\pgfnode,\pgfnodealias,\pgfcoordinate}
-\DoNotIndex{\pgf@x,\pgf@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}
@@ -157,7 +128,7 @@ version 2005/12/01 or later.
% \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 @@ version 2005/12/01 or later.
%
% \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 @@ version 2005/12/01 or later.
\spread@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 @@ version 2005/12/01 or later.
% \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 @@ version 2005/12/01 or later.
% \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 @@ version 2005/12/01 or later.
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 @@ version 2005/12/01 or later.
% \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}