From 6d84cf4a1936f75dfbf9b378eaaf5d96daddd72f Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 25 Nov 2024 16:55:44 +0100 Subject: [PATCH] feat: add option to make supervisor signature optional --- src/conf.typ | 1 + src/pages/titlepage.typ | 34 ++++++++++++++++++---------------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/src/conf.typ b/src/conf.typ index e369388..028f367 100644 --- a/src/conf.typ +++ b/src/conf.typ @@ -24,6 +24,7 @@ name: "dualen Hochschule Baden-Württemberg", campus: "Eppelheim" ), + supervisor-signature: false, authors: ( ( name: "Sven Vogel", diff --git a/src/pages/titlepage.typ b/src/pages/titlepage.typ index 4b6f952..a91ff8c 100644 --- a/src/pages/titlepage.typ +++ b/src/pages/titlepage.typ @@ -147,22 +147,24 @@ #context panic("no translation for language: ", text.lang) ] - #align( - bottom, - grid( - // set width of columns - // we need two, so make both half the page width - columns: (60%, 40%), - align(left, if text.lang == "de" [ - Unterschrift des betrieblichen Betreuers - ] else if text.lang == "en" [ - Signature of the company supervisor - ] else [ - #context panic("no translation for language: ", text.lang) - ] - ), - align(right, {line(length: 6cm)})), - ) + #if config.supervisor-signature { + align( + bottom, + grid( + // set width of columns + // we need two, so make both half the page width + columns: (60%, 40%), + align(left, if text.lang == "de" [ + Unterschrift des betrieblichen Betreuers + ] else if text.lang == "en" [ + Signature of the company supervisor + ] else [ + #context panic("no translation for language: ", text.lang) + ] + ), + align(right, {line(length: 6cm)})), + ) + } #counter(page).update(0) ]