add localization option

This commit is contained in:
dogeystamp 2023-11-09 20:51:19 -05:00
parent 7e9ee7e756
commit 4257b35b7e
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 9 additions and 1 deletions

View File

@ -10,4 +10,5 @@ fi
cat <<EOF > $1
prefix: "$TYPST_ROOT"
me: "$USER"
lang: "en"
EOF

View File

@ -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 => {