Very strange bug related to textbackground
![](https://secure.gravatar.com/avatar/0ed499139c984ed1c5c6312376a707e5.jpg?s=120&d=mm&r=g)
I have been fighting with this one for ages, and have now narrowed down the culprit, but I do not understand why it happens. Latest (non-beta) ConTeXt, also tested in the live garden (same result): ---- \setupcaption[figure][align=right,location=bottom] \setupcaption[table][align=right,location=top] %\definetextbackground[irrelevant][frame=on] %uncomment for weirdness \starttext \placetable[here]{\vtop{\hsize=105mm \dorecurse{12}{sample content }}} {\bTABLE[option=stretch] \bTR \bTD High\eTD\bTD Middling\eTD\bTD Low\eTD\eTR \eTABLE} \dorecurse{10}{sample content } \placefigure[here]{\vtop{\hsize=105mm \dorecurse{12}{sample content }}}{\framed[width=\textwidth,height=50mm,align={middle,lohi}]{sample}} \stoptext ---- As it stands, this produces the expected output (a table and a figure each with long captions, with the captions set 'hanging'). However, if I define a totally unrelated textbackground (uncomment the third line), both captions veer off upwards, apparently a distance related to the number of lines in the title (play with the dorecurse numbers to see the effects). It doesn't seem to matter what the background is called, whether or not it is ever used, or what parameters it is given. I have no idea why something seemingly unrelated is having this effect; some reuse of a variable or unreset value somewhere? I would be really grateful if someone could [tell me how to] fix this. Bests, Duncan
![](https://secure.gravatar.com/avatar/b16ca16bcbc474a1ba15813999e212da.jpg?s=120&d=mm&r=g)
I don't have a fix, only chiming in that I've seen the same issue. It happened when I was learning about backgrounds, so I figured it was my ignorance and didn't save the test file. But I'll try to reconstruct it. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Duncan Hothersall wrote:
I have been fighting with this one for ages, and have now narrowed down the culprit, but I do not understand why it happens.
Latest (non-beta) ConTeXt, also tested in the live garden (same result):
and the beta? ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Duncan Hothersall
-
Hans Hagen
-
Sanjoy Mahajan