diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-12-01 20:33:23 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-12-01 20:33:23 +0100 |
commit | 84173085c0b7810a96046aa1d97c0e8863d074cf (patch) | |
tree | d930591b49c2f7276f98c3947f4f3085a46ee27c /tryk/_issue.yml | |
parent | 0478020340aa69bc0401fd7785226c0e2cceed38 (diff) |
tune widow/orphan handling
Diffstat (limited to 'tryk/_issue.yml')
-rw-r--r-- | tryk/_issue.yml | 15 |
1 files changed, 14 insertions, 1 deletions
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} |