Compare commits
No commits in common. "fe427137fd3168e9b557b0259eea6cd95590c4fe" and "f49e69f2d6d4cc816e06818e51a3e65255548f5c" have entirely different histories.
fe427137fd
...
f49e69f2d6
9 changed files with 56 additions and 1096 deletions
|
|
@ -3,18 +3,18 @@ FROM docker.io/ldericher/autodoc:diagram
|
||||||
# install TeXoffice
|
# install TeXoffice
|
||||||
COPY --chown=root:root \
|
COPY --chown=root:root \
|
||||||
deploy/texoffice \
|
deploy/texoffice \
|
||||||
/opt/texlive/texdir/texmf-dist/tex/latex/texoffice/
|
/opt/texlive/texdir/texmf-dist/tex/latex/texoffice
|
||||||
|
|
||||||
# install lenaisten directory
|
# install lenaisten directory
|
||||||
COPY --chown=root:root \
|
COPY --chown=root:root \
|
||||||
src/lenaisten \
|
src/lenaisten \
|
||||||
/opt/lenaisten/
|
/opt/lenaisten
|
||||||
|
|
||||||
# install pandoc templates
|
# install pandoc templates
|
||||||
COPY --chown=root:root \
|
COPY --chown=root:root \
|
||||||
src/lev-protokoll.latex \
|
src/lev-protokoll.latex \
|
||||||
src/lev-dokument.latex \
|
src/lev-dokument.latex \
|
||||||
/usr/local/share/pandoc/templates/
|
/usr/local/share/pandoc/templates
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
# reindex TeXlive (installed TeXoffice)
|
# reindex TeXlive (installed TeXoffice)
|
||||||
6
Makefile
6
Makefile
|
|
@ -1,8 +1,7 @@
|
||||||
# just to convenietly be able to run "make" in the root directory
|
# just to convenietly be able to run "make" in the root directory
|
||||||
|
|
||||||
.PHONY: all protokoll dokument tex clean
|
.PHONY: all protokoll dokument tex clean
|
||||||
all:
|
all: protokoll dokument
|
||||||
$(MAKE) -Csrc -flev-protokoll.mk -flev-dokument.mk -j autodoc
|
|
||||||
|
|
||||||
protokoll:
|
protokoll:
|
||||||
$(MAKE) -Csrc -flev-protokoll.mk -j autodoc
|
$(MAKE) -Csrc -flev-protokoll.mk -j autodoc
|
||||||
|
|
@ -11,7 +10,8 @@ dokument:
|
||||||
$(MAKE) -Csrc -flev-dokument.mk -j autodoc
|
$(MAKE) -Csrc -flev-dokument.mk -j autodoc
|
||||||
|
|
||||||
tex:
|
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:
|
clean:
|
||||||
git clean -xdf ./src
|
git clean -xdf ./src
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
@ -31,7 +31,7 @@ Vinaque sanguine metuenti cuiquam Alcyone fixus
|
||||||
Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab
|
Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab
|
||||||
esse, obstat gravitate. Obscura atque coniuge, per de coniunx, sibi **medias
|
esse, obstat gravitate. Obscura atque coniuge, per de coniunx, sibi **medias
|
||||||
commentaque virgine** anima tamen comitemque petis, sed. In Amphion vestros
|
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
|
```java
|
||||||
public class Example implements LoremIpsum {
|
public class Example implements LoremIpsum {
|
||||||
|
|
|
||||||
37
src/lenaisten/compile-md.mk
Normal file
37
src/lenaisten/compile-md.mk
Normal 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))
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
#%SRCPAT% \.dok\.md
|
#%SRCPAT% \.dok\.md
|
||||||
|
|
||||||
include /usr/local/share/autodoc/pdftools.mk
|
include /opt/lenaisten/compile-md.mk
|
||||||
|
|
||||||
PANDOCVARS := \
|
PANDOCVARS := \
|
||||||
colorlinks:true \
|
colorlinks:true \
|
||||||
linkcolor:violet \
|
csquotes:true \
|
||||||
urlcolor:violet \
|
hyperrefoptions:pdfa \
|
||||||
lang:de-DE \
|
lang:de-DE \
|
||||||
tables:true
|
tables:true
|
||||||
|
|
||||||
|
|
@ -26,9 +26,9 @@ tex: $(texFiles)
|
||||||
# pdf
|
# pdf
|
||||||
|
|
||||||
%.pdf: %.dok.md
|
%.pdf: %.dok.md
|
||||||
$(call pdftools_md2pdfa_auto,lev-dokument)
|
$(call md2pdfa,$<,lev-dokument,$@)
|
||||||
|
|
||||||
# tex
|
# tex
|
||||||
|
|
||||||
%.tex: %.dok.md
|
%.tex: %.dok.md
|
||||||
$(call pdftools_md2tex_auto,lev-dokument)
|
$(call md2tex,$<,lev-dokument,$@)
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
#%SRCPAT% \.prot\.md
|
#%SRCPAT% \.prot\.md
|
||||||
|
|
||||||
include /usr/local/share/autodoc/pdftools.mk
|
include /opt/lenaisten/compile-md.mk
|
||||||
|
|
||||||
PANDOCVARS := \
|
PANDOCVARS := \
|
||||||
colorlinks:true \
|
colorlinks:true \
|
||||||
linkcolor:violet \
|
csquotes:true \
|
||||||
urlcolor:violet \
|
hyperrefoptions:pdfa \
|
||||||
lang:de-DE
|
lang:de-DE
|
||||||
|
|
||||||
suffixPub :=
|
suffixPub :=
|
||||||
|
|
@ -31,15 +31,15 @@ tex: $(texFilesPub) $(texFilesInt)
|
||||||
# pdf
|
# pdf
|
||||||
|
|
||||||
%$(suffixPub).pdf: %.prot.md lev-shorthands.sty
|
%$(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
|
%$(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
|
# tex
|
||||||
|
|
||||||
%$(suffixPub).tex: %.prot.md lev-shorthands.sty
|
%$(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
|
%$(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,$@)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue