General ⇒ Table of Contents
Table of Contents
I have to have the copyright, acknowledgments, and abstract listed in the toc, but the word "Chapter" has to appear before the chapter headings and after the frontmatter in the toc. Also, all chapter headings must be aligned by their first letter. The section headings have to match up with the chapter headings, but are not numbered.
I am using amsbook.cls, which I have already copied and made several adjustments to for other problems. I know there has to be a way to make these changes also.
Please help
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
Table of Contents
when I use amsbook.cls then the word Chapter already appears before the headings, like Chapter 1. Text, and the chapter headings are aligned. So what's the problem with the chapters exactly? Can you show how it is now and how it should be?
Stefan
Re: Table of Contents
Chapter
I. Introduction
II. Review
with each Header title aligned by itself, not just the numbers aligned.
I had to go in and remove the word Chapter from in front of each Chapter title.
For the short term, I have created a new document and just typed in my table of contents info into a tabular environment so that I can make everything align like they want it to. I would like to know how to chenge the alignment of headers in the table of contents for future reference though. I know it has to be somewhere in the \@tocline command.
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Table of Contents
try this:
Code: Select all
\makeatletter
\renewcommand*\l@section{\@tocline{1}{0pt}{1.8em}{}{}}
\makeatother
\renewcommand{\tocchapter}[3]{\ignorespaces\makebox[1.8em][l]{#2.}#3}
\renewcommand{\tocsection}[3]{\ignorespaces#3}
Code: Select all
\addcontentsline{toc}{chapter}{Chapter}