diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-02-11 22:34:13 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-02-11 22:34:13 +0100 |
commit | 60b660c739b867896442478d676552b99647228d (patch) | |
tree | 35d3303dd62c57ac55892781122fb1da48fd2d2f /tryk/_issue.yml | |
parent | d4dc873b524a07db1e9b804b9514ef8f55a68447 (diff) |
tighten print layout
Diffstat (limited to 'tryk/_issue.yml')
-rw-r--r-- | tryk/_issue.yml | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/tryk/_issue.yml b/tryk/_issue.yml index cb4b265..625298a 100644 --- a/tryk/_issue.yml +++ b/tryk/_issue.yml @@ -3,9 +3,10 @@ format: # links-as-notes: true colorlinks: false pdf-engine: lualatex - documentclass: scrreprt + documentclass: scrartcl classoption: - DIV=calc + - twocolumn csquotes: true papersize: a4 # extract-media: img @@ -17,6 +18,36 @@ format: # avoid widow or orphan lines - text: | \usepackage[defaultlines=4,all]{nowidow} +# set page footer to danish page count "side X af Y" + - text: | + \usepackage{lastpage} + \usepackage{scrlayer-scrpage} + \cfoot{side \thepage\ af \pageref{LastPage}} +# balance columns on last page + - text: | + \usepackage{pbalance} +# cludge to support markdown tables in twocolumn page layout + - text: | + \usepackage{float} + \makeatletter + \let\oldlt\longtable + \let\endoldlt\endlongtable + \def\longtable{\@ifnextchar[\longtable@i \longtable@ii} + \def\longtable@i[#1]{\begin{figure}[H] + \onecolumn + \begin{minipage}{0.5\textwidth} + \oldlt[#1] + } + \def\longtable@ii{\begin{figure}[H] + \onecolumn + \begin{minipage}{0.5\textwidth} + \oldlt + } + \def\endlongtable{\endoldlt + \end{minipage} + \twocolumn + \end{figure}} + \makeatother include-before-content: # avoid english style of added space after punctuation |