diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-03 21:02:09 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-03 21:02:09 +0200 |
commit | 0f4e1699e7eeaf393cebfd4b35a3be3b5a58fc75 (patch) | |
tree | dfa5503ef4924f107755e1258d64550c6c29345d | |
parent | fix(templates/latex/letter): Also expose `init.local` (diff) | |
download | flake-templates-0f4e1699e7eeaf393cebfd4b35a3be3b5a58fc75.tar.gz flake-templates-0f4e1699e7eeaf393cebfd4b35a3be3b5a58fc75.zip |
chore(build): Update
-rwxr-xr-x | build/latex/letter/init.local | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/build/latex/letter/init.local b/build/latex/letter/init.local new file mode 100755 index 0000000..ae57756 --- /dev/null +++ b/build/latex/letter/init.local @@ -0,0 +1,28 @@ +#!/usr/bin/env sh + +prompt LANGUAGE "The language to use in the latex documents" "en_GB" + +bable_language="" +case "$LANGUAGE" in +"en_GB") + bable_language="british" + ;; +en_*) + bable_language="english" + ;; +de_DE | de_*) + bable_language="ngerman" + ;; + +*) + echo "'$LANGUAGE' is not yet recognized by the init.local script! Please open an issue." 1>&2 + echo "set 'BABLE_LANGUAGE' to 'NOT_YET_RECOGNIZED_PLEASE_REPLACE' to help you find instances of the variable use." 1>&2 + bable_language="NOT_YET_RECOGNIZED_PLEASE_REPLACE" + ;; +esac + +prompt BABLE_LANGUAGE "The language to use for the bable package" "$bable_language" "dont_ask" +prompt DATE_TIME_LANGUAGE "The language to use for the datetime2 package" "$(echo "$LANGUAGE" | sed 's/_/-/g')" "dont_ask" +prompt SIUNITX_LANGUAGE "The language to use for the siunitx package" "$(echo "$LANGUAGE" | sed 's/\(\w\w\).*/\U\1/')" "dont_ask" + +# vim: ft=sh |