LyXenumitem | Long Lists

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
auvajs
Posts: 22
Joined: Wed Dec 21, 2011 11:21 pm

enumitem | Long Lists

Post by auvajs »

Code: Select all

\usepackage{enumitem}
\setenumerate{label=\arabic*}
\setenumerate[2]{label=\alph*)}
I use enumitem for lists as quoted. In the case of letters (\alph*) it prints a), b), c) etc. till z). Then it ends with error, no more elements can't be added to the list. However I want to make a list ordered by litters with more than 26 elements. How to do this?

I imagine that after 26 letters of the alphabet are used, obtions aa), ab), ac).. az), ba), bb), bc) etc. etc. follow. Then if a very long list (more than 26^2 elements), aaa), aab), aac) etc. should follow.
Last edited by auvajs on Sun Jan 15, 2012 4:11 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
marco_d
Posts: 57
Joined: Tue Jan 20, 2009 7:49 pm

enumitem | Long Lists

Post by marco_d »

Use the package alphalph from the oberdiek bundle.

Code: Select all

\documentclass[]{article}
\usepackage{alphalph}
\usepackage{enumitem}

\makeatletter
\def\enumalphalphcnt#1{\expandafter\@enumalphalphcnt\csname c@#1\endcsname}
\def\@enumalphalphcnt#1{\alphalph{#1}}
\makeatother
\AddEnumerateCounter{\enumalphalphcnt}{\@enumalphalphcnt}{aa}
\setenumerate{label=\arabic*}
\setenumerate[2]{label=\enumalphalphcnt*)}
\begin{document}
\begin{enumerate}
\item foo
\item bar
\item next level
\begin{enumerate}
\item foo \item bar \item foo
\item bar \item foo \item bar
\item foo \item bar \item foo
\item bar \item foo \item bar
\item foo \item bar \item foo
\item bar \item foo \item bar
\item foo \item bar \item foo
\item bar \item foo \item bar
\item foo \item bar \item foo
\item bar \item foo \item bar
\item foo \item bar \item foo
\item bar \item foo \item bar
\item foo \item bar \item foo
\item bar \item foo \item bar
\item foo \item bar \item foo
\item bar \item foo \item bar
\end{enumerate}
\end{enumerate}
\end{document}

Marco
i am German. I can not use difficult words. :-)
auvajs
Posts: 22
Joined: Wed Dec 21, 2011 11:21 pm

Re: enumitem | Long Lists

Post by auvajs »

Thank you Marco, it works well. :)
Post Reply