# [texhax] Place introduction into TOC without adding a chapter number

Wed May 25 16:11:27 CEST 2016

why don't you just move it into the frontmatter part and in there use \chapter without the star, then the number is suppressed and it will appear in the ToC.

Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University

________________________________________
From: texhax <texhax-bounces at tug.org> on behalf of David Niklas <doark at mail.com>
Sent: 25 May 2016 04:31
To: texhax at tug.org
Subject: [texhax] Place introduction into TOC without adding a chapter number

Hello,
I started writing a book with latex and wanted to include the
introduction in the TOC without giving it a chapter heading and number.
The current code looks much like this:

\documentclass[12pt,letter,draft]{book}
\begin{document}
\frontmatter
\title{Foo book}
\author{me}
\maketitle
\tableofcontents
\newpage
\thispagestyle{empty}
\mainmatter
\chapter*{Introduction}
Hello World!

\end{document}

Thanks, David
_______________________________________________
TeX FAQ: http://www.tex.ac.uk/faq
Mailing list archives: http://tug.org/pipermail/texhax/