titlesec
目前可能并不兼容 AMS 文档类:https://tex.stackexchange.com/questions/543478/
如果只是想改一下 \section
的字体,可以在导言区加上:
\makeatletter
% \def\contentsnamefont{\bfseries} % 如果要改Contents
\def\section{\@startsection{section}{1}%
\z@{.7\linespacing\@plus\linespacing}{.5\linespacing}%
{\normalfont\large\bfseries\centering}}
\makeatother
想把 Abstract 加粗,只要把你贴出的那段代码
\item[\hskip\labelsep\scshape\abstractname.]
里的 \scshape
改成 \bfseries
即可。最好在导言区重定义 abstract
环境,而不修改 amsart.cls
文件。
另外,如果要查看某个文档类里的某个命令或环境的定义,.dtx
文件不是最好的选择,它可能包含无关代码,查看对应的 .cls
文件即可。
问 amsart宏包,重定义section问题。