about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-03 21:01:30 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-03 21:01:30 +0200
commitb9372c89cac00c7e5afa075e0a722c5c81697844 (patch)
tree2bc4694624f451963ccecfa5dec8398ae581af84
parentchore(build): Regenerate (diff)
downloadflake-templates-b9372c89cac00c7e5afa075e0a722c5c81697844.tar.gz
flake-templates-b9372c89cac00c7e5afa075e0a722c5c81697844.zip
fix(templates/latex/letter): Also expose `init.local`
-rwxr-xr-xcommon/inits/latex/init.local28
l---------[-rwxr-xr-x]templates/latex/academia/init.local29
l---------templates/latex/letter/init.local1
3 files changed, 30 insertions, 28 deletions
diff --git a/common/inits/latex/init.local b/common/inits/latex/init.local
new file mode 100755
index 0000000..ae57756
--- /dev/null
+++ b/common/inits/latex/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
diff --git a/templates/latex/academia/init.local b/templates/latex/academia/init.local
index ae57756..e1f9d58 100755..120000
--- a/templates/latex/academia/init.local
+++ b/templates/latex/academia/init.local
@@ -1,28 +1 @@
-#!/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
+../../../common/inits/latex/init.local
\ No newline at end of file
diff --git a/templates/latex/letter/init.local b/templates/latex/letter/init.local
new file mode 120000
index 0000000..e1f9d58
--- /dev/null
+++ b/templates/latex/letter/init.local
@@ -0,0 +1 @@
+../../../common/inits/latex/init.local
\ No newline at end of file