From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88677 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Weird error Date: Wed, 10 Sep 2014 14:32:30 -0400 (EDT) Message-ID: References: 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 1410374149 11273 80.91.229.3 (10 Sep 2014 18:35:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2014 18:35:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 10 20:35:43 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XRmk1-0000G2-8T for gctc-ntg-context-518@m.gmane.org; Wed, 10 Sep 2014 20:35:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B74E0102A2 for ; Wed, 10 Sep 2014 20:35:40 +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 WB7HXr7ZXr9l for ; Wed, 10 Sep 2014 20:35:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id BCCEB1021F for ; Wed, 10 Sep 2014 20:35:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AB83A101E3 for ; Wed, 10 Sep 2014 20:35:29 +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 tOoLtbt79eNu for ; Wed, 10 Sep 2014 20:35:25 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id EE3FA101E1 for ; Wed, 10 Sep 2014 20:35:19 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s8AIW4iT031988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 10 Sep 2014 20:32:13 +0200 Original-Received: FROM adi-tablet ((null) [206.167.243.2]) By hackers.mr.itd.umich.edu ID 541099DB.51750.19516 ; Authuser adityam; 10 Sep 2014 14:35:07 EDT In-Reply-To: User-Agent: Alpine 2.03 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=Michigan; city=Ann Arbor; latitude=42.2734; longitude=-83.7133; http://maps.google.com/maps?q=42.2734,-83.7133&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WMNuw507 - 508022c3b89c - 20140910 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:88677 Archived-At: On Wed, 10 Sep 2014, Wolfgang Schuster wrote: > > Am 10.09.2014 um 18:37 schrieb Aditya Mahajan : > >> Hi, >> >> There was a question on TeX.SX about an error message >> http://tex.stackexchange.com/questions/200474/setuppagenumberinglocation-causes-problem-in-context >> >> The following MWE shows the same error >> >> \setupfootertexts[\namedheadnumber{chapter}] >> \setuppagenumbering[location=,alternative=doublesided] >> >> \starttext >> >> \completecontent >> >> \chapter{Creating device driver} >> >> \section{How to create the} >> >> Chapter text >> >> \stoptext >> >> which gives >> >> lua error > error on line 8 in file /tmp/test.tex: >> >> ...uild/src/tex/texmf-context/tex/context/base/strc-doc.lua:904: attempt to index field 'numbers' (a nil value) >> stack traceback: >> ...uild/src/tex/texmf-context/tex/context/base/strc-doc.lua:904: in function 'getsectionnumber' >> [\directlua]:1: in main chunk >> >> The error is weird because it only appears when all parts of the minimal example are present. If I comment either or `location=,` or `alternative=doublesided` or `\completecontent` or `\section{...}`, the error goes away! >> >> Any thoughts? > > > The error arises only when there is no aux file. A alternative to \namedheadnumber{XXX} is \getmarking[XXXnumber]. > > \setupfootertexts[{\getmarking[chapternumber]}] Thanks! Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________