From 81772d771888569acbffcccab53a27ae782c70f4 Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 25 Nov 2024 16:45:17 +0100 Subject: [PATCH] feat: add custom bilbiography titles --- src/lib.typ | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/src/lib.typ b/src/lib.typ index 18f269d..812412d 100644 --- a/src/lib.typ +++ b/src/lib.typ @@ -122,17 +122,27 @@ #metadata("content terminate") - #end_styled(config)[ - // add bibliography if set - #if "bibliography" in config.thesis and config.thesis.bibliography != none { - pagebreak(weak: true) - counter(page).update(1) - set bibliography(style: "ieee") - config.thesis.bibliography - } + #end_styled( + config, + context [ + // add bibliography if set + #if "bibliography" in config.thesis and config.thesis.bibliography != none { + pagebreak(weak: true) + counter(page).update(1) + set bibliography( + style: "ieee", + title: if (text.lang == "de") { + "Literaturverzeichnis" + } else if text.lang == "en" { + "Bibliography" + }, + ) + config.thesis.bibliography + } - // appendix - #show-appendix(config: config) - ] + // appendix + #show-appendix(config: config) + ], + ) ] ]