Text FormattingAll Section Headings 12pt Font Size

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
xcboxer
Posts: 1
Joined: Sat Sep 18, 2010 9:26 am

All Section Headings 12pt Font Size

Post by xcboxer »

I am writing a report and absolutely everything in the paper must be 12pt font size.

\documentclass[12pt]{article}

A good start, but I am having issue with the section/subsection/subsubsection font sizes. I tried to remedy the situation with:

\usepackage{sectsty}
\allsectionsfont{\small or \normalsize or \large}

However, according to my eyes and http://en.wikibooks.org/wiki/LaTeX/Formatting (about a third of the way down where it gives absolute point sizes for the \normalsize commands, etc.) these commands won't cut it.

Does anybody know how to force all section/subsection/subsubsection headings to be 12pt exactly?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

All Section Headings 12pt Font Size

Post by meho_r »

I'm not sure what the problem is. This code should work:

Code: Select all

\documentclass[12pt]{article}

\usepackage{blindtext}% generates dummy text
\usepackage[english]{babel}% needed for blindtext

\usepackage{sectsty}
\allsectionsfont{\normalsize\bfseries}

\begin{document}

\Blinddocument

\end{document}
I wouldn't worry too much about \normalsize being 11.74988pt and not 12pt exactly, if that's bothering you.
Post Reply