From baba65ef41aaa27b3544ac0bca814fec3c0568a8 Mon Sep 17 00:00:00 2001 From: Sven Vogel Date: Thu, 18 Jul 2024 12:19:35 +0200 Subject: [PATCH] changed display supplement for code blocks --- src/style.typ | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/style.typ b/src/style.typ index 0194996..cae72ee 100644 --- a/src/style.typ +++ b/src/style.typ @@ -94,6 +94,16 @@ #c.body ] + // change the display supplement according to the text langugae + // based on: https://github.com/typst/typst/issues/3273 + show figure.where(kind: raw): set figure(supplement: context { + if text.lang == "de" { + "Quelltext" + } else { + "Listing" + } + }) + // APA style table set table( inset: 0.5em,