Skip to content

Instantly share code, notes, and snippets.

@vicapow
Last active December 18, 2024 04:14
Show Gist options
  • Save vicapow/695b76eb53d3e6081be0703106783831 to your computer and use it in GitHub Desktop.
Save vicapow/695b76eb53d3e6081be0703106783831 to your computer and use it in GitHub Desktop.
Chapter title formatting
\documentclass{book} % Assuming a book class is appropriate for chapters
\usepackage{titlesec} % Required for title formatting
\titleformat{\chapter} % Corrected command
[display]
{\normalfont\bfseries\huge}
{Chapter \thechapter}
{0pt} % Corrected spacing option
{\vspace{2\baselineskip}}
\titlespacing*{\chapter}
{0pt} % Corrected spacing option
{-1cm}
{1cm}
\begin{document}
\chapter{Introduction} % Example chapter to demonstrate the formatting
This is the introduction chapter.
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment