From 84173085c0b7810a96046aa1d97c0e8863d074cf Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 1 Dec 2024 20:33:23 +0100 Subject: tune widow/orphan handling --- tryk/_issue.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'tryk') diff --git a/tryk/_issue.yml b/tryk/_issue.yml index fa94285..0f24ee2 100644 --- a/tryk/_issue.yml +++ b/tryk/_issue.yml @@ -15,9 +15,22 @@ format: \usepackage{multicol} \setlength{\columnsep}{20pt} % Adjust space between columns \setlength{\columnwidth}{0.45\textwidth} % Set column width (optional) +# avoid widow headline or definition description + - text: | + \usepackage{needspace} + \let\oldsection\section + \renewcommand{\section}[1]{% + \needspace{6\baselineskip} + \oldsection{#1}% + } + \let\olddesc\description + \renewcommand{\description}[1][]{% + \olddesc[#1]% + \needspace{2\baselineskip} + } # avoid widow or orphan lines - text: | - \usepackage[defaultlines=4,all]{nowidow} + \usepackage[defaultlines=3,all]{nowidow} # set page footer to danish page count "side X af Y" - text: | \usepackage{lastpage} -- cgit v1.2.3