From bc90f2dc3e8017267be72dd792d6dbbfce499d2c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 14 May 2024 21:25:39 +0200 Subject: add licensing at bottom of title page --- _report.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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} -- cgit v1.2.3