From: Don Armstrong Date: Sun, 16 Mar 2025 05:23:05 +0000 (-0700) Subject: Make subsections follow sections X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e2654c83dd508ba998d11b42301c9521919be362;p=resume.git Make subsections follow sections --- 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}