From 4257b35b7e3e00b1ab2fc0378a340521e732aac8 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Thu, 9 Nov 2023 20:51:19 -0500 Subject: [PATCH] add localization option --- gensettings.sh | 1 + main.typ | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gensettings.sh b/gensettings.sh index f986ef1..c91cbfa 100755 --- a/gensettings.sh +++ b/gensettings.sh @@ -10,4 +10,5 @@ fi cat < $1 prefix: "$TYPST_ROOT" me: "$USER" +lang: "en" EOF diff --git a/main.typ b/main.typ index cfae0d0..7fd6b38 100644 --- a/main.typ +++ b/main.typ @@ -1,5 +1,12 @@ // main template that everything inherits from +#import "@preview/tablex:0.0.6": tablex + +#let tablef = tablex.with( + align: center + horizon, + auto-vlines: false +) + #let script-size = 9pt #let footnote-size = 8pt #let small-size = 8pt @@ -93,7 +100,7 @@ // Content to wrap body, ) = { - set text(size: normal-size, font: font, weight: "regular") + set text(size: normal-size, font: font, weight: "regular", lang: settings.lang) show link: body => text(fill: rgb("#777777"), weight: "bold", body) show math.equation: eq => eq show figure: fig => {