例如,amsart
将小节编号格式化为1.2.
但我想要的1.2
,如在标准article
类中一样。
这些 问题问如何删除后面的句号标题(\nopunct
),但是我无法找到有关删除数字后句点的任何信息。
梅威瑟:
\documentclass{amsart}
\begin{document}
\tableofcontents
\section{$\leftarrow$ I'd like to remove this period}
\subsection{$\leftarrow$ And this one too}
\subsubsection{$\leftarrow$ This one as well}
\end{document}
答案1
\documentclass{amsart}
\makeatletter
\def\@seccntformat#1{%
\protect\textup{\protect\@secnumfont
\csname the#1\endcsname
%%% \protect\@secnumpunct
\space
}%
}
\renewcommand{\tocsection}[3]{%
\indentlabel{\@ifnotempty{#2}{\ignorespaces#1 #2%.
\quad}}#3}
\let\tocsubsection\tocsection
\let\tocsubsubsection\tocsection
\makeatother
\begin{document}
\tableofcontents
\section{$\leftarrow$ I'd like to remove this period}
\subsection{$\leftarrow$ And this one too}
\subsubsection{$\leftarrow$ This one as well}
\end{document}