# How to boldface a section header? (including title and number)

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?

-
– Werner Jul 27 '12 at 14:40

## 1 Answer

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).

-
Thanks. Exactly what I wanted! – Siyul Jul 27 '12 at 15:10
@Siyul In that case, you should upvote and accept egreg's answer. – lockstep Jul 27 '12 at 16:12