summaryrefslogtreecommitdiff
path: root/_report.yml
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-05-14 21:25:39 +0200
committerJonas Smedegaard <dr@jones.dk>2024-06-04 17:35:41 +0200
commitbc90f2dc3e8017267be72dd792d6dbbfce499d2c (patch)
treebb43e714ebfc93e4bc9ce83d691224ae969006a0 /_report.yml
parent7dc18c9b5996f81ec6b2a86b6ff98bf6738251f1 (diff)
add licensing at bottom of title page
Diffstat (limited to '_report.yml')
-rw-r--r--_report.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/_report.yml b/_report.yml
index 5e57532..2b07e5f 100644
--- a/_report.yml
+++ b/_report.yml
@@ -24,6 +24,27 @@ format:
- ../_templates/title.tex
include-in-header:
+# declare license
+ - text: |
+ \usepackage{hyperref}
+ \usepackage[type={CC}, modifier={by-sa}, version={4.0}]{doclicense}
+ \usepackage{titling}
+ \renewcommand{\maketitlehookd}{\vspace*{\fill}\small\par\doclicenseThis}
+# define missing danish locale strings (must load after package codlicense)
+# TODO: override URI suffix (curently ignored and using default URI)
+ - text: |
+ \makeatletter
+ \@namedef{doclicense@lang@thisDoc}{Dette værk er licenseret under en}
+ \makeatother
+ \makeatletter
+ \@namedef{doclicense@lang@word@license}{-licens}
+ \makeatother
+ \makeatletter
+ \@namedef{doclicense@lang@lic@CC@code}{da}
+ \makeatother
+ \makeatletter
+ \@namedef{doclicense@lang@lic@CC@by-sa@4.0}{Kreditering-DelPåSammeVilkår 4.0 International}
+ \makeatother
# recalculate page margins, since mainfont was set after documentclass
- text: |
\KOMAoptions{DIV=last}