tags:

views:

1180

answers:

3

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?

A: 

Take a look at this Table of Contents article. I believe you want \section and \subsection. You can also go quite deep with \subsubsubsection and so-forth.

Edit 1: Here is another page describing sections.

Topher Fangio
+6  A: 

See: http://www.giss.nasa.gov/tools/latex/ltx-222.html

The numbering style for the enumeration is determined by the commands, \labelenumi, \labelenumii, etc., for the nested levels. These may be redefined with the \renewcommand command.

For example, to use upper case letters for the first level and lower case letters for the second level of enumeration:

\renewcommand{\labelenumi}{\Alph{enumi}}
\renewcommand{\labelenumii}{\alph{enumii}}

And here: http://www.mackichan.com/index.html?techtalk/484.htm~mainFrame

... The concrete commands would be

\renewcommand{\labelenumi}{\arabic{enumi}.} 
\renewcommand{\labelenumii}{\arabic{enumi}.\arabic{enumii}}

Or, if you think your content qualifies as sections, use something like:

\section{Name}
...
\subsection{Subtopic}
...
\subsubsection{Yet another nesting}
...
The MYYN
The concrete commands would be `\renewcommand{\labelenumi}{\arabic{enumi}.}` and `\renewcommand{\labelenumii}{\arabic{enumi}.\arabic{enumii}}`.
Joachim Sauer
+1  A: 

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
\end{enumerate}
\end{enumerate}

\end{document}

See the catalog entry for enumitem for more.

Alok