Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
add comment

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

share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.