From 706f5bc96c6266a8f439e347d9546901fde0f24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Sun, 11 May 2025 15:22:50 +0000 Subject: [PATCH] [wip] transforming eisvogel.latex into a new lenaisten.latex - place graphics --- .gitattributes | 1 + lenaisten.latex | 37 ++++++++++++++++++++++++++++--------- logo.png | 3 +++ 3 files changed, 32 insertions(+), 9 deletions(-) create mode 100644 logo.png diff --git a/.gitattributes b/.gitattributes index e0db9d1..b4616b1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,3 @@ .devcontainer/pdfa/bin/* filter=lfs diff=lfs merge=lfs -text *.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text diff --git a/lenaisten.latex b/lenaisten.latex index ef4d89e..2e9f2ec 100644 --- a/lenaisten.latex +++ b/lenaisten.latex @@ -576,11 +576,28 @@ $endif$ \usepackage[fixed]{fontawesome5} \usepackage{lenaisten-defs} +\usepackage{lastpage} +\usepackage{to-geom} +\usepackage{graphicx} +\usepackage[pages=all]{background} + +\backgroundsetup{ + scale=1, + opacity=0.3, + angle=0, + position={current page.north east}, + hshift=-3cm, + vshift=-3cm, + contents={% + \includegraphics[width=2cm]{logo.png}% + }% +} + + % dekorierte Links \let\oldhref\href \renewcommand{\href}[2]{% - % \oldhref{#1}{\scalebox{1.3}{\raisebox{-0.3ex}{\ding{234}}}\,\underline{#2}}% \oldhref{#1}{\faIcon{external-link-alt}\underline{#2}}% } @@ -595,13 +612,10 @@ $endif$ }% } -\usepackage{lastpage} -\usepackage{to-geom} - -% \TeXofficeHeadheight0cm -% \TeXofficeHeadsep0cm -\TeXofficeMargin2cm +\TeXofficeHeadheight0cm +\TeXofficeHeadsep0cm \TeXofficeFootsep.5cm +\TeXofficeMargin2cm \TeXofficeResetmargins \AtBeginDocument{% @@ -965,11 +979,15 @@ $endif$ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %BOOKMARK begin lenaisten title +\savegeometry{lenaisten} \begin{titlepage}% + \TeXofficeNoheader% + \TeXofficeNofooter% + \TeXofficeGeometry% + \cfoot*{}% \maketitle% \begin{center}% - % \includegraphics[width=2cm]{./img/logo.png}% - TODO \vfill% + \includegraphics[width=2cm]{logo.png} \vfill% \renewcommand{\arraystretch}{2}% \begin{tabular}{c@{\hskip .25em}lll}% \faIcon{calendar-alt} & Datum: & \multicolumn{2}{c}{$date$} \tabularnewline% @@ -990,6 +1008,7 @@ $endif$ \renewcommand{\arraystretch}{1}% \end{center}% \end{titlepage}% +\loadgeometry{lenaisten} %BOOKMARK end lenaisten title %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..126ee69 --- /dev/null +++ b/logo.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55df578817564fe2e73a61621bd2d371cc37a30a854d888198df599ef4c4b2cf +size 92859