move stuff around

This commit is contained in:
Jörn-Michael Miehe 2025-05-13 08:15:10 +00:00
parent ff874e872e
commit 0ce08c8ee6
2 changed files with 12 additions and 8 deletions

View file

@ -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

View file

@ -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