Ok, since this question seems to be pretty easy (well I still don't know the answer and didn't find something on this site), I'll try it without MWE: I'd like to know how to change the number of items in enumerate
environments. Most appreciated would be solutions without additional packages or such…
\begin{enumerate}
\item The fifth item
\item The seventh item
\end{enumerate}
This should result in
5. The fifth item
7. The seventh item
and not in the normal items numbered 1 and 2. It probably has to do something with counters!?
Best Answer
Set the
enumi
counter and do it through a command for easiness (for a more general answer, see below):Since the previous definition of the command uses
enumi
, the defined command\setItemnumber
will only work for the first level for nestedenumerate
s. Using the\@enumdepth
counter (controlling the nesting depth for enumerated lists), the command can be improved so as to be used for every level in nested enumerations:The result:
Use the optional argument for
\item
(but you loose in this way the possibility to do cross-references to those items):