# How to change section/subsection font size? [duplicate]

I'm writing a paper that requires the section titles to be in 12pt font, I can get the title to be in 12pt using:

\section{\fontsize{12}{15}\selectfont Introduction}


but the section number does not change size, is there a way to do this?

I've also tried looking at titlesec but have not been able to find any suitable examples.

• Welcome to TeX.sx! You should look up the titlesec package, which makes it easy to customise the formatting of section-unit titles. – jub0bs Mar 19 '13 at 16:56
• @Werner I think that no duplicates here. None of these say what to do, if you want exact "N pt" size, while writing some papers sometimes have such editorial requirements. And this is what Op is asking for =) [I have the same problem =( ] – Kusavil Jan 29 '18 at 21:32
• @Kusavil: The selected answer covers this using \fontsize. The duplicates cover a general case, where you can use standard font switches. – Werner Jan 29 '18 at 21:53

Here's one possibility using the sectsty package:

\documentclass{article}
\usepackage{sectsty}

\sectionfont{\fontsize{12}{15}\selectfont}

\begin{document}

\section{Test Section}
test

\end{document}


The titlesec package could also be used:

\documentclass{article}
\usepackage{titlesec}

\titleformat{\section}
{\normalfont\fontsize{12}{15}\bfseries}{\thesection}{1em}{}

\begin{document}

\section{Test Section}
test

\end{document}


• This is helpful to see how to set the font size to a specified pt size. – Steven C. Howell Jun 2 '15 at 13:38
• Note, if you do the same thing (with the titlesec package) for a subsection, then replace \thesection with \thesubsection. – stack-delay Nov 19 '18 at 17:36
• The titlesec solution seems to work for sections and subsections, but not for parts and chapters in the book class. And my editor wants 13pt for the part title. Is there a solution for this with titlesec? – Simon Aug 11 '19 at 20:22