From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82108 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: error: terminal: >> NOfTextColumns-1, ! Improper final value has been replaced by 0 Date: Fri, 26 Apr 2013 12:24:45 +0200 Message-ID: <517A55ED.9060100@wxs.nl> References: <5177FA86.5070207@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1366971920 19388 80.91.229.3 (26 Apr 2013 10:25:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Apr 2013 10:25:20 +0000 (UTC) Cc: Lars Huttar To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 26 12:25:22 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UVfqE-0005z6-44 for gctc-ntg-context-518@m.gmane.org; Fri, 26 Apr 2013 12:25:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ADBB3101EA; Fri, 26 Apr 2013 12:25:21 +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 jhQEiFYNnCOe; Fri, 26 Apr 2013 12:25:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 16EFB101E4; Fri, 26 Apr 2013 12:25:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6F85C101E4 for ; Fri, 26 Apr 2013 12:25:14 +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 L+OBh8RrdTb7 for ; Fri, 26 Apr 2013 12:25:13 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 06DE9101E0 for ; Fri, 26 Apr 2013 12:25:12 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3QAPBBL011463 for ; Fri, 26 Apr 2013 12:25:11 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP (TLS) id 636-1713362 for multiple; Fri, 26 Apr 2013 12:25:07 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: <5177FA86.5070207@sil.org> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TJsypb4C - 4846b914a9b0 - 20130426 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82108 Archived-At: On 4/24/2013 5:30 PM, Lars Huttar wrote: > Hello, > > I'm encountering the following error, under ConTeXt ver: 2012.05.30 > 11:26 MKIV fmt: 2013.3.11 int: english/english: > > system > tex > error on line 27 in file > data/three-volume-book-book-1.tex: terminal: >> NOfTextColumns-1 > ! Improper final value has been replaced by 0. > > : > <*> for i=1 upto NOfTextColumns-1: > draw (rightboundary TextColumns[i]) > shif... > > > ... > > 17 \safeinput ./data/statistics-for-area-area-africa.tex > 18 \safeinput ./data/statistics-for-area-area-europe.tex > 19 > 20 > 21 > 22 \input ./macros/E16pagenohead.tex > 23 \ifodd \pageno \else \noheaderandfooterlines \null \page[yes]\fi > \noheade > randfooterlines > 24 > 25 \startptp{ > 26 \pagereference[Languages]\pnum{Part II}\ptitle{Language Listings} > 27 >> }\stopptp > > > This error is very odd because: > > a) The only place I can find code mentioning "NOfTextColumns-1" is in > mp-core.mpii, where it's commented out! > % \startuseMPgraphic{whatever} > % for i=1 upto NOfTextColumns-1 : > % draw (rightboundary TextColumns[i]) shifted ... > > But maybe I just haven't been looking in the right places. > > b) The place in my .tex document where the error occurs, line 27, is at > a \stopptp. Yet there is an essentially identical start/stopptp earlier > in the document, where no such error is thrown: > > \startptp{ > \pagereference[Summaries]\pnum{Part I}\ptitle{Statistical Summaries} > }\stopptp > > So I guess there's some content in between the two starts/stop ptp's > that's laying the stage for the error to occur. > I'll be working on a minimal example, but that's time-consuming; and I > thought in the meantime, there may be some clues in the above > information that could help clarify the nature of the problem, to > someone who understands the inner workings of ConTeXt. It took me a while to figure it out as NOfTextColumns is only used in very special cases and long gone from context (it dates from a previous background implementation). Normally the obsolete code is never seen but in your case consulting the variable might be triggered by the fact that multi_column_first_page_hack is set to true (looks like a quick hack i made for Jelle long ago). I commented it in the mkii source now, hopefully no error message any longer. Hans ps. sometimes there is some specific test code that then depends on other experimental code being present ps. in mkiv it's all redone anyway and i will redo columnsets one of these days too; ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________