Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a PowerPoint presentation to be ready next week for an exam. As I am not very familiar to the TeXnical way to create a presentation, I don't want to rewrite it in TeX. I have the requirement to create a handout for the presentation. The handout is required to have an outline of the presentation.

Is there any package to create a TOC in a LaTeX document that has no relationship to the sections and chapters of the document itself? I need something where I can create an outline like

  1. Foo
    • A
    • B
    • C
  2. Bar
    • D
    • E
    • F
  3. Baz
    • G
    • H
share|improve this question
    
Just use list environments? If you need something more involved, please give more details. –  Caramdir May 31 '11 at 19:44
1  
@Caramdir I like the LaTeX formatting of TOCs more than the formatting of plain lists. Also, I want to have the same style as a usual TOC. –  FUZxxl May 31 '11 at 19:45
    
@FUZxxl: Your example doesn't really look like a LaTeX ToC (bullet points?) –  Caramdir May 31 '11 at 19:48
    
@FUZxxl: you should have mentioned the required layout in your question! Anyway, see my updated answer. –  Gonzalo Medina May 31 '11 at 19:55
    
@Gonzalo It's just, that I like the default layout of LaTeX' TOCs. I am curious, whether there is any package, that allows the user to write custom TOCs using this formatting. –  FUZxxl May 31 '11 at 20:12
show 2 more comments

1 Answer

up vote 10 down vote accepted

You can use the standard enumerate and itemize environments:

\documentclass{article}

\begin{document}

\begin{enumerate}
  \item Foo
  \begin{itemize}
    \item A
    \item B
    \item C
  \end{itemize}
  \item Bar
  \begin{itemize}
    \item D
    \item E
    \item F
  \end{itemize}
  \item Baz
  \begin{itemize}
    \item G
    \item H
    \item I
  \end{itemize}
\end{enumerate}

\end{document}

Since the format required is the one of a legal list, you can use the enumerate package:

\documentclass{article}
\usepackage{enumitem}

\newlist{legal}{enumerate}{10}
\setlist[legal]{label*=\arabic*.}

\begin{document}

\begin{legal}
  \item Foo
  \begin{legal}
    \item A
    \item B
    \item C
  \end{legal}
  \item Bar
  \begin{legal}
    \item D
    \item E
    \item F
  \end{legal}
  \item Baz
  \begin{legal}
    \item G
    \item H
    \item I
  \end{legal}
\end{legal}

\end{document}

enter image description here

EDIT: another option would be to create a "dummy" document with only the sectional units and let \tableofcontents generate the ToC with its standard layout; the correct page numbering can be obtained through a command that sets the page counter (the example requires two compilations):

\documentclass{book}

\newcommand\MyCmd[1]{\mbox{}\clearpage\setcounter{page}{#1}}

\begin{document}

 \tableofcontents
\MyCmd{3}
\chapter{Foo}
\MyCmd{3}
\section{A}
\MyCmd{4}
\section{B}
\MyCmd{8}
\section{C}
\MyCmd{12}
\chapter{Bar}
\MyCmd{16}
\section{D}
\MyCmd{18}
\section{E}
\MyCmd{20}
\section{F}
\MyCmd{22}
\chapter{Baz}
\MyCmd{23}
\section{G}
\MyCmd{25}
\section{H}
\MyCmd{27}
\section{I}

\end{document}

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.