From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72764 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: error with \showlayout and export Date: Sun, 27 Nov 2011 12:35:10 +0100 Message-ID: <0BCE3119-7D79-43B9-A159-62BC079800B1@googlemail.com> References: <4670B7FC-970F-4698-B676-9F8C31AE8971@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322393744 26478 80.91.229.12 (27 Nov 2011 11:35:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2011 11:35:44 +0000 (UTC) Cc: Henning Hraban Ramm To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 27 12:35:39 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 1RUd1H-0003jG-Fv for gctc-ntg-context-518@m.gmane.org; Sun, 27 Nov 2011 12:35:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 865E4CB0ED; Sun, 27 Nov 2011 12:35:38 +0100 (CET) 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 J1Qvgxg1Py1r; Sun, 27 Nov 2011 12:35:34 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B2B72CB0DF; Sun, 27 Nov 2011 12:35:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2255CB0DF for ; Sun, 27 Nov 2011 12:35:33 +0100 (CET) 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 44CyeFK+1Hk0 for ; Sun, 27 Nov 2011 12:35:22 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 85170CB0BD for ; Sun, 27 Nov 2011 12:35:22 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pARBZLKu017752 for ; Sun, 27 Nov 2011 12:35:21 +0100 Original-Received: by bke17 with SMTP id 17so8328343bke.14 for ; Sun, 27 Nov 2011 03:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=zYK7OKMhDGuEHD30sGvgQrFz+wmP+zbXXnPYlJfMsog=; b=rP32Hz9lYNMM+L70xXJFOesVsyx6tiFwg647Eara7QRKwM/vrJfYDwHQBkeWGW3BkB 4j2Xbdp9IW6pAoj/BvwkfdIf+K/UtOW9UQPf5PR3+CognE8+JRYqwp3cBp3QFP824fOp AOaBJr47ZOycpgCVuwn6x1K9ajF9/yYPK/1hg= Original-Received: by 10.204.151.84 with SMTP id b20mr41401426bkw.22.1322393721410; Sun, 27 Nov 2011 03:35:21 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFD7C3.dip.t-dialin.net. [87.175.215.195]) by mx.google.com with ESMTPS id z3sm11409413fan.8.2011.11.27.03.35.17 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Nov 2011 03:35:20 -0800 (PST) In-Reply-To: <4670B7FC-970F-4698-B676-9F8C31AE8971@fiee.net> X-Mailer: Apple Mail (2.1251.1) 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: 06G2bzl0O - 62da33b250e3 - 20111127 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:72764 Archived-At: Am 27.11.2011 um 12:11 schrieb Henning Hraban Ramm: > Hi wizards, > > if I use \showlayout in a project where I setup export=yes, ConTeXt stops with a fatal error. > > Minimal failing example: > > \setupbackend[export=yes] > \starttext > \showlayout > \stoptext I think this change in back-exp.lua should work (runs at least without an error message): function extras.tabulate(result,element,detail,n,fulltag,di) local data = di.data for i=1,#data do local di = data[i] if di.tg == "tabulaterow" then local did = di.data local content = false for i=1,#did do local d = did[i].data -- local c = d and c.content local c = d and d.content if c and #c > 0 then content = true break end end if not content then di.element = "" -- or simply remove end end end end Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________