Text FormattingHow to change the enumerate numbering

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
turbomac
Posts: 34
Joined: Sat Oct 10, 2009 9:38 pm

How to change the enumerate numbering

Post by turbomac »

Hi everyone :)

I'm writing a question sheet for my students, but I have a problem with enumerate environment. I've tried a lot of things that I've found in the web and even in the forum.
Here is a part of the code

Code: Select all

\begin{questions}

\begin{section}{Title} %just a title


\question Use the \emph{if-elseif-else-end} block to determine which... blabla

\question blablablablablabblablala
\question blablablablablablablablablabblablala

\question blablabla: % here is my problem
\begin{enumerate} 
 \item First sub question
\item Second sub question
\item Third sub question
\end{enumerate}

\end{section}
...
The numbering of that enumerated list appears with numbers and I want it with letters. Any suggestions??
How do I change the numbering style of the enumerate lists??
Thanks in advance.

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How to change the enumerate numbering

Post by localghost »

You can redefine the labels of itemized lists like the enumerate environment by hand or use the enumitem package. But for your purpose I think the exam class is the better solution. It offers many mechanisms for customization.


Best regards
Thorsten
turbomac
Posts: 34
Joined: Sat Oct 10, 2009 9:38 pm

How to change the enumerate numbering

Post by turbomac »

localghost wrote:You can redefine the labels of itemized lists like the enumerate environment by hand or use the enumitem package. But for your purpose I think the exam class is the better solution. It offers many mechanisms for customization.


Best regards
Thorsten
Yeah, I'm using the exam document class. But I found a solution.

Code: Select all

\usepackage{enumerate}
\begin{document}
\begin{enumerate}[(a)]
\item blabla
\item blabla
\end{enumerate}
\end{document}
Thanks anyway!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How to change the enumerate numbering

Post by localghost »

I think Section 5.10 (Customizing the numbers, p. 35f) of the exam class manual is the better reference thus preferable.
Post Reply