From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Unwanted white box above float
Date: Mon, 22 Jul 2019 17:31:24 +0200 [thread overview]
Message-ID: <00F9AE60-2739-4D3D-9515-9BA2D31F16C5@elvenkind.com> (raw)
In-Reply-To: <CAN8fp9WtOSGtDjeLzMT98d1+Z6jzyo8VQX74QyU3osSSZbJZyw@mail.gmail.com>
Hi,
\setupfloat[thematicimage]
[freeregion=no]
But I do not know what that actually means.
I just noticed that it makes the white background box not be white any more.
Taco
> On 22 Jul 2019, at 16:39, Duncan Hothersall <dh@capdm.com> wrote:
>
> 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
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
Taco Hoekwater
Elvenkind BV
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2019-07-22 15:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-22 14:39 Duncan Hothersall
2019-07-22 15:31 ` Taco Hoekwater [this message]
2019-07-22 15:39 ` Duncan Hothersall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=00F9AE60-2739-4D3D-9515-9BA2D31F16C5@elvenkind.com \
--to=taco@elvenkind.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).