formatting/documentation

This commit is contained in:
Jörn-Michael Miehe 2025-05-12 12:06:56 +00:00
parent 3d580f1c7f
commit 6e5525051d
2 changed files with 58 additions and 44 deletions

View file

@ -574,23 +574,48 @@ $endif$
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%BOOKMARK begin lenaisten pre %BOOKMARK begin lenaisten pre
% packages
\usepackage[pages=all]{background}
\usepackage[fixed]{fontawesome5} \usepackage[fixed]{fontawesome5}
\usepackage{graphicx}
\usepackage{lev-shorthands} \usepackage{lev-shorthands}
\usepackage{lastpage} \usepackage{lastpage}
\usepackage{to-geom} \usepackage{to-geom}
\usepackage{graphicx}
\usepackage[pages=all]{background}
\setcounter{secnumdepth}{1}% % page setup
\setcounter{tocdepth}{2}% \TeXofficeHeadheight0cm
\TeXofficeHeadsep0cm
\TeXofficeFootsep.5cm
\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
\setkomafont{title}{\bfseries\scshape\huge} \setkomafont{title}{\bfseries\scshape\huge}
\addtokomafont{author}{\itshape} \addtokomafont{author}{\color{gray}}
% Font for section title text
% section title font
\setkomafont{section}{\huge} \setkomafont{section}{\huge}
% Redefine section label % section label format
\renewcommand*{\sectionformat}{\normalfont\Large TOP\ \thesection:\ } \renewcommand*{\sectionformat}{\normalfont\Large TOP\ \thesection:\ }
% logo in top right
\backgroundsetup{ \backgroundsetup{
scale=1, scale=1,
opacity=0.3, opacity=0.3,
@ -600,44 +625,15 @@ $endif$
vshift=-3cm, vshift=-3cm,
contents={% contents={%
\includegraphics[width=2cm]{/opt/lenaisten/logo/flat.png}% \includegraphics[width=2cm]{/opt/lenaisten/logo/flat.png}%
}% }
} }
% dekorierte Links % links with icons
\let\oldhref\href \let\oldhref\href
\renewcommand{\href}[2]{% \renewcommand{\href}[2]{%
\oldhref{#1}{\faIcon{external-link-alt}\underline{#2}}% \oldhref{#1}{\faIcon{external-link-alt}\underline{#2}}%
} }
\newcommand{\ALLE}{ALLE}
\newcommand{\mALLE} {%
\colorbox{red!50}{%
\setlength\fboxsep{1pt}%
\colorbox{yellow!50}{A}%
\colorbox{green!50}{L}%
\colorbox{cyan!50}{L}%
\colorbox{blue!50}{E}%
}%
}
\TeXofficeHeadheight0cm
\TeXofficeHeadsep0cm
\TeXofficeFootsep.5cm
\TeXofficeMargin2cm
\TeXofficeResetmargins
\AtBeginDocument{%
% Fußzeile
\TeXofficeAdjustfooter{%
\begin{minipage}[b]{.8\textwidth}%
\Lenafooter%
\end{minipage} \hfill%
\begin{minipage}[b]{.15\textwidth}%
\raggedleft $date$ \\ Seite \pagemark\ von \pageref*{LastPage}%
\end{minipage}%
}%
}
%BOOKMARK end lenaisten pre %BOOKMARK end lenaisten pre
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -990,22 +986,21 @@ $endif$
% title page % title page
\savegeometry{lenaisten}% \savegeometry{lenaisten}%
\begin{titlepage}% \begin{titlepage}%
\pdfbookmark[1]{$title$ $date$}{title}%
\TeXofficeNoheader% \TeXofficeNoheader%
\TeXofficeNofooter% \TeXofficeNofooter%
\TeXofficeGeometry% \TeXofficeGeometry%
\cfoot*{}% \cfoot*{}%
\begin{center}% \begin{center}%
% begin maketitle
\makeatletter% \makeatletter%
% Print the title if defined \pdfbookmark[1]{$title$ $date$}{title}%
{\usekomafont{title}\@title\par}% {\usekomafont{title}\@title\par}%
\vskip 1em% \vskip 1em%
% Print the author if defined
{\usekomafont{author}\@author\par}% {\usekomafont{author}\@author\par}%
\vskip 1em% \vskip 1em%
% Print the date if defined
{\usekomafont{date}\@date\par}% {\usekomafont{date}\@date\par}%
\makeatother% \makeatother%
% end maketitle
\vskip 2cm% \vskip 2cm%
\includegraphics[width=2cm]{/opt/lenaisten/logo/flat.png}% \includegraphics[width=2cm]{/opt/lenaisten/logo/flat.png}%
\vfill% \vfill%
@ -1016,7 +1011,7 @@ $endif$
\faIcon{user-tie} & Sitzungsleiter: & \multicolumn{2}{c}{$Sitzungsleiter$} \tabularnewline% \faIcon{user-tie} & Sitzungsleiter: & \multicolumn{2}{c}{$Sitzungsleiter$} \tabularnewline%
\faIcon{user-edit} & Schriftführer: & \multicolumn{2}{c}{$Schriftfuehrer$} \tabularnewline% \faIcon{user-edit} & Schriftführer: & \multicolumn{2}{c}{$Schriftfuehrer$} \tabularnewline%
\faIcon{tools} & Beschlussfähig: & \multicolumn{2}{c}{$Beschlussfaehig$} \tabularnewline \hline% \faIcon{tools} & Beschlussfähig: & \multicolumn{2}{c}{$Beschlussfaehig$} \tabularnewline \hline%
% icon & Teilnehmer:& G1& A \\&&& B \\&&& C \\&& G2& A \\&&& B % icon & Teilnehmer:& G1:& A \\&&& B \\&&& C \\&& G2:& A \\&&& B
\faIcon{users} & Teilnehmer:& \faIcon{users} & Teilnehmer:&
$for(Teilnehmer)$ $for(Teilnehmer)$
$Teilnehmer.Gruppe$:& $Teilnehmer.Gruppe$:&

View file

@ -1,7 +1,10 @@
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{lev-shorthands}[2025/05/08 Lenaistenpaket 2025] \ProvidesPackage{lev-shorthands}[2025/05/08 Lenaistenpaket 2025]
% Namenskürzel %%%%%%%%%
% Namen %
%%%%%%%%%
% Vorstand % Vorstand
\newcommand{\SP}{Stefan Peters} \newcommand{\SP}{Stefan Peters}
\newcommand{\DSP}{Dr. \SP} \newcommand{\DSP}{Dr. \SP}
@ -41,3 +44,19 @@
\footnotesize Vertreten durch den Vorstand: \JMM, \DSP, \PD, \JS \\ \footnotesize Vertreten durch den Vorstand: \JMM, \DSP, \PD, \JS \\
Eingetragen im Vereinsregister des Amtsgerichts Mönchengladbach VR 4726 Eingetragen im Vereinsregister des Amtsgerichts Mönchengladbach VR 4726
} }
%%%%%%%%%%%%
% Sonstige %
%%%%%%%%%%%%
% ALLE
\newcommand{\ALLE}{ALLE}
\newcommand{\mALLE} {%
\colorbox{red!50}{%
\setlength\fboxsep{1pt}%
\colorbox{yellow!50}{A}%
\colorbox{green!50}{L}%
\colorbox{cyan!50}{L}%
\colorbox{blue!50}{E}%
}%
}