Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions latexmkrc
Original file line number Diff line number Diff line change
@@ -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"
28 changes: 5 additions & 23 deletions vXXX/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down