From e3d47b0522e32ece602d2681c1239bfcd9806faf Mon Sep 17 00:00:00 2001
From: Benji Dial <benji@benjidial.net>
Date: Fri, 6 Dec 2024 17:35:23 -0500
Subject: montgomery: section and chapter formatting stuff

---
 montgomery.cls | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

(limited to 'montgomery.cls')

diff --git a/montgomery.cls b/montgomery.cls
index e285e79..71d74df 100644
--- a/montgomery.cls
+++ b/montgomery.cls
@@ -21,6 +21,10 @@
 \usepackage[capitalize]{cleveref}
 \usepackage{rotating}
 \usepackage{environ}
+\usepackage[sorting=nyt,style=authoryear]{biblatex}
+\usepackage{imakeidx}
+\usepackage{titlesec}
+\usepackage{emptypage}
 
 \setmainfont{CMU Sans Serif}
 \setmathfont{Concrete Math}
@@ -110,6 +114,25 @@
 \setlist[enumerate]{itemsep=0pt,topsep=0pt,label=\alph*)}
 \setlist[enumerate,2]{label=\roman*)}
 
+\titleformat{\chapter}[display]{%
+  \thispagestyle{empty}%
+  \Large\itshape\center%
+}{%
+  \chaptertitlename~\thechapter:%
+}{0pt}{%
+  \Huge\bfseries%
+}
+
+\titleformat{\section}[block]{%
+  \cleardoublepage%
+  \thispagestyle{empty}%
+  \Large\itshape\bfseries\center%
+}{%
+  Section~\thesection: %
+}{0pt}{}
+
+\titlespacing*{\section}{0pt}{0pt}{0.5in}
+
 \AtBeginDocument{
   \setlength{\parskip}{\topsep}
   \setlength{\parindent}{0pt}
-- 
cgit v1.2.3

