General ⇒ remove chapter numbers in table of contents
Re: remove chapter numbers in table of contents
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
remove chapter numbers in table of contents
Code: Select all
\setcounter{secnumdepth}{-1}
...
\begin{document}
\tableofcontents
\pagestyle{myheadings}
\chapter{A Letter}
\markboth{A Letter}{}
...
Re: remove chapter numbers in table of contents
But it still works even without the setcounter line, for whatever reason.
I didn't include a preface in the sample but it keeps the title "contents", but that should be taken care of the same way I would think. And the book name doesn't print at all, but I'm happy to have the chapter name most of all.
Thanks again for your help.
