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
@ -969,10 +969,10 @@
%
% \begin{macrocode}
\cs_new:Npn \@@_thmtools_declare_theorem:nn #1 #2
{
\tl_log:n { Declaring ~ thmtools ~ theorem ~ #2 }
\declaretheorem [ #1 ] { #2 }
}
{
\tl_log:n { Declaring ~ thmtools ~ theorem ~ #2 }
\declaretheorem [ #1 ] { #2 }
}
\cs_generate_variant:Nn \@@_thmtools_declare_theorem:nn { V n }
% \end{macrocode}
% \end{macro}
@ -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}
@ -1878,7 +1878,18 @@
% \end{macrocode}
% \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,9 +2148,9 @@
{ 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}
@ -2150,6 +2161,22 @@
% \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}
%
%
% The star variants of these that add the \texttt{unnumbered} group
% are straightforward:
%
@ -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 }