use new pdftools from autodoc

This commit is contained in:
Jörn-Michael Miehe 2026-01-24 16:16:25 +00:00
parent f49e69f2d6
commit b22cc7833e
4 changed files with 13 additions and 50 deletions

View file

@ -31,7 +31,7 @@ Vinaque sanguine metuenti cuiquam Alcyone fixus
Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab
esse, obstat gravitate. Obscura atque coniuge, per de coniunx, sibi **medias
commentaque virgine** anima tamen comitemque petis, sed. In Amphion vestros
hamos ire arceor mandere spicula, in licet aliquando.
hamos ire arceor mandere spicula, in licet aliquando \ref{eq:neighbor-propability}.
```java
public class Example implements LoremIpsum {

View file

@ -1,37 +0,0 @@
include /usr/local/share/autodoc/pdftools.mk
# compile markdown using pandoc
# params:
# 1: input file
# 2: pandoc template
# 3: output format
# 4: output file
compile_md = pandoc \
$(1) \
--standalone \
--from markdown \
--to $(3) \
--template $(2) \
$(addprefix --variable ,$(PANDOCVARS)) \
$(PANDOCFLAGS) \
--output $(4)
# convert markdown to LaTeX
# params:
# 1: input file
# 2: pandoc template
# 3: output file
md2tex = $(call compile_md,$(1),$(2),latex,$(3))
# convert markdown to PDF
# params:
# 1: input file
# 2: pandoc template
# 3: output file
md2pdf = $(call compile_md,$(1),$(2),pdf,-) | $(call pdftools_pdfcat,-,$(3))
# convert markdown to PDF/A 2-b
# 1: input file
# 2: pandoc template
# 3: output file
md2pdfa = $(call md2pdf,$(1),$(2),-) | $(call pdftools_mkpdfa,3,-,$(3))

View file

@ -1,11 +1,11 @@
#%SRCPAT% \.dok\.md
include /opt/lenaisten/compile-md.mk
include /usr/local/share/autodoc/pdftools.mk
PANDOCVARS := \
colorlinks:true \
csquotes:true \
hyperrefoptions:pdfa \
linkcolor:violet \
urlcolor:violet \
lang:de-DE \
tables:true
@ -26,9 +26,9 @@ tex: $(texFiles)
# pdf
%.pdf: %.dok.md
$(call md2pdfa,$<,lev-dokument,$@)
$(call pdftools_md2pdfa_auto,lev-dokument)
# tex
%.tex: %.dok.md
$(call md2tex,$<,lev-dokument,$@)
$(call pdftools_md2tex_auto,lev-dokument)

View file

@ -1,11 +1,11 @@
#%SRCPAT% \.prot\.md
include /opt/lenaisten/compile-md.mk
include /usr/local/share/autodoc/pdftools.mk
PANDOCVARS := \
colorlinks:true \
csquotes:true \
hyperrefoptions:pdfa \
linkcolor:violet \
urlcolor:violet \
lang:de-DE
suffixPub :=
@ -31,15 +31,15 @@ tex: $(texFilesPub) $(texFilesInt)
# pdf
%$(suffixPub).pdf: %.prot.md lev-shorthands.sty
/opt/lenaisten/redact.py $< | $(call md2pdfa,-,lev-protokoll,$@)
/opt/lenaisten/redact.py $< | $(call pdftools_md2pdfa,-,lev-protokoll,$@)
%$(suffixInt).pdf: %.prot.md lev-shorthands.sty
/opt/lenaisten/redact.py --internal $< | $(call md2pdfa,-,lev-protokoll,$@)
/opt/lenaisten/redact.py --internal $< | $(call pdftools_md2pdfa,-,lev-protokoll,$@)
# tex
%$(suffixPub).tex: %.prot.md lev-shorthands.sty
/opt/lenaisten/redact.py $< | $(call compile_md,-,lev-protokoll,latex,$@)
/opt/lenaisten/redact.py $< | $(call pdftools_md2tex,-,lev-protokoll,latex,$@)
%$(suffixInt).tex: %.prot.md lev-shorthands.sty
/opt/lenaisten/redact.py --internal $< | $(call compile_md,-,lev-protokoll,latex,$@)
/opt/lenaisten/redact.py --internal $< | $(call pdftools_md2tex,-,lev-protokoll,latex,$@)