Sebastian Walz 9f7b02e1cd
Tohu vaBohu
2023-04-03 14:38:02 +02:00

38 lines
1.2 KiB
Nix

{ context, core, thesis, ... }:
let
inherit(core) indentation list string time type;
inherit(thesis) formatAuthor;
debug = core.debug ( context ++ [ "titleMatter" ] );
in
{ authors, date, place, style, thesis, title, ... } @ document:
titleMatter:
let
authorList = string.concatWith ", " ( list.map formatAuthor authors );
in
(
[
"{" indentation.more
"\\cleardoublepage"
"\\pagenumbering{roman}"
"\\renewcommand*\\chapterpagestyle{empty}"
"\\pagestyle{empty}"
"\\currentpdfbookmark{Titelseite}{titlepage}"
"\\begin{titlepage}" indentation.more
]
++ ( style.titlePage document )
++ [
"~\\vfill"
"\\textbf{${authorList}}\\\\"
"{\\textit{${title}}}\\\\"
"${thesis.title}, ${thesis.organisation.department}\\\\"
"${thesis.organisation.name}, ${time.formatYearMonth date "deu"}"
"\\cleardoublepage"
]
++ titleMatter
++ [
indentation.less "\\end{titlepage}"
indentation.less "}"
]
)