From 5e13d3542db47322b759f8802e0f4aea118cff9b Mon Sep 17 00:00:00 2001 From: Marei Peischl Date: Thu, 21 Nov 2019 14:49:36 +0100 Subject: [PATCH] move title to infobox if enabled --- kiviletter.sty | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 -- 2.20.1