So I am trying to automate a counter using new counter and \refstepcounter. However I would like to print the number of the counter and the code below does not seem to word. Any idea why?
\newcounter{taskcounter}
\stepcounter{taskcounter}
\refstepcounter{taskcounter}
\thetaskcounterto print it. Note that stepcounter and refstepcounter both step up the value by one. The ref version just adds extra code such that\labelcan pick up the value. – daleif May 22 '18 at 19:26