introduce clist to save parents for group
This commit is contained in:
parent
3d5abe9f79
commit
b934e14708
2 changed files with 14 additions and 1 deletions
|
@ -1415,7 +1415,13 @@
|
||||||
% \begin{macrocode}
|
% \begin{macrocode}
|
||||||
\@@_add_to_group_ordering:n { #1 }
|
\@@_add_to_group_ordering:n { #1 }
|
||||||
% \end{macrocode}
|
% \end{macrocode}
|
||||||
|
% \begin{variable}{ \g_@@_parents_group__\meta{theorem group}__clist }
|
||||||
%
|
%
|
||||||
|
% This variable will accumulate the parents of this group:
|
||||||
|
% \begin{macrocode}
|
||||||
|
\clist_new:c { g_@@_parents_group__#1__clist }
|
||||||
|
% \end{macrocode}
|
||||||
|
% \end{variable}
|
||||||
% Add defined group to corresponding list
|
% Add defined group to corresponding list
|
||||||
%
|
%
|
||||||
% \begin{macrocode}
|
% \begin{macrocode}
|
||||||
|
@ -1460,6 +1466,11 @@
|
||||||
\clist_gremove_all:Nn \g_@@_defined_groups_clist { #1 }
|
\clist_gremove_all:Nn \g_@@_defined_groups_clist { #1 }
|
||||||
% \end{macrocode}
|
% \end{macrocode}
|
||||||
%
|
%
|
||||||
|
% Delete the known parents of this group:
|
||||||
|
% \begin{macrocode}
|
||||||
|
\cs_undefine:c { g_@@_parents_group__#1__clist }
|
||||||
|
% \end{macrocode}
|
||||||
|
%
|
||||||
% Now, unset all relations with all defined theorem groups in the internal hooks.
|
% Now, unset all relations with all defined theorem groups in the internal hooks.
|
||||||
%
|
%
|
||||||
% \begin{macrocode}
|
% \begin{macrocode}
|
||||||
|
|
|
@ -183,6 +183,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\__groupthm_add_to_group_ordering:n { #1 }
|
\__groupthm_add_to_group_ordering:n { #1 }
|
||||||
|
\clist_new:c { g__groupthm_parents_group__#1__clist }
|
||||||
\clist_gput_left:Nn \g__groupthm_defined_groups_clist { #1 }
|
\clist_gput_left:Nn \g__groupthm_defined_groups_clist { #1 }
|
||||||
}
|
}
|
||||||
\cs_new:Npn \__groupthm_undefine_group:n #1
|
\cs_new:Npn \__groupthm_undefine_group:n #1
|
||||||
|
@ -194,6 +195,7 @@
|
||||||
\hook_gremove_code:nn { __groupthm/mapname } { #1 }
|
\hook_gremove_code:nn { __groupthm/mapname } { #1 }
|
||||||
\hook_gremove_code:nn { __groupthm/thmtools } { #1 }
|
\hook_gremove_code:nn { __groupthm/thmtools } { #1 }
|
||||||
\clist_gremove_all:Nn \g__groupthm_defined_groups_clist { #1 }
|
\clist_gremove_all:Nn \g__groupthm_defined_groups_clist { #1 }
|
||||||
|
\cs_undefine:c { g__groupthm_parents_group__#1__clist }
|
||||||
\__groupthm_hook_gset_rule_foreach:nNnn
|
\__groupthm_hook_gset_rule_foreach:nNnn
|
||||||
{ ?? }
|
{ ?? }
|
||||||
\g__groupthm_defined_groups_clist
|
\g__groupthm_defined_groups_clist
|
||||||
|
|
Loading…
Reference in a new issue