I know that I can set the counter from the enumerate environment by using
\setcounter{enumi}{}
But I want to increase the count enumerate does each time there is a new item.
i.e. 120 130 140 150 instead of 120 121 123 124
can someone help?
Thanks!
\setcounter{enumi}{}
NEW: TikZ book now 40% off at Amazon.com for a short time.
\numexpr
to set \theenumi
(which is used to typeset the formatted counter value) to multiply the enumi
counter by 10. Note that the argument of \numexpr
should be ended with \relax
which will be gobbled by \numexpr
but ensure that it doesn't scan further ahead for possible numbers. Note also that in order to typeset the number calculated by \numexpr
it must be preceded with \the
.Code: Select all
\documentclass{article}
\begin{document}
\renewcommand*\theenumi{\the\numexpr(\value{enumi}*10)\relax}
\begin{enumerate}
\item foo
\item bar
\item baz
\end{enumerate}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.