From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30989 Path: news.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Very strange bug related to textbackground Date: Mon, 25 Sep 2006 15:15:58 +0100 Message-ID: <4517E49E.3050107@capdm.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1159193851 4176 80.91.229.2 (25 Sep 2006 14:17:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Sep 2006 14:17:31 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 25 16:17:27 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GRrGU-0004xC-JX for gctc-ntg-context-518@m.gmane.org; Mon, 25 Sep 2006 16:16:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E0E61FEE5; Mon, 25 Sep 2006 16:16:57 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02572-04-3; Mon, 25 Sep 2006 16:16:48 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 33A591FEE0; Mon, 25 Sep 2006 16:16:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CA3531FEE0 for ; Mon, 25 Sep 2006 16:16:43 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02572-04-2 for ; Mon, 25 Sep 2006 16:16:36 +0200 (CEST) Original-Received: from nbg01-smtpauth-04.lumison.net (nbg01-smtpauth-04.lumison.net [87.246.68.12]) by ronja.ntg.nl (Postfix) with SMTP id 976581FD54 for ; Mon, 25 Sep 2006 16:16:35 +0200 (CEST) Original-Received: (qmail 14525 invoked from network); 25 Sep 2006 14:16:34 -0000 Original-Received: from unknown (HELO liszt-09.ednet.co.uk) (212.20.226.21) by smtp-auth.lumison.net with SMTP; 25 Sep 2006 14:16:34 -0000 Original-Received: from [192.168.254.41] (lynx.capdm.com [212.20.255.162]) by liszt-09.ednet.co.uk (Postfix) with ESMTP id A91B6225E9B for ; Mon, 25 Sep 2006 15:16:34 +0100 (BST) User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) Original-To: ConTeXt List X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30989 Archived-At: 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