[wip] transforming eisvogel.latex into a new lev-dokument.latex

- use sensible defaults from lev-protokoll.latex
- backpropagate stuff
This commit is contained in:
Jörn-Michael Miehe 2025-05-15 02:56:51 +00:00
parent e100325c9f
commit 2247012aff
3 changed files with 122 additions and 99 deletions

View file

@ -1,10 +1,10 @@
---
title: Protokoll Vorstandssitzung
author: Vorsitzender Jörn-Michael Miehe
title: Example PDF
author: Der Vorstand des Lenaisten e.V.
date: 30.11.2320
subject: "Lebenslauf"
keywords: [Lebenslauf, CV, Profil, Resume]
subject: "Markdown"
keywords: [Markdown, Example]
# header-includes:
# - \PassOptionsToPackage{showframe}{geometry}

View file

@ -582,6 +582,69 @@ $endif$
$if(verbatim-in-note)$
\VerbatimFootnotes % allow verbatim text in footnotes
$endif$
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%BOOKMARK begin lenaisten pre
% packages
\usepackage[pages=all]{background}
\usepackage[fixed]{fontawesome5}
\usepackage{graphicx}
\usepackage{lastpage}
\usepackage{to-geom}
% page setup
\TeXofficeHeadheight0cm
\TeXofficeHeadsep0cm
\TeXofficeFootsep.5cm
\TeXofficeMargin2cm
\TeXofficeResetmargins
% % number "section" tags
% \setcounter{secnumdepth}{1}
% include down to "subsection" in TOC
\setcounter{tocdepth}{2}
% komascript fonts
\setkomafont{title}{\bfseries\scshape\huge}
\addtokomafont{author}{\color{gray}}
\addtokomafont{date}{\color{gray}}
\setkomafont{section}{\huge}
% links with icons
\let\oldhref\href
\renewcommand{\href}[2]{%
\oldhref{#1}{\faIcon{external-link-alt}\underline{#2}}%
}
% logo in top right
\backgroundsetup{
scale=1,
opacity=0.3,
angle=0,
position={current page.north east},
hshift=-3cm,
vshift=-3cm,
contents={%
\includegraphics[width=2cm]{/opt/lenaisten/logo/flat.png}%
}
}
% footer
\AtBeginDocument{%
\TeXofficeAdjustfooter{%
\begin{minipage}[b]{.8\textwidth}%
\color{gray}Herausgegeben durch den Vorstand des Lenaisten e.V.%
\end{minipage}\hfill%
\begin{minipage}[b]{.15\textwidth}%
\raggedleft $date$ \\ Seite \pagemark\ von \pageref*{LastPage}%
\end{minipage}%
}%
}
%BOOKMARK end lenaisten pre
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hypersetup{
$if(title-meta)$
pdftitle={$title-meta$},
@ -929,83 +992,44 @@ $endif$
\begin{document}
%%
%% begin titlepage
%%
$if(beamer)$
$else$
$if(titlepage)$
\begin{titlepage}
$if(titlepage-background)$
\newgeometry{top=2cm, right=4cm, bottom=3cm, left=4cm}
$else$
\newgeometry{left=6cm}
$endif$
$if(titlepage-color)$
\definecolor{titlepage-color}{HTML}{$titlepage-color$}
\newpagecolor{titlepage-color}\afterpage{\restorepagecolor}
$endif$
$if(titlepage-background)$
\tikz[remember picture,overlay] \node[inner sep=0pt] at (current page.center){\includegraphics[width=\paperwidth,height=\paperheight]{$titlepage-background$}};
$endif$
\newcommand{\colorRule}[3][black]{\textcolor[HTML]{#1}{\rule{#2}{#3}}}
\begin{flushleft}
\noindent
\\[-1em]
\color[HTML]{$if(titlepage-text-color)$$titlepage-text-color$$else$5F5F5F$endif$}
\makebox[0pt][l]{\colorRule[$if(titlepage-rule-color)$$titlepage-rule-color$$else$435488$endif$]{1.3\textwidth}{$if(titlepage-rule-height)$$titlepage-rule-height$$else$4$endif$pt}}
\par
\noindent
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%BOOKMARK begin lenaisten title
$if(titlepage-background)$
% The titlepage with a background image has other text spacing and text size
{
\setstretch{2}
\vfill
\vskip -8em
\noindent {\huge \textbf{\textsf{$title$}}}
$if(subtitle)$
\vskip 1em
{\Large \textsf{$subtitle$}}
$endif$
\vskip 2em
\noindent {\Large \textsf{$for(author)$$author$$sep$, $endfor$} \vskip 0.6em \textsf{$date$}}
\vfill
}
$else$
{
\setstretch{1.4}
\vfill
\noindent {\huge \textbf{\textsf{$title$}}}
$if(subtitle)$
\vskip 1em
{\Large \textsf{$subtitle$}}
$endif$
\vskip 2em
\noindent {\Large \textsf{$for(author)$$author$$sep$, $endfor$}}
\vfill
}
$endif$
% title page
\savegeometry{lenaisten}%
\begin{titlepage}%
\TeXofficeNoheader%
\TeXofficeNofooter%
\TeXofficeGeometry%
\cfoot*{}%
\begin{center}%
% begin maketitle
\makeatletter%
\pdfbookmark[1]{$title-meta$}{title}%
{\usekomafont{title}\@title\par}%
\vskip 1em%
{\usekomafont{author}\@author\par}%
\vskip 1em%
{\usekomafont{date}\@date\par}%
\makeatother%
% end maketitle
\vskip 2cm%
\includegraphics[width=3cm]{/opt/lenaisten/logo/3d.png}%
\vfill%
\end{center}%
\end{titlepage}%
\loadgeometry{lenaisten}%
$if(titlepage-logo)$
\noindent
\includegraphics[width=$if(logo-width)$$logo-width$$else$35mm$endif$, left]{$titlepage-logo$}
$endif$
% table of contents
{%
\hypersetup{hidelinks}%
\pdfbookmark[1]{\contentsname}{toc}%
\tableofcontents%
}%
\newpage%
$if(titlepage-background)$
$else$
\textsf{$date$}
$endif$
\end{flushleft}
\end{titlepage}
\restoregeometry
\pagenumbering{arabic}
$endif$
$endif$
%%
%% end titlepage
%%
%BOOKMARK end lenaisten title
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
$if(has-frontmatter)$
\frontmatter

View file

@ -589,33 +589,26 @@ $endif$
\TeXofficeMargin2cm
\TeXofficeResetmargins
% footer
\AtBeginDocument{%
\TeXofficeAdjustfooter{%
\begin{minipage}[b]{.8\textwidth}%
\color{gray}\Lenafooter%
\end{minipage} \hfill%
\begin{minipage}[b]{.15\textwidth}%
\raggedleft $date$ \\ Seite \pagemark\ von \pageref*{LastPage}%
\end{minipage}%
}%
}
% number "section" tags
\setcounter{secnumdepth}{1}
% include down to "subsection" in TOC
\setcounter{tocdepth}{2}
% titlepage fonts
% komascript fonts
\setkomafont{title}{\bfseries\scshape\huge}
\addtokomafont{author}{\color{gray}}
\addtokomafont{date}{\color{gray}}
% section title font
\setkomafont{section}{\huge}
% section label format
\renewcommand*{\sectionformat}{\normalfont\Large TOP\ \thesection:\ }
% links with icons
\let\oldhref\href
\renewcommand{\href}[2]{%
\oldhref{#1}{\faIcon{external-link-alt}\underline{#2}}%
}
% logo in top right
\backgroundsetup{
scale=1,
@ -629,10 +622,16 @@ $endif$
}
}
% links with icons
\let\oldhref\href
\renewcommand{\href}[2]{%
\oldhref{#1}{\faIcon{external-link-alt}\underline{#2}}%
% footer
\AtBeginDocument{%
\TeXofficeAdjustfooter{%
\begin{minipage}[b]{.8\textwidth}%
\color{gray}\Lenafooter%
\end{minipage} \hfill%
\begin{minipage}[b]{.15\textwidth}%
\raggedleft $date$ \\ Seite \pagemark\ von \pageref*{LastPage}%
\end{minipage}%
}%
}
%BOOKMARK end lenaisten pre
@ -994,7 +993,7 @@ $endif$
\begin{center}%
% begin maketitle
\makeatletter%
\pdfbookmark[1]{$title$ $date$}{title}%
\pdfbookmark[1]{$title-meta$ $date$}{title}%
{\usekomafont{title}\@title\par}%
\vskip 1em%
{\usekomafont{author}\@author\par}%
@ -1032,7 +1031,7 @@ $endif$
{%
\renewcommand{\contentsname}{Tagesordnung}%
\hypersetup{hidelinks}%
\pdfbookmark[1]{Tagesordnung}{toc}%
\pdfbookmark[1]{\contentsname}{toc}%
\tableofcontents%
}%
\newpage%