diff --git a/src/lenaisten/lev-templates.mk b/src/lenaisten/compile-md.mk similarity index 88% rename from src/lenaisten/lev-templates.mk rename to src/lenaisten/compile-md.mk index 8c6d08b..615c750 100644 --- a/src/lenaisten/lev-templates.mk +++ b/src/lenaisten/compile-md.mk @@ -10,10 +10,8 @@ compile_md = pandoc \ --from markdown \ --to $(3) \ --template $(2) \ - --variable colorlinks:true \ - --variable csquotes:true \ - --variable hyperrefoptions:pdfa \ - --variable lang:de-DE \ + $(addprefix --variable ,$(PANDOCVARS)) \ + $(PANDOCFLAGS) \ --output $(4) GSFLAGS := \ @@ -57,7 +55,7 @@ convert_pdfa = /opt/pdfa/bin/gs-919-linux_x86_64 \ # 3: output file md2pdf = $(call compile_md,$(1),$(2),pdf,-) | $(call postprocess_pdf,-,$(3)) -# convert markdown to PDF +# convert markdown to PDF/A 2-b # 1: input file # 2: pandoc template # 3: output file diff --git a/src/lev-protokoll.mk b/src/lev-protokoll.mk index a1ed352..892dd68 100644 --- a/src/lev-protokoll.mk +++ b/src/lev-protokoll.mk @@ -1,6 +1,12 @@ #%SRCPAT% \.prot\.md -include /opt/lenaisten/lev-templates.mk +include /opt/lenaisten/compile-md.mk + +PANDOCVARS := \ + colorlinks:true \ + csquotes:true \ + hyperrefoptions:pdfa \ + lang:de-DE suffixPub := suffixInt := _intern @@ -9,9 +15,9 @@ mdFiles := $(wildcard *.prot.md) mdSuffix = $(patsubst %.prot.md,%$(1),$(mdFiles)) pdfFilesPub := $(call mdSuffix,$(suffixPub).pdf) -texFilesPub := $(call mdSuffix,$(suffixPub).tex) - pdfFilesInt := $(call mdSuffix,$(suffixInt).pdf) + +texFilesPub := $(call mdSuffix,$(suffixPub).tex) texFilesInt := $(call mdSuffix,$(suffixInt).tex) .PHONY: all autodoc