Skip to content

Commit 8f06733

Browse files
authored
Merge pull request #27 from pep-dortmund/latexmkrc
Add `latexmkrc`
2 parents 5e8ffe8 + 44f0e85 commit 8f06733

File tree

2 files changed

+12
-23
lines changed

2 files changed

+12
-23
lines changed

latexmkrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
$cleanup_mode = 1;
2+
$out_dir = "build";
3+
$pdflatex = "lualatex -interaction=nonstopmode -halt-on-error --shell-escape %O %S";
4+
$pdf_mode = 1;
5+
6+
push @generated_exts, "bcf bbl";
7+
$clean_ext = "bcf bbl glg glo gls run.xml xdy"

vXXX/Makefile

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,11 @@ build/plot.pdf: plot.py ../matplotlibrc ../header-matplotlib.tex | build
1212
# hier weitere Abhängigkeiten für build/vXXX.pdf deklarieren:
1313
build/$(TEXFILE).pdf: build/plot.pdf
1414

15-
build/$(TEXFILE).pdf: FORCE | build
16-
# to find header and bib files in the main directory
17-
TEXINPUTS=..: \
18-
BIBINPUTS=..: \
19-
max_print_line=1048576 \
20-
latexmk \
21-
--lualatex \
22-
--output-directory=build \
23-
--interaction=nonstopmode \
24-
--halt-on-error \
25-
$(TEXFILE).tex
26-
27-
preview: FORCE | build
28-
TEXINPUTS=..: \
29-
BIBINPUTS=..: \
30-
max_print_line=1048576 \
31-
latexmk \
32-
-pvc \
33-
--lualatex \
34-
--output-directory=build \
35-
--interaction=nonstopmode \
36-
--halt-on-error \
37-
$(TEXFILE).tex
15+
build/$(TEXFILE).pdf: $(TEXFILE).tex FORCE | build
16+
TEXINPUTS=..: latexmk -r $$(pwd)/../latexmkrc $<
17+
18+
preview: $(TEXFILE).tex FORCE | build
19+
TEXINPUTS=..: latexmk -r $$(pwd)/../latexmkrc $<
3820

3921
build:
4022
mkdir -p build

0 commit comments

Comments
 (0)