Amedeo” post=84272Buongiorno a tutti,
prima di proporre il mio problema ho cercato un pò in giro senza trovare una risposta definitiva. Si tratta di comporre una lista molto lunga e numerata alfabeticamente:
————————————————————
\documentclass{book}\usepackage{enumerate,enumitem}
\begin{document}
\begin{enumerate}[label=\alph*.]
\item \underline{alfa} – {Descrizione};
\setcounter{enumi}{25}
\item \underline{beta} – {Descrizione};
\item \underline{gamma} – {Descrizione};
\end{enumerate}
\end{document}
————————————————————–Alla compilazione viene prodotto il messaggio “LaTeX Error: Counter too large” per l’item “gamma”. Ho letto che potrei usare il package “alphalph” inserendo, nel corpo della enumerazione, la ridefinizione:
\def\theenumi{\alphalph{\value{enumi}}}
ma l’errore continua a presentarsi. E’ da notare che il problema si presenta solo utilizzando il package “numitem”; utilizzando solo “enumerate”, infatti, non ho problemi ma le etichette degli item eccedono sul margine sinistro (codice di seguito ed esito in allegato):
—————————————————–
\documentclass{book}\usepackage{enumerate}
\usepackage{alphalph}\begin{document}
\begin{enumerate}[{Voce }a.]
\def\theenumi{\alphalph{\value{enumi}}}
\item \underline{alfa} – {Descrizione};
\setcounter{enumi}{25}
\item \underline{beta} – {Descrizione};
\item \underline{gamma} – {Descrizione};
\end{enumerate}\end{document}
———————————————————-Qualcuno ha un suggerimento da dare?
Grazie
ag
Ciao, quanto deve essere lungo l’elenco?
Il seguente codice non mi da errori:
`% !TEX TS-program = pdflatex
% !TEX encoding = UTF-8 Unicode
% This is a simple template for a LaTeX document using the “article” class.
% See “book”, “report”, “letter” for other types of document.
\documentclass[11pt]{article} % use larger type; default would be 10pt
\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
%%% Examples of Article customizations
% These packages are optional, depending whether you want the features they provide.
% See the LaTeX Companion or other references for full information.
%%% PAGE DIMENSIONS
\usepackage{geometry} % to change the page dimensions
\geometry{a4paper} % or letterpaper (US) or a5paper or….
% \geometry{margin=2in} % for example, change the margins to 2 inches all round
% \geometry{landscape} % set up the page for landscape
% read geometry.pdf for detailed page layout information
% \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
%%% PACKAGES
%\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{enumitem}
\usepackage{lipsum}
%%% END Article customizations
%%% The “real” document content comes below…
\title{Brief Article}
\author{The Author}
%\date{} % Activate to display a given date or no date (if empty),
% otherwise the current date is printed
\begin{document}
\begin{enumerate}[label=\alph*.]
\item \underline{alfa} – {Descrizione};
\setcounter{enumi}{24}
\item \underline{beta} – {Descrizione};
\item \underline{gamma} – {Descrizione};
\end{enumerate}
\lipsum[1-5]
\end{document}`