From eaa9b5f84493c011760dfdc368d707b979850ef6 Mon Sep 17 00:00:00 2001 From: servostar Date: Tue, 15 Apr 2025 17:55:06 +0200 Subject: [PATCH] fix: allow disabeling statement pages --- src/conf.typ | 2 ++ src/pages/confidentiality-statement.typ | 4 ++++ src/pages/declaration-of-authorship.typ | 4 ++++ template/main.typ | 2 ++ 4 files changed, 12 insertions(+) diff --git a/src/conf.typ b/src/conf.typ index 770732a..f44e56b 100644 --- a/src/conf.typ +++ b/src/conf.typ @@ -42,6 +42,8 @@ bibliography: none, /* bibliography("refs.bib") */ glossary: none, appendices: none, + confidentiality: true, + authorship: true, ), style: ( header: ( diff --git a/src/pages/confidentiality-statement.typ b/src/pages/confidentiality-statement.typ index b5dedb1..6a9d22e 100644 --- a/src/pages/confidentiality-statement.typ +++ b/src/pages/confidentiality-statement.typ @@ -8,6 +8,10 @@ #let new_confidentiality_statement_page(config) = ( context { + if not config.thesis.confidentiality { + return + } + pagebreak(weak: true) let thesis = config.thesis diff --git a/src/pages/declaration-of-authorship.typ b/src/pages/declaration-of-authorship.typ index 1e62bae..8223aee 100644 --- a/src/pages/declaration-of-authorship.typ +++ b/src/pages/declaration-of-authorship.typ @@ -8,6 +8,10 @@ #let new_declaration_of_authorship(config) = ( context { + if not config.thesis.authorship { + return + } + pagebreak(weak: true) let thesis = config.thesis diff --git a/template/main.typ b/template/main.typ index 4cbaca5..5d4cb1c 100644 --- a/template/main.typ +++ b/template/main.typ @@ -40,6 +40,8 @@ bibliography: bibliography("refs.bib"), glossary: yaml("glossary.yml"), appendices: include "appendix.typ", + confidentiality: false, + authorship: false ), style: ( header: (