2022-01-16 23:56:03 +01:00
|
|
|
\documentclass{article}
|
|
|
|
|
|
|
|
\usepackage[enable-debug]{expl3}
|
2022-01-17 00:20:14 +01:00
|
|
|
\usepackage[default styles]{mkessler-thmstyle}
|
2022-01-16 23:56:03 +01:00
|
|
|
|
|
|
|
\ExplSyntaxOn
|
|
|
|
\debug_on:n { all }
|
|
|
|
\ExplSyntaxOff
|
|
|
|
|
|
|
|
\usepackage{mkessler-groupthm}
|
|
|
|
|
2022-01-17 00:20:14 +01:00
|
|
|
\mdfdefinestyle{green}{
|
|
|
|
linecolor=green,
|
|
|
|
linewidth = 2pt,
|
|
|
|
leftmargin = 0cm,
|
|
|
|
rightmargin=0cm,
|
|
|
|
rightline=false,
|
|
|
|
topline=false,
|
|
|
|
bottomline=false
|
|
|
|
}
|
|
|
|
|
|
|
|
\declaretheoremstyle[
|
|
|
|
mdframed={style=green}
|
|
|
|
]{green}
|
|
|
|
|
|
|
|
\GenerateTheoremVariants
|
|
|
|
[
|
|
|
|
group = {star, dagger},
|
|
|
|
thmtools = { style = thmgreenmargin }
|
|
|
|
]{example}
|
2022-01-16 23:56:03 +01:00
|
|
|
|
|
|
|
\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}
|