From 6e45de373a73f32a917afe24d0bee075240152b1 Mon Sep 17 00:00:00 2001 From: IkiWiki Date: Sat, 29 Apr 2023 12:02:20 +0200 Subject: render as PDF by default; tighten layout --- vuc/ep/guarana.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/vuc/ep/guarana.md b/vuc/ep/guarana.md index a42035c..b0fe55e 100644 --- a/vuc/ep/guarana.md +++ b/vuc/ep/guarana.md @@ -4,12 +4,31 @@ subtitle: Eksamensprojekt i Dansk A og Historie B author: Jonas Smedegaard date: 2023-05-02 lang: da-DK -documentclass: scrreprt mainfont: Libertinus Serif mainfontoptions: - Numbers=Lowercase sansfont: Libertinus Sans monofont: Libertinus Mono +format: +# html: +# embed-resources: true + pdf: + pdf-engine: lualatex + documentclass: scrreprt + classoption: + - DIV=calc + papersize: a4 + include-in-header: +# turn inline hyperlinks into footnotes + - text: | + \usepackage{hyperref} + \renewcommand{\href}[2]{#2\footnote{\url{#1}}} +# recalculate page margins, since mainfont was set after documentclass + - text: | + \KOMAoptions{DIV=last} +# avoid widow or orphan lines + - text: | + \usepackage[defaultlines=4,all]{nowidow} toc: true toc-depth: 2 bibliography: ref.bib -- cgit v1.2.3