答案1
这是在第二个参数前面进行更改\tocsection
以添加的问题。\S
\documentclass{amsbook}
\numberwithin{section}{chapter}
\makeatletter
\renewcommand\tocsection[3]{%
\indentlabel
{\@ifnotempty{#2}{\ignorespaces #1 \S#2.\quad }}#3%
}
\makeatother
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\part{First part}
\chapter{First chapter}
\section{First section}
\section{Second section}
\end{document}