General ⇒ remove chapter numbers in table of contents
Re: remove chapter numbers in table of contents
Oh, sorry, I didn't supply enough information. What I'm trying to do is where it presently says "Chapter", I want the actual chapter name.
Keep to the Code.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
remove chapter numbers in table of contents
How about this:
Stefan
Code: Select all
Code, edit and compile here:
\setcounter{secnumdepth}{-1}...\begin{document}\tableofcontents\pagestyle{myheadings}\chapter{A Letter}\markboth{A Letter}{}...
LaTeX.org admin
Re: remove chapter numbers in table of contents
That got the chapter names, thanks!
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.
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.

Keep to the Code.