From f3dda4363963035d5d3e9b3e7406d3534942a985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sun, 30 Jan 2022 19:35:02 +0100 Subject: [PATCH] add proper SetItemNumber macro --- src/wrappers/enumerate/enumerate.pysty | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wrappers/enumerate/enumerate.pysty b/src/wrappers/enumerate/enumerate.pysty index 546a4d8..e85edd7 100644 --- a/src/wrappers/enumerate/enumerate.pysty +++ b/src/wrappers/enumerate/enumerate.pysty @@ -4,6 +4,10 @@ __HEADER__(Simple enumeration package wrapper. Handles custom number setting and \RequirePackage[shortlabels]{enumitem} \RequirePackage{tikz} \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{ \tikz[baseline=(char.base)]{