# Enumerate based on session number

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.

• I'm afraid your objective is not entirely clear. For instance, what is a "session number"?
– Mico
Jan 28, 2020 at 18:10
• Do you mean section number? 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

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}