From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104663 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Unwanted white box above float Date: Mon, 22 Jul 2019 15:39:27 +0100 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5833095249229916084==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="32275"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 22 16:42:20 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hpZW8-0008Gg-1N for gctc-ntg-context-518@m.gmane.org; Mon, 22 Jul 2019 16:42:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7959B152B93; Mon, 22 Jul 2019 16:39:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jxWNQuf32dsf; Mon, 22 Jul 2019 16:39:47 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 958AB152B99; Mon, 22 Jul 2019 16:39:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5F606152B94 for ; Mon, 22 Jul 2019 16:39:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id we3GQ_7nOigZ for ; Mon, 22 Jul 2019 16:39:45 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.53; helo=mail-io1-f53.google.com; envelope-from=dh@capdm.com; receiver= Original-Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 93657152B93 for ; Mon, 22 Jul 2019 16:39:45 +0200 (CEST) Original-Received: by mail-io1-f53.google.com with SMTP id h6so74380998iom.7 for ; Mon, 22 Jul 2019 07:39:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=capdm.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=59WdGnb+JTQz4QyrKx8qPbDz0io15JoOvGJ/hYq05pU=; b=NMyKQ9kVJ36N+Gosi77evzDEBQdr89TuIuL0SfBoFweSScsbDSmgtpgV7rhAW+ZtmN jSC9Rb3oJXlIgE/OSo/jSRDH+4oUaSDaFVYbyBQ2xfcbhb8Ann+3syy00tuS84n/rXsA /uWRyjH1iDfzpHatOoseg0MUDu1+BxUYW/k+o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=59WdGnb+JTQz4QyrKx8qPbDz0io15JoOvGJ/hYq05pU=; b=iLNWsCCaZQIX6EePBnpVJkZOcvCWgSioNw2t3s4qohl0w0H7ygtbanf7GTPhgMmCDc WCnva4vTGpSoK45BfXySNVsBW6/hoSmurJHptaTB3LaJPIRmQ7LjXOTII35GriYeWvvD ls1X1R/067ry71hl7waMuCEt8SgxwwPX6GMbyflcKK8ceWeb0JmLrOtGFgx7tMKIrXEi ZWz6W1zkN9gW/t64vIqBziq4896QJYjDvqGvMQXp85u62NbbuWRxnMKVm2WZ6yAwgPek FzD6eVFQEiV2FPnsyIxkwU2aFgKKfIGvvtqU/VJldI2QQdODN5aUKASGnBJKzuG5uSuZ 1T4A== X-Gm-Message-State: APjAAAVAKD8w5zHdeVRSMXRYPi0pNosWSVAxZC0eRhRzI9jO5VbXoiMz qMoU+69A1e0If4OBbhmBkfU4V1RafFJSPvZ3UiGYgYZk3FzZpA== X-Google-Smtp-Source: APXvYqwUMt/SWTe52eGWAZk8SPbfIU8EmIpj8iwKmxySMki92N4ab7srKifcJeAsdGTgsTZ07HHPJVxTkAi02BTxSwQ= X-Received: by 2002:a6b:fb02:: with SMTP id h2mr40319333iog.289.1563806383724; Mon, 22 Jul 2019 07:39:43 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:104663 Archived-At: --===============5833095249229916084== Content-Type: multipart/alternative; boundary="0000000000000050a9058e460c31" --0000000000000050a9058e460c31 Content-Type: text/plain; charset="UTF-8" Hi all. Have been experimenting with the many and varied options for placefloat to try to resolve this problem with no success. As per minimal example below I have nearly what I'm after - an image which floats to the right of a background box with a 1em offset - but I can't get rid of the white box which appears above it no matter what permutations I try. (Secondary query: why do I have to set leftoffset=, rightoffset= etc. individually for the text background? offset= seems to have no effect.) Thanks for any help you can offer. \definetextbackground[TintBoxedBackground] [background=color, backgroundcolor=cyan, frame=off, leftoffset=1em, rightoffset=1em, topoffset=1em, bottomoffset=1em, location=paragraph] \definefloat[thematicimage][figure] \setupfloat[thematicimage] [default=right,none}, offset=1em, margin=0em, background=color, backgroundcolor=cyan, rightmargindistance=-1em] \starttext \starttextbackground[TintBoxedBackground] {\bf Lorem ipsum dolor sit amet}\blank \placethematicimage{}{\externalfigure[cow][width=0.30\makeupwidth]} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \stoptextbackground \stoptext Duncan --0000000000000050a9058e460c31 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all.

Have been experimenting with th= e many and varied options for placefloat to try to resolve this problem wit= h no success. As per minimal example below I have nearly what I'm after= - an image which floats to the right of a background box with a 1em offset= - but I can't get rid of the white box which appears above it no matte= r what permutations I try.=C2=A0

(Secondary query:= why do I have to set leftoffset=3D, rightoffset=3D etc. individually for t= he text background? offset=3D seems to have no effect.)

Thanks for any help you can offer.


\definetextbackground[TintBoxedBackground]
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 [background=3Dcolor,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 backgroundcolor= =3Dcyan,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 frame=3Doff,
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 leftoffset=3D1em,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 rightoffset=3D1= em,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 topoffset=3D1em,
=C2=A0 =C2=A0 =C2=A0= =C2=A0 bottomoffset=3D1em,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 location=3Dparag= raph]

\definefloat[thematicimage][figure]
\setupfloat[thematicima= ge]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 [default=3Dright,none},
=C2=A0 =C2=A0 =C2=A0 =C2=A0 offset=3D1em,
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 margin=3D0em,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 background=3Dcol= or,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 backgroundcolor=3Dcyan,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 rightmargindistance=3D-1em]

\starttext<= br>
\starttextbackground[TintBoxedBackground]

{\bf Lorem i= psum dolor sit amet}\blank

\placethematicimage{}{\externalfig= ure[cow][width=3D0.30\makeupwidth]} Lorem ipsum dolor sit amet, consectetur= adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magn= a aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco labori= s nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehe= nderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Exce= pteur sint occaecat cupidatat non proident, sunt in culpa qui officia deser= unt mollit anim id est laborum.=C2=A0

\stoptextbackground
=
\stoptext


Duncan
--0000000000000050a9058e460c31-- --===============5833095249229916084== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5833095249229916084==--