From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67834 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: two problems with natural tables Date: Mon, 18 Apr 2011 19:16:34 +0200 Message-ID: References: <16614D98-D85B-4AE1-B4F3-4B7FA049B0C6@awi.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1303147015 10886 80.91.229.12 (18 Apr 2011 17:16:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 18 Apr 2011 17:16:55 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 18 19:16:50 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QBs4A-0006QC-JV for gctc-ntg-context-518@m.gmane.org; Mon, 18 Apr 2011 19:16:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D322DCAC07; Mon, 18 Apr 2011 19:16:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id b5xxOv770aN6; Mon, 18 Apr 2011 19:16:45 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96839CABFC; Mon, 18 Apr 2011 19:16:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2B08ECABFC for ; Mon, 18 Apr 2011 19:16:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id v75MONqFcUxX for ; Mon, 18 Apr 2011 19:16:41 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id DFE27CABDF for ; Mon, 18 Apr 2011 19:16:41 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p3IHGeZg019124 for ; Mon, 18 Apr 2011 19:16:41 +0200 Original-Received: by bwz17 with SMTP id 17so6283388bwz.14 for ; Mon, 18 Apr 2011 10:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=qDZP/2ypJlfdU7+HTCrmlU9KBkgq0UuaPGXkZAZx3d8=; b=xMhI9y78fFU+wFqnOCz2mO7Bc837x+HRKi9NHyadcfPvl3AnRuiM3tYjT9h1R8kHFP 5ox1+Tr9kbFdzZeyfOrq7Ioz0+F+gk057hbSPFkInfHNwj8Vz8QoVG+n3heaeD0t3hkA hb+5+nU8/S2NO1Z04U4ZfsedkYUexgrM2nycM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=RIDQJqd3CcCngxOysPgx1sx5y9up/g/oVfC+2+s41B0D9jHnt6xNPcIIp+e1fLUxCx pnGAWBC2UIik+3qVmI0f0IWh9/tXufdEROzKyA08MJuQ4L+BABNBui8X/GlRPlLX9pex hbGqBSDEsuZwUfJjxAOml/C9cWSQaO7SVolKg= Original-Received: by 10.204.15.139 with SMTP id k11mr4373592bka.49.1303146999843; Mon, 18 Apr 2011 10:16:39 -0700 (PDT) Original-Received: from [192.168.2.31] (p5B2957F5.dip.t-dialin.net [91.41.87.245]) by mx.google.com with ESMTPS id q24sm3323261bks.9.2011.04.18.10.16.36 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Apr 2011 10:16:37 -0700 (PDT) In-Reply-To: <16614D98-D85B-4AE1-B4F3-4B7FA049B0C6@awi.de> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0cEx5gEpf - 47442d791df6 - 20110418 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:67834 Archived-At: Am 10.04.2011 um 18:40 schrieb Florian Wobbe: > Hi, > = > 1) I tried the following minimal example from http://archive.contextgarde= n.net/message/20110109.151431.f774696a.en.html > = > \placetable[split]{Test} > {\bTABLE[split=3Dyes] > \dorecurse{60}{ > \bTR \bTD hello \eTD \eTR > } > \eTABLE} > = > with the current context versions which works fine. However, if I insert = the code in a big project with many setups it fails with the attached error= message. So there are setups which cause this error. Unfortunately I could= n't figure out what causes the problem. The error comes from the \floatcaptionattribute and \destinationattribute c= ommands. \destinationattribute expects a number as argument (which is store= d in the \currentfloatattribute macro) but with a split float it gets a emp= ty argument. A split float sets \usesamefloatnumber to true and there \currentfloatattri= bute is \empty. \long\def\docompletefloat#1#2#3#4#5% #1:floatclass #2:reference #3:optionli= st #4:caption #5:box number {\presetfloatvariables{#1}{#3}{#2}{#5}% check this one \bgroup % prepare structure data % % \dofloatcomponent[\c!name=3D#1,\c!reference=3D#2,\c!bookmark=3D,\c!tit= le=3D{#4}][]% ifnofloatnumber ifnofloatcaption \tracefloatnumber{#1}% % \ifconditional\usesamefloatnumber \globallet\currentfloatnumber \previousfloatnumber \globallet\currentfloatattribute \empty \globallet\currentfloatsynchronize\relax \else =85 As simple fix is to check for a split float when the attribute is set: \setupinteraction[state=3Dstart] % original defintion from strc-flt.mkiv % %\def\floatcaptionattribute % {\iflocation \ifnofloatnumber \else \ifnofloatcaption \else % attr \destinationattribute \currentfloatattribute % \fi \fi \fi} % patched definition with check for split float \def\floatcaptionattribute {\iflocation \ifnofloatnumber \else \ifnofloatcaption \else \ifinsidespli= tfloat \else attr \destinationattribute \currentfloatattribute \fi \fi \fi \fi} \starttext \placetable[split]{Caption} {\bTABLE\dorecurse{60}{\bTR\bTD text\eTD\eTR}\eTABLE} \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________