With the progressbar package, I want to show bars on pages depending on a counter.
Progressbar works like:
\progressbar{0.7}
I use the calc package anyway, so I thought it should be easy to calculate the ratio for the bar for each page, like this:
\newcounter{y}
\setcounter{y}{5 / 1} % check that calc is working
\newcounter{total}
\setcounter{total}{30}
But, none of the below seem to work:
\progressbar{\value{y}/\value{total}}\\
\progressbar{\value{y} / \value{total}}\\
\progressbar{\they{}/\thetotal{}}\\
I get the error: Illegal unit of measure (pt inserted).
What am I doing wrong?