summaryrefslogtreecommitdiff
path: root/montgomery.cls
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-12-06 18:42:44 -0500
committerBenji Dial <benji@benjidial.net>2024-12-06 18:42:44 -0500
commitac4559cba75f38f287f2b7017a4fb6d24d06192d (patch)
tree46caf6ee171047369e3cfb554f33f56917d509f4 /montgomery.cls
parente3d47b0522e32ece602d2681c1239bfcd9806faf (diff)
downloadlatex-classes-main.tar.gz
montgomery: add subsections, remove space after section header, number theorems and exercises based on sectionHEADmain
Diffstat (limited to 'montgomery.cls')
-rw-r--r--montgomery.cls8
1 files changed, 5 insertions, 3 deletions
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}