# Is there a way to show the short title of a chapter in the TOC instead of the long?

is there a way to show the short title in the TOC instead of the long version?

For example, when I do:

`````` \chapter[short version]{longer version that describes things in a verbose way}
``````

Is there a way for showing the [short version] instead of the {...} in the TOC?

-
But using `\chapter[short version]{longer version that describes things in a verbose way}` will precisely show "short version" in the ToC. –  Gonzalo Medina Aug 3 '11 at 0:48
If, for some reason, you are getting a different result, then please add a minimal working example illustrating this odd behaviour. –  Gonzalo Medina Aug 3 '11 at 1:10
The class I'm using doesn't do this... it uses the short version in the headers and the long version in the ToC. The answer below solves my problem. –  Rafael S. Calsaverini Aug 3 '11 at 19:23
And that's why a minimal working example is always appreciated. –  Gonzalo Medina Aug 3 '11 at 21:12

## 1 Answer

the document class `amsbook` will use the short version only for running heads; the long version goes into the toc. what must be done is to suppress the "normal" entry from the toc, and explicitly replace it with the desired version.

this is covered in an entry in the ams author faq. briefly, the instruction there is this: in the preamble,

``````\DeclareRobustCommand{\SkipTocEntry}[4]{}
``````

replacing the `4` by `5` if `hyperref` is used. then, enter your `\chapter` information as follows:

``````\addtocontents{toc}{\SkipTocEntry}
\chapter{Heading that should be replaced}
\addtocontents{toc}{\protect\contentsline{chapter}%
{\protect\tocchapter{Chapter}{\thechapter}%
{Substitute toc text}}%
{\thepage}}
``````

note that the `\protect`s are necessary. this also works for other sectioning commands besides `\chapter`.

the `\SkipTocEntry` command cannot be entered before an `\include` command in a driver file; it must be in the same file as the heading being omitted.

-