ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Unwanted white box above float
@ 2019-07-22 14:39 Duncan Hothersall
  2019-07-22 15:31 ` Taco Hoekwater
  0 siblings, 1 reply; 3+ messages in thread
From: Duncan Hothersall @ 2019-07-22 14:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1660 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2053 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-22 15:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-22 14:39 Unwanted white box above float Duncan Hothersall
2019-07-22 15:31 ` Taco Hoekwater
2019-07-22 15:39   ` Duncan Hothersall

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).