From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16406 Path: main.gmane.org!not-for-mail From: "Martin Kolarík" Newsgroups: gmane.comp.tex.context Subject: Floats and captions difficulties Date: Sun, 12 Sep 2004 08:20:50 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: References: <414210CD.7040902@wxs.nl> Reply-To: martin@mii.cz, mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1094970071 7324 80.91.229.6 (12 Sep 2004 06:21:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Sep 2004 06:21:11 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 12 08:20:55 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C6NjL-0000qy-00 for ; Sun, 12 Sep 2004 08:20:55 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AE9EA12789; Sun, 12 Sep 2004 08:20:54 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17860-01; Sun, 12 Sep 2004 08:20:53 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F018E12783; Sun, 12 Sep 2004 08:20:52 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 27C6D12783 for ; Sun, 12 Sep 2004 08:20:52 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17859-02-2 for ; Sun, 12 Sep 2004 08:20:51 +0200 (CEST) Original-Received: from ns2.avonet.cz (unknown [217.112.162.42]) by ronja.ntg.nl (Postfix) with ESMTP id 743541276D for ; Sun, 12 Sep 2004 08:20:51 +0200 (CEST) Original-Received: from europe (kolarik.avonet.cz [217.112.166.172]) by ns2.avonet.cz with SMTP id i8C6Kocg004079 for ; Sun, 12 Sep 2004 08:20:50 +0200 Original-To: "mailing list for ConTeXt users" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <414210CD.7040902@wxs.nl> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char ED hex) in message header 'From' From: "Martin Kolar\355k" \n ^ Xref: main.gmane.org gmane.comp.tex.context:16406 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16406 Hi Hans, I should want to get text around float (a side float) with the caption positioned inside the margin. As I did not found such parameter(s) I peeked into source code. First, it seems to me, the \setupfloat making the sidefloat on existing predefined float do not work. If I state: \setupfloat[table][location=outer] \placetable{caption}... the table is properly placed, but the text do not float around. If I use: \placetable[outer]{caption}... everything is OK. Maybe I missed something, or this is an unpleasant feature or a small bug :-) For second, the first case, when the text does not float around, allows some caption hacking. After studying sources sufficient for my needs is to define minimalwidth=\rightmarginwidth and inside Command from \setupcaptions[command=...] move the box with proper content into the margin. But there are the stuffs: a) caption's width and minimalwidth do not work for sidefloat, as inner doparfloat always uses \wd\tempfloatbox. So the modifying width of caption is rather impossible. b) the Command gets \hbox with another boxes inside. One should be able to get the contents of theses boxes to reformat it (to correct width, aligntment etc.), but this is not trivial and at least this reuired writing a code highly dependent on current ConTeXt implementation of captions. This is not good and again it makes the caption handling difficult. Summary: I am able to (with some tricks) to put the caption in margin for pagefloats, but the text is not floating around, or I am able to get the text floating, but the caption is uncontrollable. For me, the solution could be to adopt the behaviour of pagefloat widths into sidefloat macro (and altough minimalwidth parameter is not the best name for exact width, it works fine :-). Thank you, have a nice day, Martin