ADD: updated Makefile to use lualatex
This commit is contained in:
parent
a3a22a4c79
commit
e62b362835
14
.latexmkrc
Normal file
14
.latexmkrc
Normal 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]'";
|
||||||
|
};
|
||||||
|
}
|
4
Makefile
4
Makefile
@ -14,7 +14,7 @@ export $TEXINPUTS
|
|||||||
|
|
||||||
DEPFLAGS = -M -MP -MF $(DEPDIR)/$*.d
|
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
|
.SECONDARY: .latexmkrc
|
||||||
.PHONY: clean watermark IEEE base
|
.PHONY: clean watermark IEEE base
|
||||||
@ -73,7 +73,7 @@ base: .gitignore .latexmkrc .git/hooks/post-commit
|
|||||||
@echo .d >> .gitignore
|
@echo .d >> .gitignore
|
||||||
|
|
||||||
.latexmkrc:
|
.latexmkrc:
|
||||||
@echo '$$pdflatex' "= 'pdflatex -interaction=nonstopmode';" >> $@
|
@cp Paper-Makefile/.latexmkrc . >> $@
|
||||||
|
|
||||||
watermark.tex:
|
watermark.tex:
|
||||||
cp Paper-Makefile/watermark.tex $@
|
cp Paper-Makefile/watermark.tex $@
|
||||||
|
Loading…
Reference in New Issue
Block a user