From f7ae8705d0162989b175b336948267978c593903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Sun, 11 May 2025 19:22:29 +0000 Subject: [PATCH] [wip] transforming eisvogel.latex into a new lenaisten.latex - table of contents - sections as TOP --- lenaisten-defs.sty | 2 +- lenaisten.latex | 48 +++++++++++++++++++++++++++++++++++++--------- 2 files changed, 40 insertions(+), 10 deletions(-) diff --git a/lenaisten-defs.sty b/lenaisten-defs.sty index 4c775c7..57b8f50 100644 --- a/lenaisten-defs.sty +++ b/lenaisten-defs.sty @@ -38,6 +38,6 @@ % Fußzeile \newcommand{\Lenafooter}{% Lenaisten e.V. -- Der Lena-Fanclub \\ - 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 } diff --git a/lenaisten.latex b/lenaisten.latex index 2e9f2ec..87e5589 100644 --- a/lenaisten.latex +++ b/lenaisten.latex @@ -581,6 +581,16 @@ $endif$ \usepackage{graphicx} \usepackage[pages=all]{background} +\setcounter{secnumdepth}{1}% +\setcounter{tocdepth}{2}% + +\setkomafont{title}{\bfseries\scshape\huge} +\addtokomafont{author}{\itshape} +% Font for section title text +\setkomafont{section}{\huge} +% Redefine section label +\renewcommand*{\sectionformat}{\normalfont\Large TOP\ \thesection:\ } + \backgroundsetup{ scale=1, opacity=0.3, @@ -593,8 +603,6 @@ $endif$ }% } - - % dekorierte Links \let\oldhref\href \renewcommand{\href}[2]{% @@ -621,10 +629,10 @@ $endif$ \AtBeginDocument{% % Fußzeile \TeXofficeAdjustfooter{% - \begin{minipage}[b]{.75\textwidth}% - \footnotesize \Lenafooter% + \begin{minipage}[b]{.8\textwidth}% + \Lenafooter% \end{minipage} \hfill% - \begin{minipage}[b]{.20\textwidth}% + \begin{minipage}[b]{.15\textwidth}% \raggedleft $date$ \\ Seite \pagemark\ von \pageref*{LastPage}% \end{minipage}% }% @@ -979,15 +987,28 @@ $endif$ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %BOOKMARK begin lenaisten title -\savegeometry{lenaisten} +% title page +\savegeometry{lenaisten}% \begin{titlepage}% + \pdfbookmark[1]{$title$ $date$}{title}% \TeXofficeNoheader% \TeXofficeNofooter% \TeXofficeGeometry% \cfoot*{}% - \maketitle% \begin{center}% - \includegraphics[width=2cm]{logo.png} \vfill% + \makeatletter% + % Print the title if defined + {\usekomafont{title}\@title\par}% + \vskip 1em% + % Print the author if defined + {\usekomafont{author}\@author\par}% + \vskip 1em% + % Print the date if defined + {\usekomafont{date}\@date\par}% + \makeatother% + \vskip 2cm% + \includegraphics[width=2cm]{logo.png}% + \vfill% \renewcommand{\arraystretch}{2}% \begin{tabular}{c@{\hskip .25em}lll}% \faIcon{calendar-alt} & Datum: & \multicolumn{2}{c}{$date$} \tabularnewline% @@ -1008,7 +1029,16 @@ $endif$ \renewcommand{\arraystretch}{1}% \end{center}% \end{titlepage}% -\loadgeometry{lenaisten} +\loadgeometry{lenaisten}% + +% table of contents +{% + \renewcommand{\contentsname}{Tagesordnung}% + \hypersetup{hidelinks}% + \pdfbookmark[1]{Tagesordnung}{toc}% + \tableofcontents% +}% +\newpage% %BOOKMARK end lenaisten title %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%