Text FormattingAltering the Font Size of Document Class Headings

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
lnsam22
Posts: 28
Joined: Thu Jan 13, 2011 6:47 pm

Altering the Font Size of Document Class Headings

Post by lnsam22 »

Hi Latex forum,

I'm using book type document class with a few additions (see mwe code). does anyone know what the easiest (or shortest) method of getting the sections and subsection headings (as well as chapters and all other headings) to be in the same size 12 font?

Code: Select all

\documentclass[12pt]{book}% sets font size
\usepackage{amsmath}%
\usepackage{amsfonts}%
\usepackage{amssymb}%
\usepackage{graphicx}
\usepackage{chicago}% to do with biblio
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{listings}% helps write source code from matlab
\usepackage[authordate]{biblatex-chicago}
\bibliography{mwexample}% its the biblio style used
\usepackage{setspace}% allows for use of double spacing
\usepackage[centering,text={5.5in,9in}]{geometry}

%%----------------------------------------------------------
\doublespacing
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

my text goes here

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
lnsam22 says 'thanks' for any assistance
Last edited by lnsam22 on Thu Jul 14, 2011 10:20 pm, edited 1 time in total.

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Altering the Font Size of Document Class Headings

Post by localghost »

Your example is no MWE. Regarding your problem you could use the sectsty package for a simple approach or the titlesec package as the more sophisticated way.


Thorsten
Post Reply