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 % \ExplSyntaxOn
% \NewDocumentCommand { \mymeta } { O{} m } % \NewDocumentCommand { \mymeta } { O{} m }
% { % {
% \meta[#1]{#2} % \meta{#2}
% \__codedoc_special_index_module:nnnnN { #2 } { #2 } { meta } { usage } { \c_false_bool} % \__codedoc_special_index_module:nnnnN { #2 } { #2 } { meta } { usage } { \c_false_bool}
% } % }
% \ExplSyntaxOff % \ExplSyntaxOff
@ -1832,7 +1832,7 @@
% \begin{macro}{\DeclareTheoremGroupRule} % \begin{macro}{\DeclareTheoremGroupRule}
% \begin{syntax} % \begin{syntax}
% \cs{DeclareTheoremGroupRule}\oarg{keyname}% % \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} % \end{syntax}
% %
% \begin{macrocode} % \begin{macrocode}
@ -1879,6 +1879,17 @@
% \end{macro} % \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{macro}{\@@_flatten_groups_hierarchy:nN}
% \begin{syntax} % \begin{syntax}
@ -2120,12 +2131,12 @@
% %
% \begin{macro} % \begin{macro}
% { % {
% \groupthm_new_grouped_theorem:nnnn, % \groupthm_new_theorem:nnnn,
% \groupthm_new_grouped_theorem:nVVV, % \groupthm_new_theorem:nVVV,
% \groupthm_new_grouped_theorem:xVnn % \groupthm_new_theorem:xVnn
% \groupthm_provide_grouped_theorem:nnnn, % \groupthm_provide_theorem:nnnn,
% \groupthm_provide_grouped_theorem:nVVV, % \groupthm_provide_theorem:nVVV,
% \groupthm_provide_grouped_theorem:xVnn % \groupthm_provide_theorem:xVnn
% } % }
% \begin{syntax} % \begin{syntax}
% \cs{groupthm_new_grouped_theorem:nnnn}\marg{environment name} % \cs{groupthm_new_grouped_theorem:nnnn}\marg{environment name}
@ -2137,15 +2148,31 @@
{ new, provide } { new, provide }
{ grouped ~ theorem } { grouped ~ theorem }
{ ##1 } { ##1 }
\error \@@_error:
\@@_define_theorem:nnnn \@@_define_theorem:nnnn
{ groupthm_#1_grouped_theorem:nnnn } { groupthm_#1_theorem_:nnnn }
{ { ##1 } { ##2 } { ##3 } { ##4 } } { { ##1 } { ##2 } { ##3 } { ##4 } }
\cs_generate_variant:Nn \groupthm_new_grouped_theorem:nnnn { n V V V } \cs_generate_variant:Nn \groupthm_new_grouped_theorem:nnnn { n V V V }
% \end{macrocode} % \end{macrocode}
% We need this extra variant here for the generation of theorem families later: % We need this extra variant here for the generation of theorem families later:
% \begin{macrocode} % \begin{macrocode}
\cs_generate_variant:Nn \groupthm_new_grouped_theorem:nnnn { x V n n } \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{macrocode}
% \end{macro} % \end{macro}
% %
@ -3515,4 +3542,3 @@
% \ExplSyntaxOff % \ExplSyntaxOff
% %
% \newpage % \newpage
% \PrintIndex

View file

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