diff --git a/latexmkrc b/latexmkrc new file mode 100644 index 0000000..d229d20 --- /dev/null +++ b/latexmkrc @@ -0,0 +1,7 @@ +$cleanup_mode = 1; +$out_dir = "build"; +$pdflatex = "lualatex -interaction=nonstopmode -halt-on-error --shell-escape %O %S"; +$pdf_mode = 1; + +push @generated_exts, "bcf bbl"; +$clean_ext = "bcf bbl glg glo gls run.xml xdy" diff --git a/vXXX/Makefile b/vXXX/Makefile index abbd1cc..52d901c 100644 --- a/vXXX/Makefile +++ b/vXXX/Makefile @@ -12,29 +12,11 @@ build/plot.pdf: plot.py ../matplotlibrc ../header-matplotlib.tex | build # hier weitere Abhängigkeiten für build/vXXX.pdf deklarieren: build/$(TEXFILE).pdf: build/plot.pdf -build/$(TEXFILE).pdf: FORCE | build - # to find header and bib files in the main directory - TEXINPUTS=..: \ - BIBINPUTS=..: \ - max_print_line=1048576 \ - latexmk \ - --lualatex \ - --output-directory=build \ - --interaction=nonstopmode \ - --halt-on-error \ - $(TEXFILE).tex - -preview: FORCE | build - TEXINPUTS=..: \ - BIBINPUTS=..: \ - max_print_line=1048576 \ - latexmk \ - -pvc \ - --lualatex \ - --output-directory=build \ - --interaction=nonstopmode \ - --halt-on-error \ - $(TEXFILE).tex +build/$(TEXFILE).pdf: $(TEXFILE).tex FORCE | build + TEXINPUTS=..: latexmk -r $$(pwd)/../latexmkrc $< + +preview: $(TEXFILE).tex FORCE | build + TEXINPUTS=..: latexmk -r $$(pwd)/../latexmkrc $< build: mkdir -p build