0

I want to use enumerate to number a text as:

\begin{enumerate}
    3.1
    3.2
    3.3
    3.4
\end{enumerate}

\begin{enumerate}
    4.1
    4.2
    4.3
\end{enumerate}

Thank you.

3
  • I'm afraid your objective is not entirely clear. For instance, what is a "session number"?
    – Mico
    Jan 28, 2020 at 18:10
  • 1
    Do you mean section number?
    – egreg
    Jan 28, 2020 at 18:12
  • Could you add a mininal working example showing how you intend to use this. I'll help us to answer your request. Jan 28, 2020 at 20:20

1 Answer 1

2

I'm not totally sure that I understood your question correctly, but I think the following should fit your needs.

\documentclass{article}
\usepackage{enumitem}
\newcounter{session}
\newlist{myenumerate}{enumerate}{1}
\setlist[myenumerate]{%
    label=\arabic{session}.\arabic{*},
    before=\stepcounter{session}
}

\begin{document}

First enumeration:
\begin{myenumerate}
    \item
    \item
    \item
    \item
\end{myenumerate}

Second enumeration:
\begin{myenumerate}
    \item
    \item
    \item
\end{myenumerate}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.