GeneralTable of Contents

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
stephkees
Posts: 6
Joined: Sun Apr 06, 2008 8:49 pm

Table of Contents

Post by stephkees »

I am trying to fix my Table of Contents to match what is need by my University for my thesis and have run into some snags. I was hoping someone would have a suggestion. Here is the problem.

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

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: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Table of Contents

Post by Stefan Kottwitz »

Hi stephkees,

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
LaTeX.org admin
stephkees
Posts: 6
Joined: Sun Apr 06, 2008 8:49 pm

Re: Table of Contents

Post by stephkees »

Ours has to have
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.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Table of Contents

Post by Stefan Kottwitz »

Hi stephkees,

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}
or similar and before the first chapter:

Code: Select all

\addcontentsline{toc}{chapter}{Chapter}
Stefan
LaTeX.org admin
Post Reply