0

In an article, several sections have an enumerate environment. What is the easiest way to let the counter continue across all the different environments?

It is obviously possible to use

\begin{enumerate}   
\setcounter{enumi}{5}    % last item of previous enumerate

at the start of every subsequent environment, but then one has to change all these numbers in the subsequent environments whenever an item is added in some section. Is there a better, automatic and simple way to do this?

5
  • 5
    The enumitem package has a resume key for that.
    – user194703
    Commented Mar 20, 2020 at 7:23
  • This must be the record for answer speed - thank you!
    – user64520
    Commented Mar 20, 2020 at 7:26
  • 1
    Yes, it has been answered almost 10 lease ago. ;-) tex.stackexchange.com/q/1669
    – user194703
    Commented Mar 20, 2020 at 7:28
  • 3
    @Schrödinger'scat can answer and not answer your question at the same time ... but you can never guess both his speed and position !
    – BambOo
    Commented Mar 20, 2020 at 7:35
  • That exactly what linguex package does, but without using environments (easy typing).
    – Fran
    Commented Mar 20, 2020 at 9:54

0