Compare commits

..

No commits in common. "fe427137fd3168e9b557b0259eea6cd95590c4fe" and "f49e69f2d6d4cc816e06818e51a3e65255548f5c" have entirely different histories.

9 changed files with 56 additions and 1096 deletions

View file

@ -3,18 +3,18 @@ FROM docker.io/ldericher/autodoc:diagram
# install TeXoffice
COPY --chown=root:root \
deploy/texoffice \
/opt/texlive/texdir/texmf-dist/tex/latex/texoffice/
/opt/texlive/texdir/texmf-dist/tex/latex/texoffice
# install lenaisten directory
COPY --chown=root:root \
src/lenaisten \
/opt/lenaisten/
/opt/lenaisten
# install pandoc templates
COPY --chown=root:root \
src/lev-protokoll.latex \
src/lev-dokument.latex \
/usr/local/share/pandoc/templates/
/usr/local/share/pandoc/templates
RUN set -ex; \
# reindex TeXlive (installed TeXoffice)

View file

@ -1,8 +1,7 @@
# just to convenietly be able to run "make" in the root directory
.PHONY: all protokoll dokument tex clean
all:
$(MAKE) -Csrc -flev-protokoll.mk -flev-dokument.mk -j autodoc
all: protokoll dokument
protokoll:
$(MAKE) -Csrc -flev-protokoll.mk -j autodoc
@ -11,7 +10,8 @@ dokument:
$(MAKE) -Csrc -flev-dokument.mk -j autodoc
tex:
$(MAKE) -Csrc -flev-protokoll.mk -flev-dokument.mk -j tex
$(MAKE) -Csrc -flev-protokoll.mk -j tex
$(MAKE) -Csrc -flev-dokument.mk -j tex
clean:
git clean -xdf ./src

View file

@ -1,12 +0,0 @@
#!/bin/sh
script="$( readlink -f "${0}" )"
script_dir="$( dirname "${script}" )"
repo_dir="$( readlink -f "${script_dir}/.." )"
docker buildx build \
--pull --push \
--file "${script_dir}/.publish/Dockerfile" \
--tag "code.lenaisten.de/lenaisten/lev-templates:latest" \
--platform "linux/amd64" \
"${repo_dir}"

File diff suppressed because it is too large Load diff

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 \ref{eq:neighbor-propability}.
hamos ire arceor mandere spicula, in licet aliquando.
```java
public class Example implements LoremIpsum {

View file

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

View file

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