The title says it. Lets have to counters:
\newcounter{myCount}
\newcounter{anotherCount}
I set myCount to some value for example 10
\setcounter{myCount}{10}
How do I set counter anotherCount to double the value of myCount? I have tried things like
\setcounter{anotherCount}{2\value{myCount}}
and
\setcounter{anotherCount}{2\themyCount}
but non of this works.
\multiply\myCount by 2— this is not a length! – Eddy_Em Jan 15 at 8:09\setcounter{myCount}{10}\setcounter{anotherCount}{\value{myCount}}\addtocounter{anotherCount}{\value{myCount}}\arabic{anotherCount}works, but there must be better (I never use LaTeX counters and just read the first five lines of the documentation). – jfbu Jan 15 at 8:16\theanotherCountcan be used rather than\arabic{anotherCount}to display the result. – jfbu Jan 15 at 8:20