From ac4559cba75f38f287f2b7017a4fb6d24d06192d Mon Sep 17 00:00:00 2001
From: Benji Dial <benji@benjidial.net>
Date: Fri, 6 Dec 2024 18:42:44 -0500
Subject: montgomery: add subsections, remove space after section header,
 number theorems and exercises based on section

---
 montgomery.cls | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'montgomery.cls')

diff --git a/montgomery.cls b/montgomery.cls
index 71d74df..3d87e56 100644
--- a/montgomery.cls
+++ b/montgomery.cls
@@ -106,8 +106,8 @@
 
 \declaretheorem[style=boxedthm,numbered=no]{definition}
 \declaretheorem[style=boxedthm,numbered=no]{example}
-\declaretheorem[style=boxedthm,parent=chapter]{exercise}
-\declaretheorem[style=boxedthm,parent=chapter]{theorem}
+\declaretheorem[style=boxedthm,parent=section]{exercise}
+\declaretheorem[style=boxedthm,parent=section]{theorem}
 \declaretheorem[style=boxedthm,numbered=no]{suggestion}
 
 \setlist[itemize]{itemsep=0pt,topsep=0pt}
@@ -131,7 +131,9 @@
   Section~\thesection: %
 }{0pt}{}
 
-\titlespacing*{\section}{0pt}{0pt}{0.5in}
+\titleformat{\subsection}[block]{%
+  \large\itshape\bfseries\center%
+}{}{0pt}{}
 
 \AtBeginDocument{
   \setlength{\parskip}{\topsep}
-- 
cgit v1.2.3

