summaryrefslogtreecommitdiff
path: root/tryk/_issue.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tryk/_issue.yml')
-rw-r--r--tryk/_issue.yml15
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}