[Tex/LaTex] How to remove dot from \subsection* in Appendix

amsartsectioning

I am using the AMS Article LaTeX template and when I need my Section and Subsections to not have numbering before them (since they are part of the Appendix), I use the '*' and type;

\subsection*{A. Additional Figures \& Diagrams}\hspace*{\fill} \\

However, what I see is that LaTeX adds an unesessary dot at the end of the subsection, as highlighted in red in the image below,

enter image description here

All the similar questions here relate to how to get rid of the unnecessary dot in the example below by changing…

1.1. Subsection B

to…

1.1 Subsection B

However, I actually need to change…

1.1. Subsection B.

to…

Subsection B

Thank you in advance!

Best Answer

The amsart document class is programmed to insert a "dot" (aka "period" of "full stop") at the end of all sectioning headers below the section level -- and not just in the appendix, but throughout the entire document.

My working assumption is that if you want the dot removed from unnumbered subsection-level headers in the appendix, you will also want to have the dots removed from all other sectioning headers, throughout the entire document.

If this assumption is correct, you can achieve your formatting objective by adding the following code in the preamble:

\usepackage{etoolbox}
\makeatletter
\patchcmd{\@sect}{%
   \ignorespaces#8\unskip\@addpunct.}{\ignorespaces#8\unskip}{}{}
\makeatother

I will leave it to your imagination to determine what \@addpunct. does. :-)

Related Question