From: Marei Peischl Date: Thu, 21 Nov 2019 13:49:36 +0000 (+0100) Subject: move title to infobox if enabled X-Git-Tag: release-3.5.6.1~352 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5e13d3542db47322b759f8802e0f4aea118cff9b;p=kivitendo-erp.git move title to infobox if enabled --- diff --git a/kiviletter.sty b/kiviletter.sty index 6997095d3..512beffc0 100644 --- a/kiviletter.sty +++ b/kiviletter.sty @@ -99,11 +99,12 @@ contents={\usebox\shippingAddressBox} \ExplSyntaxOff \if@kivi@infobox +\newkomavar{locationtitle} \setkomavar{location}{ \begin{flushright} \bfseries \LARGE - \usekomavar{title} + \usekomavar{locationtitle} \end{flushright} \medskip @@ -116,9 +117,19 @@ contents={\usebox\shippingAddressBox} \end{tabularx} } \removereffields + +\ExplSyntaxOn +\AtBeginLetter{ + \ifkomavarempty{title}{}{ + \exp_args:Nno\setkomavar{locationtitle}{\scr@title@var} + \setkomavar{title}{} + } +} +\ExplSyntaxOff \fi + \renewcommand*{\raggedsignature}{\raggedright} \endinput