1

I would like to be able to use the enumerate command, but I want to begin my numbers at a number other than one. I would also like to be able to increment my numbers however I want to.

Example:

9.

10.

12.

18.

Is there a way to do this? Thanks so much in advance.

3 Answers3

4

The number displayed in an enumerate environment is controlled with the enumi counter. If the enumerate is nested in another one, the counter used is rather enumii, and so on.

For example,

\documentclass{article}
\begin{document}
\begin{enumerate}
    \setcounter{enumi}{8}
    \item First item
    \item Second item
    \stepcounter{enumi}
    \item Third item
    \setcounter{enumi}{17}
    \item Fourth item
    \begin{enumerate}
        \item First subitem
        \setcounter{enumii}{5}
        \item Second subitem
        \item Third subitem
    \end{enumerate}
\end{enumerate}
\end{document}

Also, keep in mind that you can always specify manually the label of the item between square brackets. For example, the last output is the same if the lines

    \setcounter{enumi}{17}
    \item Fourth item

are replaced with

    \item[18] Fourth item
Vincent
  • 20,157
4

You can define a command that sets the next value:

\documentclass{article}

\makeatletter
\newcommand{\nextnumber}[1]{%
  \setcounter{\@enumctr}{\numexpr#1-1}%
}
\makeatother

\begin{document}

\begin{enumerate}
\nextnumber{9}
\item This is text
\item This is text
\nextnumber{12}
\item This is text
\nextnumber{18}
\item This is text
  \begin{enumerate}
  \nextnumber{3}
  \item This is text
  \nextnumber{9}
  \item This is text
  \end{enumerate}
\nextnumber{24}
\item This is text
\end{enumerate}

\end{document}

enter image description here

egreg
  • 1,121,712
1

The simplest way is writing desired item number by hand:

\documentclass{article}
\usepackage{enumerate}

%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%

\begin{document}
    \begin{enumerate}
\item[9.]
\item[10.]
\item[12.]
\item[18.]
    \end{enumerate}
\end{document}
Zarko
  • 296,517