about summary refs log tree commit diff stats
path: root/common
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-04 13:15:42 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-04 13:15:42 +0200
commit5d9be1742bbf7c6be361c1580ecbb22480b655fa (patch)
tree1f659d46d84e348c02f1cc820ac45c4ec20c0c01 /common
parentbuild(templates.nix): Register new `latex/presentation` template (diff)
downloadflake-templates-5d9be1742bbf7c6be361c1580ecbb22480b655fa.tar.gz
flake-templates-5d9be1742bbf7c6be361c1580ecbb22480b655fa.zip
fix(templates/latex/presentation): Get to compile
Diffstat (limited to 'common')
-rw-r--r--common/latex/preamble.tex1
-rw-r--r--common/latex/preamble/academia/index.tex (renamed from common/latex/preamble/core/index.tex)0
-rw-r--r--common/latex/preamble/academia/mod.tex1
-rw-r--r--common/latex/preamble/core/mod.tex1
-rw-r--r--common/latex/preamble/mod.tex3
-rwxr-xr-xcommon/scripts/latex/build.sh4
6 files changed, 3 insertions, 7 deletions
diff --git a/common/latex/preamble.tex b/common/latex/preamble.tex
index d45262a..d10a02e 100644
--- a/common/latex/preamble.tex
+++ b/common/latex/preamble.tex
@@ -1,2 +1 @@
 \input{headers/preamble/mod.tex}
-\input{headers/preamble_local.tex}
diff --git a/common/latex/preamble/core/index.tex b/common/latex/preamble/academia/index.tex
index 3efbfc4..3efbfc4 100644
--- a/common/latex/preamble/core/index.tex
+++ b/common/latex/preamble/academia/index.tex
diff --git a/common/latex/preamble/academia/mod.tex b/common/latex/preamble/academia/mod.tex
index 39b9230..1f2cd71 100644
--- a/common/latex/preamble/academia/mod.tex
+++ b/common/latex/preamble/academia/mod.tex
@@ -1,4 +1,5 @@
 % derived from:
 % https://github.com/gillescastel/lecture-notes/blob/929672a96abc27eaeb6fa58b1d277b3582d28532/group-theory/preamble.tex
+\input{headers/preamble/academia/index.tex}
 \input{headers/preamble/academia/theorems/mod.tex}
 \input{headers/preamble/academia/visuals.tex}
diff --git a/common/latex/preamble/core/mod.tex b/common/latex/preamble/core/mod.tex
index 403ce58..7eaa1c0 100644
--- a/common/latex/preamble/core/mod.tex
+++ b/common/latex/preamble/core/mod.tex
@@ -7,7 +7,6 @@
 \input{headers/preamble/core/date_and_time.tex}
 \input{headers/preamble/core/encoding.tex}
 \input{headers/preamble/core/graphics_and_floats.tex}
-\input{headers/preamble/core/index.tex}
 \input{headers/preamble/core/linting.tex}
 \input{headers/preamble/core/margindate.tex}
 \input{headers/preamble/core/math.tex}
diff --git a/common/latex/preamble/mod.tex b/common/latex/preamble/mod.tex
deleted file mode 100644
index f11ff21..0000000
--- a/common/latex/preamble/mod.tex
+++ /dev/null
@@ -1,3 +0,0 @@
-\input{headers/preamble/academia/mod.tex}
-\input{headers/preamble/beamer/mod.tex}
-\input{headers/preamble/core/mod.tex}
diff --git a/common/scripts/latex/build.sh b/common/scripts/latex/build.sh
index 1ff2b6e..80ecc57 100755
--- a/common/scripts/latex/build.sh
+++ b/common/scripts/latex/build.sh
@@ -46,8 +46,8 @@ fd . "$root/figures" --type file --extension tex | while read -r figure; do
         echo "   -> Didn't change, not re-compiling."
     else
         echo "$figure_hash" >"$dst/figures/$figure_name/$figure_name.sha256sum_hash"
-        pdflatex -output-directory="$dst" -file-line-error -jobname="figures/$figure_name/$figure_name" "$figure"
+        pdflatex -output-directory="$dst" -file-line-error -jobname="figures/$figure_name/$figure_name" "$figure" || exit 1
     fi
-done
+done || exit 1
 
 latexmk -outdir="$dst" -file-line-error -pdflatex -recorder "$file"