ADD: updated Makefile to use lualatex

This commit is contained in:
Dominik Meyer 2019-05-08 15:33:41 +02:00
parent a3a22a4c79
commit e62b362835
No known key found for this signature in database
GPG Key ID: B4C312B600606B64
2 changed files with 16 additions and 2 deletions

14
.latexmkrc Normal file
View File

@ -0,0 +1,14 @@
$lualatex = 'lualatex -interaction=nonstopmode';
$pdflatex = 'pdflatex -interaction=nonstopmode';
add_cus_dep('glo', 'gls', 0, 'run_makeglossaries');
add_cus_dep('acn', 'acr', 0, 'run_makeglossaries');
sub run_makeglossaries {
if ( $silent ) {
system "makeglossaries -q '$_[0]'";
}
else {
system "makeglossaries '$_[0]'";
};
}

View File

@ -14,7 +14,7 @@ export $TEXINPUTS
DEPFLAGS = -M -MP -MF $(DEPDIR)/$*.d
LATEXMK=export TEXINPUTS=$(TEXINPUTS);latexmk -use-make -f $(DEPFLAGS) -pdf $(subst .pdf,.tex,$@) 1>>$(subst .pdf,.log,$@) 2>>$(subst .pdf,.log,$@)
LATEXMK=export TEXINPUTS=$(TEXINPUTS);latexmk -use-make -f $(DEPFLAGS) -pdflua $(subst .pdf,.tex,$@) 1>>$(subst .pdf,.log,$@) 2>>$(subst .pdf,.log,$@)
.SECONDARY: .latexmkrc
.PHONY: clean watermark IEEE base
@ -73,7 +73,7 @@ base: .gitignore .latexmkrc .git/hooks/post-commit
@echo .d >> .gitignore
.latexmkrc:
@echo '$$pdflatex' "= 'pdflatex -interaction=nonstopmode';" >> $@
@cp Paper-Makefile/.latexmkrc . >> $@
watermark.tex:
cp Paper-Makefile/watermark.tex $@