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

Lars Madsen daleif at math.au.dk
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.


/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif@math / More information: http://au.dk/en/daleif@math


________________________________________
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/
More links: http://tug.org/begin.html

Automated subscription management: http://tug.org/mailman/listinfo/texhax
Human mailing list managers: postmaster at tug.org



More information about the texhax mailing list