add proper SetItemNumber macro

This commit is contained in:
Maximilian Keßler 2022-01-30 19:35:02 +01:00
parent 0f6a9d112e
commit f3dda43639

View file

@ -4,6 +4,10 @@ __HEADER__(Simple enumeration package wrapper. Handles custom number setting and
\RequirePackage[shortlabels]{enumitem} \RequirePackage[shortlabels]{enumitem}
\RequirePackage{tikz} \RequirePackage{tikz}
\newcommand\setItemnumber[1]{\setcounter{enum\romannumeral\@enumdepth}{\numexpr#1-1\relax}} \newcommand\setItemnumber[1]{\setcounter{enum\romannumeral\@enumdepth}{\numexpr#1-1\relax}}
\NewDocumentCommand{\SetItemNumber}{m}
{
\setcounter{enum\romannumeral\@enumdepth}{\numexpr#1-1\relax}
}
\def__PACKAGE_MACRO__(drawcircle)#1{ \def__PACKAGE_MACRO__(drawcircle)#1{
\tikz[baseline=(char.base)]{ \tikz[baseline=(char.base)]{