move stuff around
This commit is contained in:
parent
ff874e872e
commit
0ce08c8ee6
2 changed files with 12 additions and 8 deletions
|
@ -10,10 +10,8 @@ compile_md = pandoc \
|
||||||
--from markdown \
|
--from markdown \
|
||||||
--to $(3) \
|
--to $(3) \
|
||||||
--template $(2) \
|
--template $(2) \
|
||||||
--variable colorlinks:true \
|
$(addprefix --variable ,$(PANDOCVARS)) \
|
||||||
--variable csquotes:true \
|
$(PANDOCFLAGS) \
|
||||||
--variable hyperrefoptions:pdfa \
|
|
||||||
--variable lang:de-DE \
|
|
||||||
--output $(4)
|
--output $(4)
|
||||||
|
|
||||||
GSFLAGS := \
|
GSFLAGS := \
|
||||||
|
@ -57,7 +55,7 @@ convert_pdfa = /opt/pdfa/bin/gs-919-linux_x86_64 \
|
||||||
# 3: output file
|
# 3: output file
|
||||||
md2pdf = $(call compile_md,$(1),$(2),pdf,-) | $(call postprocess_pdf,-,$(3))
|
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
|
# 1: input file
|
||||||
# 2: pandoc template
|
# 2: pandoc template
|
||||||
# 3: output file
|
# 3: output file
|
|
@ -1,6 +1,12 @@
|
||||||
#%SRCPAT% \.prot\.md
|
#%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 :=
|
suffixPub :=
|
||||||
suffixInt := _intern
|
suffixInt := _intern
|
||||||
|
@ -9,9 +15,9 @@ mdFiles := $(wildcard *.prot.md)
|
||||||
mdSuffix = $(patsubst %.prot.md,%$(1),$(mdFiles))
|
mdSuffix = $(patsubst %.prot.md,%$(1),$(mdFiles))
|
||||||
|
|
||||||
pdfFilesPub := $(call mdSuffix,$(suffixPub).pdf)
|
pdfFilesPub := $(call mdSuffix,$(suffixPub).pdf)
|
||||||
texFilesPub := $(call mdSuffix,$(suffixPub).tex)
|
|
||||||
|
|
||||||
pdfFilesInt := $(call mdSuffix,$(suffixInt).pdf)
|
pdfFilesInt := $(call mdSuffix,$(suffixInt).pdf)
|
||||||
|
|
||||||
|
texFilesPub := $(call mdSuffix,$(suffixPub).tex)
|
||||||
texFilesInt := $(call mdSuffix,$(suffixInt).tex)
|
texFilesInt := $(call mdSuffix,$(suffixInt).tex)
|
||||||
|
|
||||||
.PHONY: all autodoc
|
.PHONY: all autodoc
|
||||||
|
|
Loading…
Reference in a new issue