How can I create lists which look this:
1. Topic 1.1 First Subtopic 1.2 Second Subtopic
I tried using the enumeration list
\begin{enumerate} \item Topic \begin{enumerate} \item First Subtopic \item Second Subtopic \end{enumerate} \end{enumerate}
But the output looks like:
1. Topic (a) First Subtopic (b) Second Subtopic
So how can I get the list? Is there another list evironment or maybe an extra package?
Nested lists In LaTeX you can insert a list inside another list. The above list types may be included within one another, either mixed or of one type, to a depth of 4 levels.
Unordered List. Unordered list in LaTeX is created using the itemize environment. These lists are used where a specific order for details is not necessary.
You can use enumitem
package:
\documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate} \item Topic \begin{enumerate}[label*=\arabic*.] \item First Subtopic \item Second Subtopic \begin{enumerate}[label*=\arabic*.] \item First Sub-Subtopic \item Second Sub-Subtopic \end{enumerate} \end{enumerate} \end{enumerate} \end{document}
See the catalog entry for enumitem for more.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With