Compare commits
4 commits
f49e69f2d6
...
fe427137fd
| Author | SHA1 | Date | |
|---|---|---|---|
| fe427137fd | |||
| 714695947e | |||
| 113e1238be | |||
| b22cc7833e |
9 changed files with 1096 additions and 56 deletions
6
Makefile
6
Makefile
|
|
@ -1,7 +1,8 @@
|
|||
# just to convenietly be able to run "make" in the root directory
|
||||
|
||||
.PHONY: all protokoll dokument tex clean
|
||||
all: protokoll dokument
|
||||
all:
|
||||
$(MAKE) -Csrc -flev-protokoll.mk -flev-dokument.mk -j autodoc
|
||||
|
||||
protokoll:
|
||||
$(MAKE) -Csrc -flev-protokoll.mk -j autodoc
|
||||
|
|
@ -10,8 +11,7 @@ dokument:
|
|||
$(MAKE) -Csrc -flev-dokument.mk -j autodoc
|
||||
|
||||
tex:
|
||||
$(MAKE) -Csrc -flev-protokoll.mk -j tex
|
||||
$(MAKE) -Csrc -flev-dokument.mk -j tex
|
||||
$(MAKE) -Csrc -flev-protokoll.mk -flev-dokument.mk -j tex
|
||||
|
||||
clean:
|
||||
git clean -xdf ./src
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
12
chores/publish
Executable file
12
chores/publish
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/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}"
|
||||
1065
docs/eisvogel-3.3.0.latex
Normal file
1065
docs/eisvogel-3.3.0.latex
Normal file
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
|
||||
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 {
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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,$@)
|
||||
|
|
|
|||
Loading…
Reference in a new issue