GeneralEnumerate environment - start numbering from a different val

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
serg.kr
Posts: 6
Joined: Sat Jul 28, 2007 9:23 am

Enumerate environment - start numbering from a different val

Post by serg.kr »

Hello,

I'm somewhat new to LaTeX. I'm wondering if it is possible to start numbering from a different starting value in the enumerate environment. I have a situation similar to the following:

Code: Select all

\chapter{}
\begin{enumerate}
\item One
\item Two
\item Three
\end{enumerate}

\chapter{}
\begin{enumerate}
\item Four
\item Five
\item Six
\end{enumerate}
As you can see, the numbered list spans over several chapters. Is there anything I can do in the second list to pick up where I left off from the list in the previous chapter?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Enumerate environment - start numbering from a different val

Post by localghost »

Just try the enumitem package. It lets you customize those environments very easy.

Code: Select all

\documentclass[12pt,a4paper]{article}
\usepackage{blindtext}
\usepackage{enumitem}

\begin{document}
  \begin{enumerate}
    \item One
    \item Two
    \item Three
  \end{enumerate}
  \blindtext
  \begin{enumerate}[resume]
    \item Four
    \item Five
    \item Six
  \end{enumerate}
\end{document}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
serg.kr
Posts: 6
Joined: Sat Jul 28, 2007 9:23 am

Re: Enumerate environment - start numbering from a different val

Post by serg.kr »

Thanks for the help! That did exactly what I wanted.
dustbinbear
Posts: 19
Joined: Wed Jan 17, 2007 11:42 am

Re: Enumerate environment - start numbering from a different val

Post by dustbinbear »

just a quick post I need to rush a report by tommorow and I face such problems too. I hope you

Does it also support things like

4.5

4.6?

I'm currently converting my team mates use cases into LaTeX format and I'm stuck at representing alternative paths. Where I had to start enumerate a a different number like this:

main path:

1.
2.
3.
4.
5.

Alternative path

2.1 <---how!
2.2

and how do you do it thanks!
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Enumerate environment - start numbering from a different val

Post by localghost »

It seems the package itself doesn't support this. But you can redefine the counter by yourself.

Code: Select all

\begin{enumerate}
  \item One
  \begin{enumerate}
    \renewcommand{\labelenumii}{\theenumi.\arabic{enumii}}
    \item one point one
    \item one point two
  \end{enumerate}
  \item Two
\end{enumerate}
Last edited by localghost on Sun Jul 29, 2007 9:14 pm, edited 1 time in total.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
dustbinbear
Posts: 19
Joined: Wed Jan 17, 2007 11:42 am

Re: Enumerate environment - start numbering from a different val

Post by dustbinbear »

haven't tried but but thanks localghost as always. :)

you are very helpful.
Post Reply