[Tex/LaTex] \section*[toc]{normal section title} not working for me

amsbooksectioningtable of contents

for my thesis I want to have a section appear differently in the ToC than in the text.

After googling a bit, I found \section[short]{long} as a proposed answer, but this does not seem to work for me.

Here is a MnotWE:

\documentclass[12pt,a4paper,reqno]{amsbook}
\usepackage{fontspec}
\setmainfont[SlantedFont={Latin Modern Roman Slanted},
         SmallCapsFont = {Latin Modern Roman Caps},
         ]{Latin Modern Roman}



\usepackage[activate=true,nocompatibility},final,tracking=true,factor=1100,stretch=10,shrink=10]{microtype}

\usepackage[bindingoffset=1cm]{geometry}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\usepackage{csquotes}

\title{\textsc{Some Title}}
\author{me}

\begin{document}
\maketitle
\frontmatter
\tableofcontents
\mainmatter

\part[toc part]{normal part}
\section*[toc section]{normal section}
some text

\end{document}

It just takes "toc part" as normal and as ToC heading for the \part command.

For the section I am interested in the starred version. Here the [toc section] part of the command seems to be completely ignored.

I use LuaLaTeX to build my document.
Does anyone have a suggestion how to get a \section* appear with a different title in the ToC?

Best Answer

The AMS classes use a different method for changing the title in the TOC; here's an example, which can be used in all sectional titles (including \part, but for that the usual method works too).

It can be summarized in this way:

\documentclass[12pt,a4paper,reqno]{amsbook}

\begin{document}

\frontmatter
\tableofcontents
\mainmatter

\part{%
  \for{toc}{toc part}\except{toc}{normal part}%
}

\chapter[This will go in the running head]{%
  \for{toc}{toc chapter}\except{toc}{normal chapter}%
}

\section*[sec]{\for{toc}{toc section}\except{toc}{normal section}}

some text

\clearpage
\mbox{}
\clearpage
\mbox{}

\end{document}

The tricks with \for and \except are thought for adding appropriate line break points, which might be different in the body or in the TOC.

Here is the Contents page

enter image description here

Here is the chapter page

enter image description here