3

For instance, amsart formats a subsection number as 1.2. but I want 1.2, as in the standard article class.

These questions ask how to remove the period following the heading (\nopunct), but I have been unable to find anything on removing the period after the number.

MWE:

\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 Answer 1

4

enter image description here

\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}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .