41 lines
1.4 KiB
Text
41 lines
1.4 KiB
Text
__HEADER__(Simple enumeration package wrapper. Handles custom number setting and beamer class.)
|
|
|
|
\@ifclassloaded{beamer}{}{
|
|
\RequirePackage[shortlabels]{enumitem}
|
|
\RequirePackage{tikz}
|
|
\newcommand\setItemnumber[1]{\setcounter{enum\romannumeral\@enumdepth}{\numexpr#1-1\relax}}
|
|
|
|
\def__PACKAGE_MACRO__(drawcircle)#1{
|
|
\tikz[baseline=(char.base)]{
|
|
\node[shape=circle,draw,inner sep=2pt] (char) {#1};
|
|
}
|
|
}
|
|
|
|
\def__PACKAGE_MACRO__(circled){
|
|
\protect__PACKAGE_MACRO__(drawcircle){\arabic*}
|
|
}
|
|
\def__PACKAGE_MACRO__(property){
|
|
(\roman*)
|
|
}
|
|
\def__PACKAGE_MACRO__(equivalent){
|
|
(\arabic*)
|
|
}
|
|
\def__PACKAGE_MACRO__(holds){
|
|
\arabic*)
|
|
}
|
|
|
|
\SetEnumerateShortLabel{c}{__PACKAGE_MACRO__(circled)}
|
|
\SetEnumerateShortLabel{p}{__PACKAGE_MACRO__(property)}
|
|
\SetEnumerateShortLabel{e}{__PACKAGE_MACRO__(equivalent)}
|
|
\SetEnumerateShortLabel{h}{__PACKAGE_MACRO__(holds)}
|
|
|
|
\SetEnumitemValue{label}{circled}{__PACKAGE_MACRO__(circled)}
|
|
\SetEnumitemValue{label}{property}{__PACKAGE_MACRO__(property)}
|
|
\SetEnumitemValue{label}{equivalent}{__PACKAGE_MACRO__(equivalent)}
|
|
\SetEnumitemValue{label}{holds}{__PACKAGE_MACRO__(holds)}
|
|
|
|
\SetEnumitemKey{property}{label=property}
|
|
\SetEnumitemKey{equivalent}{label=equivalent}
|
|
\SetEnumitemKey{holds}{label=holds}
|
|
\SetEnumitemKey{circled}{label=circled}
|
|
}
|