From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31711 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Splitting a float that isn't a table Date: Fri, 03 Nov 2006 19:01:27 +0100 Message-ID: <454B83F7.80805@wxs.nl> References: <454B6ABD.9090305@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 1162576926 1310 80.91.229.2 (3 Nov 2006 18:02:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Nov 2006 18:02:06 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 03 19:02:04 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 1Gg3MK-0006AB-12 for gctc-ntg-context-518@m.gmane.org; Fri, 03 Nov 2006 19:01:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 522581FFBE; Fri, 3 Nov 2006 19:01:38 +0100 (CET) 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 16986-03; Fri, 3 Nov 2006 19:01:30 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C89B11FFBD; Fri, 3 Nov 2006 19:01:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 516DC1FFBE for ; Fri, 3 Nov 2006 19:01:28 +0100 (CET) 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 16980-05-4 for ; Fri, 3 Nov 2006 19:01:26 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with SMTP id 1A42D1FFBB for ; Fri, 3 Nov 2006 19:01:26 +0100 (CET) Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 16584 for ; Fri, 03 Nov 2006 19:01:26 +0100 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) Original-To: mailing list for ConTeXt users In-Reply-To: <454B6ABD.9090305@capdm.com> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 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:31711 Archived-At: Duncan Hothersall wrote: > I define a floating block called Exhibit > > \definefloat[Exhibit][table] > > which just contains paragraphs of text. I'd like to be able to split it > using the \splitfloat mechanism but that only seems to work if the > content of the float is a table, not paragraphs. > > ---- > \definefloat[Exhibit][table] > \starttext > \input tufte\par > \splitfloat[lines=auto]{\placeExhibit{Knuth}} > {\dorecurse{4}{\input knuth \par}} > \input tufte\page[yes] > \stoptext > ---- > > This outputs "there is nothing to split" in the resultant PDF. > > Is there any way to achieve the equivalent of > > ---- > \definefloat[Exhibit][table] > \starttext > \input tufte\par > \splitfloat[lines=auto]{\placeExhibit{Knuth}} > {\bTABLE[frame=off]\dorecurse{4}{\bTR\bTD\input knuth \eTD\eTR} > \eTABLE} > \input tufte\page[yes] > \stoptext > ---- > > without having to make every paragraph a table cell? > > for simple texts: \def\startsometext {\beginshapebox} \def\stopsometext {\endshapebox \reshapebox{\ruledhbox{\strut\box\shapebox}} \setbox\tsplitcontent\vbox{\flushshapebox} \handletsplit} \starttext \input tufte \splitfloat [lines=auto] {\placefigure{}} {\startsometext \dorecurse{4}{\input knuth \par} \stopsometext} \input tufte \showframe \splitfloat [lines=auto] {\placefigure{}} {\starttabulate[|p|] \NC \dorecurse{4}{\input knuth }\NC\NR \stoptabulate} \starttabulate[|p|] \NC \input knuth \NC\NR \stoptabulate \stoptext wikifyable (hm, could even be a nice article ...) Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------