Reputation: 1897
I have the following LaTeX code:
\begin{enumerate}[label={(\alph*)}]
\item These are the animals in the park:
\begin{enumerate}
\item Dog
\item Cat
\item Zebra
\end{enumerate}
\item These are the people in the park:
\begin{enumerate}
\item Jim
\item Pete
\item Carol
\end{enumerate}
\end{enumerate}
My output is like this:
(a) These are the animals in the park
(a) Dog
(b) Cat
(c) Zebra
(b) These are the people in the park:
(a) Jim
(b) Pete
(c) Carol
But I want this:
(a) These are the animals in the park
1. Dog
2. Cat
3. Zebra
(b) These are the people in the park:
1. Jim
2. Pete
3. Carol
How can I do this? I tried doing another enumerate inside the enumerate without the alpha label but it's still giving me alphabetical numbering.
Upvotes: 1
Views: 14804
Reputation: 1
Try package enumerate:
\usepackage{enumerate}
\begin{enumerate*}[label={\alph*)}]
\item bananas
\item apples
\item oranges
\item lemons
\end{enumerate*}
you can also try this with package tasks:
\usepackage{tasks}
\begin{question} Which one of fruits is in the basket?
\begin{tasks}(4)
\task bananas
\task apples
\task oranges
\task lemons
\end{tasks}
\end{question}
Upvotes: 0
Reputation: 7365
Not really a problem, if you use the package enumerate
and the optional arguments [(a)]
and [1.]
:
\documentclass{article}
\usepackage{enumerate}
\begin{document}
\begin{enumerate}[(a)]
\item These are the animals in the park:
\begin{enumerate}[1.]
\item Dog
\item Cat
\item Zebra
\end{enumerate}
\item These are the people in the park:
\begin{enumerate}[1.]
\item Jim
\item Pete
\item Carol
\end{enumerate}
\end{enumerate}
\end{document}
Other answer of mine related to customizing enumerate
environment. Please comment for any feedback! :)
Upvotes: 2