ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug or not?
@ 2019-05-16  7:22 Hans van der Meer
  0 siblings, 0 replies; only message in thread
From: Hans van der Meer @ 2019-05-16  7:22 UTC (permalink / raw)
  To: NTG ConTeXt


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

There is an interaction in the placement of float captions when their width is set and background coloring switched.
Minimal example included here, the jpeg is arbitrary of course. Output shown.
Setting the width of the caption effectively shifts the caption to the left.
See the change between the last two floats where [background=] changes the game.

I wonder, is this intended behaviour? Or should one expect something different?

\starttext

Testing figure captions with \tex{setupframed[background=]}\blank

\setupframed[background=color,backgroundcolor=yellow]
\placefigure[][]{\tex{setupframed[background=color]}}{\externalfigure[test.jpg]}

Add \tex{setupcaption[align=middle,width=\makeupwidth]} as setting here:\par
\setupcaption[align=middle,width=\makeupwidth]
\setupframed[background=color,backgroundcolor=yellow]
\placefigure[][]{\type{\setupcaption[align=middle,width=\makeupwidth]}}{\externalfigure[test.jpg]}

\setupframed[background=,backgroundcolor=yellow]
\placefigure[][]{\tex{setupframed[background=]}}{\externalfigure[test.jpg]}

\stoptext

dr. Hans van der Meer





[-- Attachment #1.2.1: Type: text/html, Size: 3962 bytes --]

[-- Attachment #1.2.2: captionshift.pdf --]
[-- Type: application/pdf, Size: 34928 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 292 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] only message in thread

only message in thread, other threads:[~2019-05-16  7:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-16  7:22 Bug or not? Hans van der Meer

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