From 18979f8f81a01deed10a82fbbc785b1d7b2ebc30 Mon Sep 17 00:00:00 2001 From: Sven Vogel Date: Mon, 8 Jul 2024 10:18:03 +0200 Subject: [PATCH] changed: raw block font is option in config --- src/conf.typ | 4 ++++ src/style.typ | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/conf.typ b/src/conf.typ index 9dae1df..cfc76ed 100644 --- a/src/conf.typ +++ b/src/conf.typ @@ -62,6 +62,10 @@ font: "Open Sans"), heading: ( font: "Montserrat"), + code: ( + theme: "res/abb.tmTheme", + font: "FiraCode Nerd Font", + tab-size: 4), link: ( color: ABB-GRAY-02))) diff --git a/src/style.typ b/src/style.typ index 863c2c9..e8c6966 100644 --- a/src/style.typ +++ b/src/style.typ @@ -53,7 +53,10 @@ show heading.where(level: 3): it => v(0.5em) + it + v(0.25em) // set theme for code blocks - set raw(tab-size: 4, theme: "res/abb.tmTheme") + set raw( + tab-size: style.code.tab-size, + theme: style.code.theme) + show raw: set text(font: style.code.font) show figure: set block(breakable: true)