This commit is contained in:
2019-06-17 17:15:12 +02:00
parent 66e3ad042a
commit 5eb22d8cd3
7 changed files with 623 additions and 100 deletions

View File

@@ -2,7 +2,7 @@ default: pdf
# Constants.
rootname = main
rootfile = $(rootname).tex
rootfile = src/$(rootname).tex
outdir = build
outfile = $(outdir)/$(rootname).pdf
@@ -10,7 +10,7 @@ outfile = $(outdir)/$(rootname).pdf
compress = gs -sDEVICE=pdfwrite -dPDFSETTINGS=/$(1) -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$(outdir)/$(rootname)-$(1).pdf $(outfile)
# Latex command to build pdf file.
latexmk = TEXINPUTS=.:./tlsflyleaf/: latexmk -lualatex -f -latexoption=-shell-escape -interaction=nonstopmode $< -outdir=$(outdir) $(1) $(rootfile)
latexmk = TEXINPUTS=.:./tlsflyleaf/:./src/: latexmk -lualatex -f -latexoption=-shell-escape -interaction=nonstopmode $< -outdir=$(outdir) $(1) $(rootfile)
# Build PDF version adapted to printers.
printer: pdf