redesign some interfaces

This commit is contained in:
Maximilian Keßler 2022-01-22 14:09:40 +01:00
parent 06bcb6cf10
commit 83ba094203
2 changed files with 43 additions and 16 deletions

View File

@ -49,7 +49,7 @@
% \ExplSyntaxOn
% \NewDocumentCommand { \mymeta } { O{} m }
% {
% \meta[#1]{#2}
% \meta{#2}
% \__codedoc_special_index_module:nnnnN { #2 } { #2 } { meta } { usage } { \c_false_bool}
% }
% \ExplSyntaxOff
@ -1832,7 +1832,7 @@
% \begin{macro}{\DeclareTheoremGroupRule}
% \begin{syntax}
% \cs{DeclareTheoremGroupRule}\oarg{keyname}%
% \marg{theorem group 1}\marg{relation}\marg{theorem group 2}
% \marg{theorem group_1}\marg{relation}\marg{theorem group_2}
% \end{syntax}
%
% \begin{macrocode}
@ -1879,6 +1879,17 @@
% \end{macro}
%
%
% \begin{macro}{\@@_push_tmpa_seq:n}
% \begin{syntax}
% \cs{@@_push_tmpa_seq:n}\marg{balanced text}
% \end{syntax}
%
%
%
% \begin{macrocode}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@@_flatten_groups_hierarchy:nN}
% \begin{syntax}
@ -2120,12 +2131,12 @@
%
% \begin{macro}
% {
% \groupthm_new_grouped_theorem:nnnn,
% \groupthm_new_grouped_theorem:nVVV,
% \groupthm_new_grouped_theorem:xVnn
% \groupthm_provide_grouped_theorem:nnnn,
% \groupthm_provide_grouped_theorem:nVVV,
% \groupthm_provide_grouped_theorem:xVnn
% \groupthm_new_theorem:nnnn,
% \groupthm_new_theorem:nVVV,
% \groupthm_new_theorem:xVnn
% \groupthm_provide_theorem:nnnn,
% \groupthm_provide_theorem:nVVV,
% \groupthm_provide_theorem:xVnn
% }
% \begin{syntax}
% \cs{groupthm_new_grouped_theorem:nnnn}\marg{environment name}
@ -2137,15 +2148,31 @@
{ new, provide }
{ grouped ~ theorem }
{ ##1 }
\error
\@@_error:
\@@_define_theorem:nnnn
{ groupthm_#1_grouped_theorem:nnnn }
{ groupthm_#1_theorem_:nnnn }
{ { ##1 } { ##2 } { ##3 } { ##4 } }
\cs_generate_variant:Nn \groupthm_new_grouped_theorem:nnnn { n V V V }
% \end{macrocode}
% We need this extra variant here for the generation of theorem families later:
% \begin{macrocode}
\cs_generate_variant:Nn \groupthm_new_grouped_theorem:nnnn { x V n n }
% \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\groupthm_new_theorem:nnnnnn}
% \begin{syntax}
% \cs{groupthm_new_theorem:nnnnnn}\marg{key=value list}\marg{grouped theorem}
% \marg{bool}
% \end{syntax}
%
%
% The third argument indicates whether the generated theorem(s) will be added to the
% \texttt{unnumbered} group
%
% \begin{macrocode}
% \end{macrocode}
% \end{macro}
%
@ -3515,4 +3542,3 @@
% \ExplSyntaxOff
%
% \newpage
% \PrintIndex

View File

@ -380,6 +380,7 @@
{
\groupthm_add_parent:nn { #1 } { #2 }
}
\cs_new:Npn \__groupthm_push_tmpa_seq:n #1
{
\seq_push:Nn \l_tmpa_seq { #1 }