Generalremove chapter numbers in table of contents

LaTeX specific issues not fitting into one of the other forums of this category.
webhead
Posts: 26
Joined: Sat Jul 19, 2008 5:29 pm

Re: remove chapter numbers in table of contents

Post by webhead »

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.

Recommended reading 2024:

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

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

Post by Stefan Kottwitz »

How about this:

Code: Select all

Code, edit and compile here:
\setcounter{secnumdepth}{-1}
...
\begin{document}
\tableofcontents
\pagestyle{myheadings}
\chapter{A Letter}
\markboth{A Letter}{}
...
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Stefan
LaTeX.org admin
webhead
Posts: 26
Joined: Sat Jul 19, 2008 5:29 pm

Re: remove chapter numbers in table of contents

Post by webhead »

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. :D
Keep to the Code.
Post Reply