Text FormattingEnumerate

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
muath
Posts: 30
Joined: Thu Jul 15, 2010 11:34 am

Enumerate

Post by muath »

Hi there,
How I can enumerate in this way
1 Complex numbers
1.1 Introduction
1.2 Properties
2 Complex functions
2.1
2.2


and so on

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Enumerate

Post by frabjous »

Do you want this in the table of contents, or in an enumerate environment?
muath
Posts: 30
Joined: Thu Jul 15, 2010 11:34 am

Re: Enumerate

Post by muath »

In both.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Enumerate

Post by frabjous »

Here's an enumerate environment:

Code: Select all

\documentclass{article}
\usepackage{enumitem}
\begin{document}

\begin{enumerate}[label=\arabic*]
\item Complex numbers
	\begin{enumerate}[label*={.\arabic*}]
		\item Introduction
		\item Properties
	\end{enumerate}
\item Complex functions
	\begin{enumerate}[label*={.\arabic*}] 
		\item One item
		\item Another
	\end{enumerate}
\end{enumerate}


\end{document}
See the documentation for the enumitem for more options.

For the ToC, I think this is the default for many document classes, but we'd need to know what document class you were using, whether these are chapters and sections, or sections and subsections, or what, and see a minimal example, per board rules.
Post Reply