Text FormattingLatex Error: Counter too large: Latex multilevel list

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
mkhasan
Posts: 1
Joined: Fri Jun 24, 2022 8:24 pm

Latex Error: Counter too large: Latex multilevel list

Post by mkhasan »

I am using multilevel list in latex with the following:

Code: Select all

\documentclass[10pt]{article}
\usepackage{enumerate,etaremune}
\usepackage{amssymb,bibentry}
\usepackage{epstopdf}
\usepackage{paralist, soul}
\usepackage{pgffor}

\renewcommand{\labelenumiii}{\arabic{enumiii}.}

\begin{document}

    \begin{enumerate}
        \item Lavel 1
        \begin{enumerate}
            \item Lavel 2
            \begin{etaremune}
                \item Lavel 3
                \begin{etaremune}
                    \foreach \x in {1,...,30} {%
                         \item Item \x 
                        }
                \end{etaremune} 
            \end{etaremune} 
        
        \end{etaremune} 
    \end{etaremune} 
\end{document}
As I have more than 26 items at level 4, it shows dots after showing Z. Here is a screenshot showing the issue:

Image

Any suggestions on how to continue with the item numbering at level 4 (i.e., AA, AB) instead of showing dots. Thank you.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Kreuz Elf
Posts: 22
Joined: Thu Mar 04, 2021 7:33 pm

Latex Error: Counter too large: Latex multilevel list

Post by Kreuz Elf »

hi, i think there are multiple problems with your code. For example: Simply don't use this for-loop thing at least while testing, it is definitely not compilable. Second: You used a {etarenume} closing for the first two {enumerate} openings, which of course isn't compilable, either (as far as this goes: please post pictures that really relate to your posted code; I don't believe, that you actually got that pdf from your posted code).

Maybe try something like this (it is at least compilable on my system and the dots you are complaining about aren't there anymore):

Code: Select all

\documentclass[10pt]{article}
\usepackage{enumerate,etaremune}
\usepackage{amssymb,bibentry}
\usepackage{epstopdf}
\usepackage{paralist, soul}
\usepackage{pgffor}

\renewcommand{\labelenumiii}{\arabic{enumiii}.}

\begin{document}
    \begin{enumerate}
        \item Lavel 1
        \begin{enumerate}
            \item Lavel 2
            \begin{etaremune}
                \item Lavel 3
                \begin{etaremune}
                         \item Item 1
                         \item Item 2
                         \item Item 3
                         \item Item 4
                         \item Item 5
                         \item Item 6
                         \item Item 7
                         \item Item 8
                         \item Item 9
                         \item Item 10
                \end{etaremune}
            \end{etaremune}
        \end{enumerate}
    \end{enumerate}
\end{document}
wkr, Kreuz Elf

P.S.: its "Level" in english.
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Latex Error: Counter too large: Latex multilevel list

Post by rais »

The alphalph package can be used to expand the range beyond 1..26 for such numbers. Then it even works with the \foreach loop:

Code: Select all

\documentclass[10pt]{article}
\usepackage{enumerate,etaremune}
\usepackage{pgffor}
\usepackage{alphalph}%<--

\renewcommand{\labelenumiii}{\arabic{enumiii}.}
\renewcommand*\theenumiv{\AlphAlph{\value{enumiv}}}%<--

\begin{document}
    \begin{enumerate}
        \item Lavel 1
        \begin{enumerate}
            \item Lavel 2
            \begin{etaremune}
                \item Lavel 3
                \begin{etaremune}
                    \foreach \x in {1,...,30} {%
                         \item Item \x 
                        }
                \end{etaremune}
            \end{etaremune}
        \end{enumerate}
    \end{enumerate}
\end{document}
KR
Rainer
Post Reply