Last active
December 18, 2024 04:14
-
-
Save vicapow/695b76eb53d3e6081be0703106783831 to your computer and use it in GitHub Desktop.
Chapter title formatting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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