aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}