move fromlogo to insettings
authorMarei Peischl <marei@peitex.de>
Mon, 9 Dec 2019 15:08:10 +0000 (16:08 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 3 Feb 2020 11:21:38 +0000 (12:21 +0100)
insettings.tex
kiviletter.sty

index 73e7be7..c596f69 100644 (file)
 % Identität
 \input{\identpath/ident.tex}
 
+%Setze Briefkopf-logo falls vorhanden
+\file_if_exist:nT {\identpath/briefkopf.png} {
+       \setkomavar{fromlogo}{
+               \includegraphics[width=.25\linewidth]{\identpath/briefkopf.png}
+       }
+}
+
 \ExplSyntaxOn
 % Währungen/Konten
 \tl_new:N \g_kivi_currency_tl
index 43f9547..afe8f32 100644 (file)
@@ -116,8 +116,6 @@ align=bl,
        \fi
 }
 
-\setkomavar{fromlogo}{\includegraphics[width=.25\linewidth]{\identpath/briefkopf.png}}
-
 \@setplength{locwidth}{6cm}
 
 \ExplSyntaxOn