From 04ad59308509c54ea6110d444325a5fd20f7eef4 Mon Sep 17 00:00:00 2001 From: "Marei (peiTeX)" Date: Wed, 3 Jun 2020 13:41:03 +0200 Subject: [PATCH] marei: fix spacing around shipping_addr_box --- templates/print/marei/kiviletter.sty | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/print/marei/kiviletter.sty b/templates/print/marei/kiviletter.sty index fcc496768..d8e669da6 100644 --- a/templates/print/marei/kiviletter.sty +++ b/templates/print/marei/kiviletter.sty @@ -1,7 +1,6 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{kiviletter}[2020/04/24 Letter Layouts for Kivitendo] - \newif\if@kivi@infobox \DeclareOption{reffields}{\@kivi@infoboxfalse} \DeclareOption{infobox}{\@kivi@infoboxtrue} @@ -69,7 +68,7 @@ \DeclareNewLayer[ foreground, hoffset=\useplength{toaddrhpos}, -voffset=\dimexpr\useplength{toaddrvpos}+\useplength{toaddrheight}+4\baselineskip, +voffset=\dimexpr\useplength{toaddrvpos}+\useplength{toaddrheight}+4\baselineskip,%sep to shippingaddressbox contents={\usebox\shippingAddressBox} ]{kivitendo.shippingaddress} @@ -345,8 +344,8 @@ align=bl, \removereffields \AtBeginLetter{ \ifdim\ht\shippingAddressBox>\z@ - \addtoplength{refvpos}{\ht\shippingAddressBox} - \addtoplength{refvpos}{4\baselineskip} + \addtoplength{refvpos}{\dimexpr\ht\shippingAddressBox+\dp\shippingAddressBox} + \addtoplength{refvpos}{4\baselineskip}%sep between address boxes \fi } \ExplSyntaxOff -- 2.20.1