2022-01-16 23:56:03 +01:00
|
|
|
\documentclass{article}
|
|
|
|
|
|
|
|
\usepackage[enable-debug]{expl3}
|
|
|
|
|
|
|
|
\ExplSyntaxOn
|
|
|
|
\debug_on:n { all }
|
|
|
|
\ExplSyntaxOff
|
|
|
|
|
|
|
|
\usepackage{mkessler-groupthm}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\NewGroupedTheorem
|
|
|
|
[
|
2022-01-16 23:58:52 +01:00
|
|
|
group = {dagger, star}
|
2022-01-16 23:56:03 +01:00
|
|
|
]{test}
|
|
|
|
|
|
|
|
|
|
|
|
\GenerateTheoremVariants[ group = {star, dagger} ]{example}
|
|
|
|
|
|
|
|
\DeclareTheoremVariants{example} { !s !t+ }
|
|
|
|
{
|
|
|
|
\IfBooleanT{#1}
|
|
|
|
{
|
|
|
|
\AddTheoremToGroup { star }
|
|
|
|
}
|
|
|
|
\IfBooleanT{#2}
|
|
|
|
{
|
|
|
|
\AddTheoremToGroup { dagger }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
|
|
|
|
|
|
|
|
\begin{example}
|
|
|
|
test
|
|
|
|
\end{example}
|
|
|
|
|
|
|
|
\begin{example}+
|
|
|
|
test
|
|
|
|
\end{example}
|
|
|
|
|
|
|
|
\begin{example}*
|
|
|
|
test
|
|
|
|
\end{example}
|
|
|
|
|
|
|
|
\begin{example}*+
|
|
|
|
test
|
|
|
|
\end{example}
|
|
|
|
|
|
|
|
\begin{example*}
|
|
|
|
test
|
|
|
|
\end{example*}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\end{document}
|