From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11301 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: sidebyside figures Date: Mon, 10 Mar 2003 23:15:02 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20030310230834.03102d00@server-1> References: <3E6A9425.3020401@telia.com> <5.1.0.14.1.20030309222149.040ca9d8@remote-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1047369754 11987 80.91.224.249 (11 Mar 2003 08:02:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 11 Mar 2003 08:02:34 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue Mar 11 09:02:33 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18seiX-00037A-00 for ; Tue, 11 Mar 2003 09:02:33 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id D958510B54; Tue, 11 Mar 2003 09:03:12 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id 8656A10B27 for ; Tue, 11 Mar 2003 08:56:07 +0100 (MET) Original-Received: from server-1.pragma-net.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.5/pre1.0-MySQL/8.12.5) with ESMTP id h2B7tq99024006 for ; Tue, 11 Mar 2003 08:55:55 +0100 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-net.nl (8.12.3/8.12.2) with ESMTP id h2B7toEa007503 for ; Tue, 11 Mar 2003 08:55:50 +0100 X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: <006701c2e6c0$199b9090$6d6b4442@wang> X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.nl) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11301 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11301 Hi, > The normal double column mechanism tries to place a graphic, stores it when > > there is no place, and flushes it as soon as possible. > > > > The \startcolumns mechanism works well intermixed with the standard one > > column mode. > > > > In your case, esp for vertical chinese, use columnsets: > > > > \startcolumnset > > > > \placefigure[tblr:1]{}{} > > \placefigure[tblr:2]{}{} > > > > \input tufte > > > > \stopcolumnset > > > > This will place the floats on top of the first and second column; an > > alternative usage is: > > > > \placefigure[tblr]{}{} > > \placefigure[tbrl]{}{} > > > > Think of tb meaning flush from top to bottom, and lr to mean from left to > > right; so, there are quite some ways to place/flush a graphic. > >Thanks. It place the figures side by side correctly. But, there is another >problem. >After the two figures, it force a page break and leave a large blank even >though >the blank area can accommodate the next paragraph. I attached the test file >and waht I really want is: > >One column texts >two figures sidebyside >One column texts Well, here you run into the difference between columns and columnsets. Columnsets can be mixed with one column mode, but you need to balance (automatic balancing is pretty hard for complex columnsets, so this is not yet in the kernel, but manual balancing is (one can set the number of lines per column). However, it seems that you want something: \starttext \startbuffer \startcombination {\externalfigure[cow][frame=on, width=3cm]} {\placefloatcaption[figure]{x}} {\externalfigure[cow][frame=on, width=3cm]} {\placefloatcaption[figure]{y}} \stopcombination \stopbuffer \placefigure{none}{\getbuffer} \stoptext This special feature (separate captions) was introduced quite some time ago for Karel W so you should buy him a beer. When testing this i foun dout that there is an error in the macro. A few days ago i added the 'distance' key to caption setups, and (of course) i didn't test that with free floating captions (unresolved intermediate macro). So, in page-flt you need to replace the following bit of trivial code: \def\dodosetfloatcaption[#1][#2]#3% to do namespace for number/ascii {\ifnofloatnumber % also handle trialtypesetting \letgvalue{@fl@r@#1}\relax \letgvalue{@fl@t@#1}\relax \else \verhoognummer[#1]% \maakhetnummer[#1]% \globallet\flhetnummer\hetnummer \setgvalue{@fl@r@#1}% {\dofloatreference \redofloatorder{#1}% \doschrijfnaarlijst{#1}{\flhetnummer}{#3}{#1}% \doglobal\convertargument#3\to\flasciititle % \asciititle is global \doifsomething{#2} {\rawreference\s!flt{#2}{{\flhetnummer}{\flasciititle}}}% \letgvalue{@fl@r@#1}\relax}% nills \setgvalue{@fl@t@#1}% {\preparethenumber{\??kj#1}\flhetnummer\preparednumber \doattributes{\??kj#1}\c!letter\c!kleur {\doattributes{\??kj#1}\c!kopletter\c!kopkleur {\labeltexts{#1}{\preparednumber}}% \doattributes{\??kj#1}\c!tekstletter\c!tekstkleur {\dotfskip{\getvalue{\??kj#1\c!afstand}}#3}}}% THIS LINE WAS WRONG \fi} Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------