General ⇒ Chapter without numbering in Table of Contents?
Chapter without numbering in Table of Contents?
Thanks,
ben
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
Chapter without numbering in Table of Contents?
Re: Chapter without numbering in Table of Contents?
\addcontentsline{toc}{chapter}{Introduction}
helps out here since I am using it already in another place...
-
- Posts: 6
- Joined: Tue Sep 11, 2007 6:27 am
Chapter without numbering in Table of Contents?
Code: Select all
\documentclass{book}
\begin{document}
\bf{Title Page}
\frontmatter
\chapter{Preface}
this is the preface
\tableofcontents
\mainmatter
\chapter{Introduction}
Words, words, words
\backmatter
\chapter{Appendix}
A small vermiform organ in humans \ldots
\end{document}
\frontmatter gives you unnumbered chapters and roman page numbering.
\backmatter gives you unnumbered chapters and arabic page numbering.
Copy and paste the whole code segment into a TeX editor and process it to see the results. This approach is much easier than trying to re-code chapter definitions.
Regards
Re: Chapter without numbering in Table of Contents?
-
- Posts: 3
- Joined: Tue Jul 29, 2008 4:21 pm
Re: Chapter without numbering in Table of Contents?
Thanks for all the previous comments. Despite following all your suggestions, I have the following issue. I am using Texnic Center and MikTex.
objective: In my table of contents, I want a text "Chapter" without the dotted lines and the subsequent page number. Eg.,
============================================
Table of Contents
Acknowledgments ................ ii
Abstract ........................ v
Chapter
1 Introduction .................. 1
1.1 Network Design .............. 1
1.1.1 Steiner Tree Problems ..... 2
============================================
Trial-1: When I do "\addcontentsline{toc}{chapter}{\protect Chapter}", it adds the required text (Chapter) to toc. But, the dotted lines and page number is present.
Trial-2: The same happens when I do "\addcontentsline{toc}{chapter}{\protect \numberline{}Chapter}" .
Q1) Also, I want only one-line spacing between "Chapter" and "1 Introduction". Currently, I get 2 line-spacing (like between Acknowledgments and Abstract). How do I get rid of that 2 line spacing and make it 1-line spacing?
Thanks for your suggestions. Appreciate your time.
Srinivas.