From b99a7704639ad34cc68c9589b421c4af3bc7265d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Mon, 12 May 2025 01:25:05 +0000 Subject: [PATCH] add /opt/lenaisten to devcontainer --- .devcontainer/Dockerfile | 5 +++++ .../lenaisten/logo/flat.png | 0 .../lenaisten/redact.py | 0 Makefile | 20 ++++++++++--------- lenaisten.latex => lev-protokoll.latex | 6 +++--- lenaisten-defs.sty => lev-shorthands.sty | 2 +- 6 files changed, 20 insertions(+), 13 deletions(-) rename logo.png => .devcontainer/lenaisten/logo/flat.png (100%) rename redact.py => .devcontainer/lenaisten/redact.py (100%) rename lenaisten.latex => lev-protokoll.latex (99%) rename lenaisten-defs.sty => lev-shorthands.sty (95%) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 8c7f75f..c88d316 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -9,3 +9,8 @@ COPY --chown=root:root \ /opt/texlive/texdir/texmf-dist/tex/latex/texoffice RUN /opt/texlive/texdir/bin/default/texconfig rehash + +# install lenaisten directory +COPY --chown=root:root \ + lenaisten \ + /opt/lenaisten diff --git a/logo.png b/.devcontainer/lenaisten/logo/flat.png similarity index 100% rename from logo.png rename to .devcontainer/lenaisten/logo/flat.png diff --git a/redact.py b/.devcontainer/lenaisten/redact.py similarity index 100% rename from redact.py rename to .devcontainer/lenaisten/redact.py diff --git a/Makefile b/Makefile index c5314ba..44db3e5 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +#%SRCPAT% \.md + ############ # Settings # ############ @@ -41,7 +43,7 @@ compile_md = pandoc \ --standalone \ --from markdown \ --to $(1) \ - --template lenaisten \ + --template lev-protokoll \ --variable colorlinks:true \ --variable csquotes:true \ --variable lang:de-DE \ @@ -81,16 +83,16 @@ md2pdfa = $(call md2pdf,$(1),-) | $(call convert_pdfa,-,$(2)) # pdf -%$(suffixPub).pdf: %.md lenaisten-defs.sty - python3 ./redact.py $< | $(call md2pdfa,-,$@) +%$(suffixPub).pdf: %.md lev-shorthands.sty + python3 /opt/lenaisten/redact.py $< | $(call md2pdfa,-,$@) -%$(suffixInt).pdf: %.md lenaisten-defs.sty - python3 ./redact.py -i $< | $(call md2pdfa,-,$@) +%$(suffixInt).pdf: %.md lev-shorthands.sty + python3 /opt/lenaisten/redact.py -i $< | $(call md2pdfa,-,$@) # tex -%$(suffixPub).tex: %.md lenaisten-defs.sty - python3 ./redact.py $< | $(call compile_md,latex,-,$@) +%$(suffixPub).tex: %.md lev-shorthands.sty + python3 /opt/lenaisten/redact.py $< | $(call compile_md,latex,-,$@) -%$(suffixInt).tex: %.md lenaisten-defs.sty - python3 ./redact.py -i $< | $(call compile_md,latex,-,$@) +%$(suffixInt).tex: %.md lev-shorthands.sty + python3 /opt/lenaisten/redact.py -i $< | $(call compile_md,latex,-,$@) diff --git a/lenaisten.latex b/lev-protokoll.latex similarity index 99% rename from lenaisten.latex rename to lev-protokoll.latex index a1f5c71..26a022d 100644 --- a/lenaisten.latex +++ b/lev-protokoll.latex @@ -575,7 +575,7 @@ $endif$ %BOOKMARK begin lenaisten pre \usepackage[fixed]{fontawesome5} -\usepackage{lenaisten-defs} +\usepackage{lev-shorthands} \usepackage{lastpage} \usepackage{to-geom} \usepackage{graphicx} @@ -599,7 +599,7 @@ $endif$ hshift=-3cm, vshift=-3cm, contents={% - \includegraphics[width=2cm]{logo.png}% + \includegraphics[width=2cm]{/opt/lenaisten/logo/flat.png}% }% } @@ -1007,7 +1007,7 @@ $endif$ {\usekomafont{date}\@date\par}% \makeatother% \vskip 2cm% - \includegraphics[width=2cm]{logo.png}% + \includegraphics[width=2cm]{/opt/lenaisten/logo/flat.png}% \vfill% \renewcommand{\arraystretch}{2}% \begin{tabular}{c@{\hskip .25em}lll}% diff --git a/lenaisten-defs.sty b/lev-shorthands.sty similarity index 95% rename from lenaisten-defs.sty rename to lev-shorthands.sty index 57b8f50..6823cc5 100644 --- a/lenaisten-defs.sty +++ b/lev-shorthands.sty @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{lenaisten-defs}[2025/05/08 Lenaistenpaket 2025] +\ProvidesPackage{lev-shorthands}[2025/05/08 Lenaistenpaket 2025] % Namenskürzel % Vorstand