Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Latex: How can I create nested lists which look this 1.1, 1.1.1, 1.1.2, 1.2

Tags:

list

latex

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?

like image 483
samson Avatar asked Jan 05 '10 16:01

samson


People also ask

What is nested list in LaTeX?

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.

What environments display lists in LaTeX?

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.


1 Answers

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.

like image 110
Alok Singhal Avatar answered Sep 22 '22 17:09

Alok Singhal