8

I'm using class amsart, and I want to boldface each section's header.

That is, the part \section{whatever} - it appears as, for instance, <3. Whatever>

Now I wish to boldface the <3. Whatever> as a whole.

Writing as \section{\bf whatever}, or inserting

\usepackage{etoolbox}
\makeatletter
\patchcmd{\section}{\scshape}{\bf}{}{}
\makeatother

solve the problem partly by boldfacing the < Whatever> part, but not the <3.> part. Can somebody please tell me how to boldface the whole thing?

lockstep
  • 250,273
Siyul
  • 151

1 Answers1

9

The instruction for the font used for the number is called \@secnumfont:

\makeatletter
\renewcommand{\@secnumfont}{\bfseries}
\makeatother

So the complete input should be

\usepackage{etoolbox}
\patchcmd{\section}{\scshape}{\bfseries}{}{}
\makeatletter
\renewcommand{\@secnumfont}{\bfseries}
\makeatother

Never use the obsolete commands \bf (or similar two-letter ones for font changing).

egreg
  • 1,121,712
  • For those who want to keeps small caps while adding boldface: Use the package "fontenc", then include egreg's input above, but replace the two instances of "{\bfseries}" with "{\scshape\bfseries}". – Lawrence Mouillé Oct 05 '20 at 13:15