Compare commits

...

2 Commits

Author SHA1 Message Date
6ac133b53a Makefile/flake.nix: use latexmk 2025-04-21 21:28:39 +02:00
ff7e886faa Makefile: add all cards at once 2025-04-21 21:18:33 +02:00
3 changed files with 5 additions and 6 deletions

3
.gitignore vendored
View File

@ -1,6 +1,7 @@
*.out
*.log
*.aux
*.fls
*.fdb_latexmk
_minted-*
build

View File

@ -1,13 +1,13 @@
inputs = 1124 1125 2118-2128 2238 2245 4410-4412 4456 5108 5432 5518-5528 5568 7210
inputs = 1008 1106 1124 1125 2118-2128 2238 2245 4410-4412 4456-4457 4624 5108 5432 5632 5633 5518-5528 5538 5568 6302 7210
dir = build
all: $(inputs)
$(inputs) : % : %.tex
pdflatex -shell-escape $@.tex
latexmk -pdf -pdflatex="pdflatex -shell-escape" $@.tex
if ! test -d "$(dir)"; then mkdir build; fi
mv $@.pdf build/
rm $@.log
clean:
rm -rf _minted* *.aux *.out
rm -rf _minted* *.aux *.out *.fls *.fdb_latexmk

View File

@ -24,10 +24,8 @@
name = "datasheets-pdfs";
src = self;
buildInputs = [ latex-pkgs ] ++ python-pkgs;
# is there a better way to get .aux/.out files correct than to just run latexpdf twice?
buildPhase = ''
make all
make all
'';
installPhase = ''
mkdir $out