summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIkiWiki <ikiwiki.info>2023-04-29 12:02:20 +0200
committerIkiWiki <ikiwiki.info>2023-04-29 12:29:07 +0200
commit6e45de373a73f32a917afe24d0bee075240152b1 (patch)
treef02112cf4049c27af8fdea0f2a8fb4b63bf733fd
parent3491c16ab57b6038897c1dde1e81c02ded14c3f2 (diff)
render as PDF by default; tighten layout
-rw-r--r--vuc/ep/guarana.md21
1 files changed, 20 insertions, 1 deletions
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