lev-dokument Revisionsliste

This commit is contained in:
Jörn-Michael Miehe 2025-05-15 22:12:23 +00:00
parent cd13b8f4c0
commit 55d12f7c96
3 changed files with 64 additions and 4 deletions

View file

@ -1,13 +1,26 @@
---
title: Example PDF
author: Der Vorstand des Lenaisten e.V.
revision: 0.1-alpha
date: 30.11.2320
subject: Markdown
keywords: [Markdown, Example]
footer: Hier könnte Ihre Werbung stehen
Revision: "0.1-alpha"
Revisionsliste:
- Revision: 0.1-prealpha
Datum: 55.10.2320
Autor: Max Mustermann
Notizen: |
Ein Frosch auf Crack \newline
Eine Birne mit Bier
- Revision: 0.1-alpha
Datum: 30.11.2320
Autor: Jörn-Michael Miehe \newline \enquote{LDericher}
Notizen: Erste veröffentlichte Fassung
...
Vinaque sanguine metuenti cuiquam Alcyone fixus
@ -159,7 +172,7 @@ caelestum flammas ferre super et saevissime inmisit quoque suis sic aspergine
vis praerupit. Et puellae summa eventu.
Placeat ut medio *plectrumque inferni* Talia; pertimui opem.
\newpage
<!-- \newpage
Revisionsliste
=====
@ -168,4 +181,4 @@ Revisionsliste
| **Revision** | **Datum** | **Beschreibung** |
+:=============+:==========:+:==============================+
| 0.1-alpha | 30.11.2320 | Erste veröffentlichte Fassung |
+--------------+------------+-------------------------------+
+--------------+------------+-------------------------------+ -->

View file

@ -1017,6 +1017,8 @@ $endif$
{\usekomafont{title}\@title\par}%
\vskip 1em%
{\usekomafont{author}\@author\par}%
$if(revision)$\vskip 1em%
{\usekomafont{date}Revision: $revision$\par}$endif$%
\vskip 1em%
{\usekomafont{date}\@date\par}%
\makeatother%
@ -1110,6 +1112,50 @@ $if(has-frontmatter)$
$endif$
$body$
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%BOOKMARK begin lenaisten Revisionsliste
$if(Revisionsliste)$
\newpage
\section{Revisionsliste}
\begin{longtable}{%
@{}%
p{(\linewidth - 6\tabcolsep) * \real{0.15}}%
>{\centering\arraybackslash}%
p{(\linewidth - 6\tabcolsep) * \real{0.15}}%
p{(\linewidth - 6\tabcolsep) * \real{0.25}}%
p{(\linewidth - 6\tabcolsep) * \real{0.45}}%
@{}%
}%
\toprule%
\textbf{Revision} & \textbf{Datum} & \textbf{Autor} & \textbf{Notizen} \\%
\midrule%
\endfirsthead%
%
\toprule%
\textbf{Revision} & \textbf{Datum} & \textbf{Autor} & \textbf{Notizen} \\%
\midrule%
\endhead%
%
\bottomrule%
\endfoot%
%
\bottomrule%
\endlastfoot%
$for(Revisionsliste)$%
$Revisionsliste.Revision$ &
$Revisionsliste.Datum$ &
$Revisionsliste.Autor$ &
$Revisionsliste.Notizen$$sep$ \\ \midrule
$endfor$ \\
%
\end{longtable}%
$endif$
%BOOKMARK end lenaisten Revisionsliste
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
$if(has-frontmatter)$
\backmatter
$endif$

View file

@ -6,7 +6,8 @@ PANDOCVARS := \
colorlinks:true \
csquotes:true \
hyperrefoptions:pdfa \
lang:de-DE
lang:de-DE \
tables:true
mdFiles := $(wildcard *.dok.md)
mdSuffix = $(patsubst %.dok.md,%$(1),$(mdFiles))