正如下面的 MWE 汇编所示,标题词,在章节标题中应该较小,但在目录中却变大了,而且太大了。如何解决此问题?
\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage{titlesec}
\newcommand\SpSection{%
\titleformat*{\section}{\centering\scshape\Large}
}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{mathtools}
\begin{document}
\tableofcontents
\begingroup
\SpSection
\chapter{A {\LARGE titleword} made for more space}
\endgroup
\end{document}
答案1
最简单的解决方法可能是使用可选参数\chapter
。
\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage{titlesec}
\newcommand\SpSection{%
\titleformat*{\section}{\centering\scshape\Large}
}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{mathtools}
\begin{document}
\tableofcontents
\begingroup
\SpSection
\chapter[A titleword made for more space]{A {\LARGE titleword} made for more space}\label{Platforms}
\endgroup
\end{document}
那么章节标题如下
但目录看起来像