From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28744 Path: news.gmane.org!not-for-mail From: Johannes Graumann Newsgroups: gmane.comp.tex.context Subject: Split Table Desperation - again! Date: Wed, 21 Jun 2006 15:22:47 -0700 Organization: Die Guten Message-ID: 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 1150928644 7089 80.91.229.2 (21 Jun 2006 22:24:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Jun 2006 22:24:04 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 22 00:24:02 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 1FtB7C-00051Q-2Y for gctc-ntg-context-518@m.gmane.org; Thu, 22 Jun 2006 00:24:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1E1E912820; Thu, 22 Jun 2006 00:24:02 +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 10934-08; Thu, 22 Jun 2006 00:23:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 97F8C127FE; Thu, 22 Jun 2006 00:23:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 34CF3127FE for ; Thu, 22 Jun 2006 00:23:49 +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 16479-02 for ; Thu, 22 Jun 2006 00:23:44 +0200 (CEST) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with SMTP id 48EC0127CD for ; Thu, 22 Jun 2006 00:23:43 +0200 (CEST) Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FtB6l-0004uJ-NJ for ntg-context@ntg.nl; Thu, 22 Jun 2006 00:23:37 +0200 Original-Received: from iluvatar.caltech.edu ([131.215.35.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Jun 2006 00:23:35 +0200 Original-Received: from johannes_graumann by iluvatar.caltech.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Jun 2006 00:23:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ntg.nl Original-Lines: 107 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: iluvatar.caltech.edu User-Agent: KNode/0.10.2 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:28744 Archived-At: Hello, While the recent modifications to the split table mechanisms provided by Hans help me out with my most annoying monster table using the XML mapping code below (see http://www.idyll.org:8081/JohSite/context/p46-50_split_working.pdf/view for the typeset table; clearly to much whitespace, but everything is typeset and page boundaries are honored) and several other -smaller- tables in the same tome (see http://www.idyll.org:8081/JohSite/context/p45_unsplit_working.pdf/view for a typeset example), one medium-sized table that clearly should not be split gets split none the less (see http://www.idyll.org:8081/JohSite/context/p162-163_unnecessary_split.pdf/view) ... and I have no idea why. Puzzled and helpless, Joh XML mapping code: % 'table' - table definition \defineXMLnested [table] [lines=auto] { \defineXMLsave[floattitle] \defineXMLsave[caption] \defineXMLsave[header] \defineXMLsave[body] \defineXMLsave[footer] } { \splitfloat[lines=\XMLop{lines}] { \expanded{% \placetable [\XMLpar{table}{location}{}] [\XMLpar{table}{label}{unknown}] {\select{caption}{\XMLflush{floattitle} {{\bf\XMLflush{floattitle}} \XMLflush{caption}}} } } { \setupTABLE[row][1][topframe=on] \setupTABLE[row][last][bottomframe=on] \bTABLE[frame=off,split=repeat,splitmethod=b,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}] \bTABLEhead\XMLflush{header}\eTABLEhead \bTABLEbody\XMLflush{body}\eTABLEbody \bTABLEfoot\XMLflush{footer}\eTABLEfoot \eTABLE } } % 'td' - table cell definition defaulting to single row/column, automatic width determination, left alignment \defineXMLnested [td] [rows=1,cols=1,width=,bottomframe=,topframe=,align=right] { \doifelse{\XMLop{width}}{}% { \doifelse{\XMLop{bottomframe}}{}% { \doifelse{\XMLop{topframe}}{}% {\expanded{\bTD[align=\XMLop{align},nr=\XMLop{rows},nc=\XMLop{cols}]}} {\expanded{\bTD[align=\XMLop{align},topframe=\XMLop{topframe},nr=\XMLop{rows},nc=\XMLop{cols}]}} } { \doifelse{\XMLop{topframe}}{}% {\expanded{\bTD[align=\XMLop{align},nr=\XMLop{rows},nc=\XMLop{cols},bottomframe=\XMLop{bottomframe}]}} {\expanded{\bTD[align=\XMLop{align},nr=\XMLop{rows},nc=\XMLop{cols},bottomframe=\XMLop{bottomframe},topframe=\XMLop{topframe}]}} } } { \doifelse{\XMLop{bottomframe}}{}% { \doifelse{\XMLop{topframe}}{}% {\expanded{\bTD[align=\XMLop{align},nr=\XMLop{rows},nc=\XMLop{cols},width=\XMLop{width}]}} {\expanded{\bTD[align=\XMLop{align},nr=\XMLop{rows},nc=\XMLop{cols},width=\XMLop{width},topframe=\XMLop{topframe}]}} } { \doifelse{\XMLop{topframe}}{}% {\expanded{\bTD[align=\XMLop{align},nr=\XMLop{rows},nc=\XMLop{cols},width=\XMLop{width},bottomframe=\XMLop{bottomframe}]}} {\expanded{\bTD[align=\XMLop{align},nr=\XMLop{rows},nc=\XMLop{cols},width=\XMLop{width},bottomframe=\XMLop{bottomframe},topframe=\XMLop{topframe}]}} } } } {\par\eTD} % 'tr' - table row definition, defaulting to no bottomframe \defineXMLnested [tr] [bottomframe=,rulethickness=0.5pt] {\doifelse{\XMLop{bottomframe}}{}% {\expanded{\bTR}}% {\expanded{\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]}} } {\eTR}