I'm rather new to LaTeX, I am trying to get my article
class document set up so that the section
font is 16 pt and bold, the subsection
is 14 pt and bold and the subsubsection
is 14 pt and not bold. I managed to get all the right fonts and font sizes, I just cant get the subsubsection
to be "unbolded".
I heard about the titlesec
package, but I am unsure of how to use this to unbold my subsubsection
title.
Here is some of my code: (I dont know how to make a minimal example, sorry)
\documentclass[a4paper, 12pt, final]{article}
\usepackage{fancyhdr}
\usepackage{titlesec}
\allsectionsfont{\fontfamily{phv}\selectfont}
\sectionfont{\fontfamily{phv}\fontsize{16pt}{16pt}\selectfont}
\subsectionfont{\fontfamily{phv}\fontsize{14pt}{14pt}\selectfont}
\subsubsectionfont{\fontfamily{phv}\fontsize{14pt}{14pt}\selectfont}
Best Answer
You seem to be using the commands from the
sectsty
package but loadingtitlesec
. You can use either one of those packages, but using their own commands; the examples below show possible solutions using each package:Here's one way to achieve it using the extended
\titleformat
syntax fromtitlesec
package:And here's an example using the simplified
\titleformat*
command:And here's an example using
sectsty
:Just for completeness's sake, here's one solution without additional packages, redefining the original commands:
As egreg mentions in his comment, the presence of
\bfseries
allows not to specify\selectfont
.