> ## Content Index
> Fetch the complete content index at: https://soundandcomplete.mymagic.page/llms.txt
> Use this file to discover other available public pages before exploring further.

# Continuous list enumeration throughout the document with LaTeX
- URL: https://soundandcomplete.mymagic.page/2010/continuous-list-enumeration-throughout-the-document-with-latex/
- Published: 2010-06-28T00:00:00.000Z
- Updated: 2026-12-01T13:39:14.000Z
- Author: Piotr Kaźmierczak
- Tags: LaTeX, Leuven, Vlaams-Brabant

Karolina asked me today to create a macro for having a continuous list enumeration throughout the whole document, i.e.

> This is the first list:Item;Another item;  
>  
> And here goes the second list:Third item;And yet another item.

You can obtain an effect like that by using LaTeX counters and a custom definition of your own enumerate environment. First, we need to `\usepackage{enumerate}`, and then define the following counter and an environment in the preamble:

```latex
\newcounter{enumi_saved}

\newenvironment{myenumerate} {
    \begin{enumerate}\setcounter{enumi}{\value{enumi_saved}}}
    {\setcounter{enumi_saved}{\value{enumi}}\end{enumerate}}
```

After that, you can use `myenumerate` and you’ll have a continuous enumeration in the whole document.

Oh and some credits: I wouldn’t come up with a solution if I haven’t read [this](http://texblog.wordpress.com/2007/07/25/counters-in-latex/) post, and [this](http://www.f.kth.se/~ante/latex.php) website. Huge thanks to the authors for their tips!