# Tag Info

3

You can put the entire TOC into a minipage. The \fbox and \rule are just to demonstrate the centering. Putting the chapter and section numbers back in was a bit tricky. To get the columns to line up I had to keep the font size constant. Otherwise you might as well be using pt and adjusting by eye. \documentclass{book} \usepackage{xcolor} ...

2


2


2

The \contentsline stuff is wrongly used in the O.P.'s document, i.e. wrongly placed {} delimiters. For example \addtocontents{lof}{\protect\contentsline{part}% {\protect\numberline{\thisparttitle}}{}{3.2em} } tries to write a \numberline with the part title as the number, leaving out the title and setting the page number to be 3.2em ...

2

\documentclass{book} \usepackage[utf8]{inputenc} \usepackage{tocloft} \usepackage{hyperref} \makeatletter \newcommand*\l@fakechapter{\@dottedtocline{1}{0em}{1.5em}} \makeatother \begin{document} \tableofcontents %======== USING REGULAR ENTRIES ======== \chapter{Chapter 1} % properly linked of course {\LARGE This is chapter 1} \section{Section 1-1} % ...

2

The first step is to replace \phantomsection with \refstepcounter{chapter} or \refstepcounter{section}. Then you will have actual chapter and section numbers to link to instead of chapter*.1 etc. \documentclass{book} \usepackage[utf8]{inputenc} \usepackage{tocloft} \usepackage{hyperref} \begin{document} \tableofcontents %======== USING REGULAR ENTRIES ...

1

The amsbook class settings for the ToC can't be changed with tocloft (at least I've not found a way so far). The settings are a little bit peculiar. The easiest way is to change the justification of the section number and use a further indentation in the \l@section command, changing the 3rd. argument from 1.2pc to 1.5pc, but this can be adapted of course ...

1

Basically any documentclass I've used so far has sectioning commands such as \section, \subsection etc. which provide an optional argument which is meant for the title designed for the ToC, whereas the mandatory is used in the document text as heading. This was introduced to limit the length of ToC entries, but it can be used to abbreviate headings for the ...

Only top voted, non community-wiki answers of a minimum length are eligible