set up packages

This commit is contained in:
Maximilian Keßler 2024-01-03 16:33:16 +01:00
parent 8497b89ed2
commit 641b48a247
Signed by: max
GPG key ID: BCC5A619923C0BA5
5 changed files with 29 additions and 0 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "latex-packages-build"]
path = latex-packages-build
url = ../../latex/latex-packages-build

3
.latexmkrc Normal file
View file

@ -0,0 +1,3 @@
ensure_path('TEXINPUTS', './LatexPackagesBuild//'); # set texinputs to find custom packages
$pdf_mode = 1; # generate a pdf file by default
$out_dir = 'build';

21
Makefile Normal file
View file

@ -0,0 +1,21 @@
pdf: init
latexmk -halt-on-error < /dev/null
clean:
latexmk -c
clean-all:
latexmk -C
rm -rf build/
## Stuff to set up repository after cloning
init: .init-submodule-cert
.init-submodule-cert:
@echo "[Make] Initialising git submodule for packages"
git submodule update --init --rebase
@touch .init-submodule-cert
.PHONY: pdf, clean, clean-all

1
export_texinputs.sh Executable file
View file

@ -0,0 +1 @@
export TEXINPUTS=LatexPackagesBuild//:

1
latex-packages-build Submodule

@ -0,0 +1 @@
Subproject commit 983a40d500bf4401e7c18ceaa960170dad133ca0