[Tex/LaTex] article document class: remove boldface from all titles

boldfontssectioning

My question relates to remove boldface from chapter titles, section and subsection names on removing boldface from chapter titles, section and subsection names, the difference being that I need to remove boldface from chapter titles, section and subsection names from an article class document.

Best Answer

Here are two options:

  1. sectsty:

    \documentclass{article}
    \usepackage{sectsty}% http://ctan.org/pkg/sectsty
    \allsectionsfont{\normalfont}
    \begin{document}
    \section{A section}
    \subsection{A subsection}
    \subsubsection{A subsubsection}
    \end{document}
    

    This provides a clean and understandable input. Another reference using this approach is available in Is it possible to change text color for all headings?

  2. A patch of the section header printing macro \@sect using etoolbox:

    \documentclass{article}
    \usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
    \makeatletter
    \patchcmd{\@sect}% <cmd>
      {#6}% <search>
      {#6\normalfont}% <replace>
      {}{}% <success><failure>
    \makeatother
    \begin{document}
    \section{A section}
    \subsection{A subsection}
    \subsubsection{A subsubsection}
    \end{document}
    

    This is a little obscure. The sixth argument to \@sect stems from the same argument to \@startsection - the default section-producing macro in latex.ltx. For example, here's an extract for \section, which provides as argument six \normalfont\Large\bfseries:

    \newcommand\section{\@startsection {section}{1}{\z@}%
                                       {-3.5ex \@plus -1ex \@minus -.2ex}%
                                       {2.3ex \@plus.2ex}%
                                       {\normalfont\Large\bfseries}}
    

    The patch inserts \normalfont after every sixth argument, regardless of the section being produced.

Both options produce the output:

Related Question