GeneralTable of Contents

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
gtozoom
Posts: 1
Joined: Mon Nov 10, 2008 10:14 pm

Table of Contents

Post by gtozoom »

Hi, my table of contents looks like this:


2 $Section name$
......2.1 $SubSection name$
......2.2 $SubSection name$

3 $Section name$
......3.1 $SubSection name$
etc.

Now I don't have a problem with this but my cranky old english teacher who likes to make life hard for everyone in the class said that I cant have the Section numbers in my table of contents. The subsection numbers need to stay the same but i need to get rid of the section numbering in the TOC. heres the head of my latex document:

Code: Select all

\documentclass[a4paper,11pt,fleqn,leqno]{article} 
\usepackage{amsmath}
\usepackage{fancyhdr} 
\pagestyle{fancy}
\usepackage{setspace}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{indentfirst}

\author{Bryan Bickford} 
\title{Chaos Theory} 

\doublespacing
\begin{document}

\maketitle
\pagebreak

\tableofcontents
\pagebreak
 
 
\section{Overview}
....
\section{Mathematical basis for chaos}
\subsection{Vocabularity}
.....
\subsection{Iterations}
....
\subsection{Bifurcation}
....etc.
Any help would be appreciated
-GTO

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Table of Contents

Post by gmedina »

Hi,

you could use the titletoc package. A little example:

Code: Select all

\documentclass{article}
\usepackage{titletoc}

\titlecontents{section}
  [1.5em]
  {}{}
  {\hspace*{-2.3em}}
  {\titlerule*[1pc]{.}\contentspage}

\begin{document}

\tableofcontents
\newpage

\section{Section one one}
\section{Section one two}
\subsection{Subsection one two one}
\subsection{Subsection one two two}
\section{Section one three}
\section{Section one four}

\end{document} 
Please refer to the pacakage documentation for further information.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply