ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Very strange bug related to textbackground
@ 2006-09-26 11:01 Duncan Hothersall
  2006-09-27  8:15 ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Duncan Hothersall @ 2006-09-26 11:01 UTC (permalink / raw)


>> Just downloaded and tried beta 'ver 2006.09.25 23:38 MK II' - same
>> result I'm afraid.
>>
> then i need a better test file + explanation
> 
> (or maybe i have some local patch)
> 
> Hans

You are not seeing the effect?

I have put some files up on the web, generated with the latest beta.

The (bad) output and source with the \definetextbackground line in:

http://www.capdm.com/public/context/test-bad.pdf
http://www.capdm.com/public/context/test-bad.tex

The (good) output and source with the \definetextbackground line
commented out:

http://www.capdm.com/public/context/test-good.pdf
http://www.capdm.com/public/context/test-good.tex

I don't know if that will help?

Thanks,

Duncan

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <mailman.82.1159253618.16231.ntg-context@ntg.nl>]
* Very strange bug related to textbackground
@ 2006-09-25 14:15 Duncan Hothersall
  2006-09-25 19:18 ` Sanjoy Mahajan
  2006-09-25 22:26 ` Hans Hagen
  0 siblings, 2 replies; 9+ messages in thread
From: Duncan Hothersall @ 2006-09-25 14:15 UTC (permalink / raw)


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

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

end of thread, other threads:[~2006-09-27  9:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-26 11:01 Very strange bug related to textbackground Duncan Hothersall
2006-09-27  8:15 ` Hans Hagen
2006-09-27  9:05   ` Peter Rolf
2006-09-27  9:59     ` Taco Hoekwater
     [not found] <mailman.82.1159253618.16231.ntg-context@ntg.nl>
2006-09-26  8:12 ` Duncan Hothersall
2006-09-26 10:06   ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2006-09-25 14:15 Duncan Hothersall
2006-09-25 19:18 ` Sanjoy Mahajan
2006-09-25 22:26 ` Hans Hagen

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