From e2654c83dd508ba998d11b42301c9521919be362 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 15 Mar 2025 22:23:05 -0700 Subject: [PATCH] Make subsections follow sections --- dlaresume.cls | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dlaresume.cls b/dlaresume.cls index 8851429..7d40b2f 100644 --- a/dlaresume.cls +++ b/dlaresume.cls @@ -43,6 +43,8 @@ \RequirePackage{biblatex} \addbibresource{references.bib} +\RequirePackage{needspace} + \hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=Black, urlcolor=Black, unicode=true} \urlstyle{same} @@ -93,7 +95,8 @@ \definecolor{subheadings}{HTML}{500000} \titleformat{\section}{% -\color{headings}\fontsize{14pt}{14pt}\selectfont% + \Needspace{5\baselineskip} + \color{headings}\fontsize{14pt}{14pt}\selectfont% \scshape}{}{0pt}{\textcolor{headings}{#1}}[{\titleline{\titlerule[1pt]}}] \titlespacing*{\section}{0em}{0.5em}{0em} \titleformat{\subsection}{% @@ -101,6 +104,14 @@ \raggedright}{}{0pt}{\textcolor{subheadings}{#1}} \titlespacing*{\subsection}{0em}{0.25em}{-\parskip} +\newcommand{\sectionbreak}{% +\addpenalty{300}% +\vspace*{0pt}} + +\newcommand{\subsectionbreak}{% +\addpenalty{300}% +\vspace*{0pt}} + \def\myauthor{Don Armstrong} \def\mytitle{Resume} \def\mycopyright{\myauthor} -- 2.39.5