From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69373 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Latest beta: Problems with \startstructurelevel (bug?) Date: Wed, 22 Jun 2011 14:19:13 +0200 Message-ID: References: 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 1308745183 19160 80.91.229.12 (22 Jun 2011 12:19:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2011 12:19:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 22 14:19: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 1QZMP7-0003kL-Q2 for gctc-ntg-context-518@m.gmane.org; Wed, 22 Jun 2011 14:19:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BEC6ACADF7; Wed, 22 Jun 2011 14:19:32 +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 ISyCnqunsYTu; Wed, 22 Jun 2011 14:19:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 489B6CADEE; Wed, 22 Jun 2011 14:19:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 09486CADEE for ; Wed, 22 Jun 2011 14:19: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 3-ec-gFTEEMW for ; Wed, 22 Jun 2011 14:19:18 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 16D73CADA8 for ; Wed, 22 Jun 2011 14:19:18 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5MCJHwJ026551 for ; Wed, 22 Jun 2011 14:19:17 +0200 Original-Received: by fxm18 with SMTP id 18so838118fxm.14 for ; Wed, 22 Jun 2011 05:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=GZEftGcBNjL0sEOp4/Qv0fUQazWLGTdtKAxC7BUFdPQ=; b=bttrbnOjVf9wogbYUfTQMTkA6qQRP0bo10V8KuRNY7b0HT/EQ8IBZ6QNwjwRe+ohZC vKoBjzvBkQluBYY+QIij+RHM09UBHYRcRqf4XOkyzvRhnksGCJIERWqcjhEACL+C5luL QeQ7BZlrt9eXMfNQfnpzC3wdHy5cZAhuL4yCA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=mARqVUI3RJey7Q7PvqWywrazSrNVDJ0yZxHknVOyjDkVaMiXhSHxn42U3u1MsAo5DL 4kV430wdoo+Jjo6+uL0QqQhYWBfu/q3o8R3e1c0HRBthH25SWAtMfKDOxhFcQLurwo0c 6ZmqH2aqw19zgBkHlH7fuFBsTtkmvZrO/d5Ds= Original-Received: by 10.223.38.149 with SMTP id b21mr794444fae.18.1308745156859; Wed, 22 Jun 2011 05:19:16 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B0EF63B.dip.t-dialin.net [91.14.246.59]) by mx.google.com with ESMTPS id n7sm294663fam.43.2011.06.22.05.19.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jun 2011 05:19:15 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.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: 0eEX0jhr4 - bf7e4dbed263 - 20110622 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:69373 Archived-At: Am 22.06.2011 um 09:56 schrieb Proch=E1zka Luk=E1=9A Ing. - Pontex s. r. o.: > Hello, > = > I'm not able to compile the following code with the > "ConTeXt ver: 2011.06.15 11:49 MKIV fmt: 2011.6.15 int: english/englis= h": > = > ---- > \definestructurelevels > [Test] > [subsection, > subsubsection, > subsubsubsection, > ] > = > \starttext > \startstructurelevel[Test][title=3DTitle] > aaa > \stopstructurelevel > \stoptext > ---- strc-lev.lua: function sections.startautolevel(category) category =3D category ~=3D "" and category or default level =3D level + 1 local lc =3D levels[category] if not lc or level > #lc then - context.nostartstructurehead { format("%s:%s",category,level) } + context.nostarthead { format("%s:%s",category,level) } else - context.dostartstructurehead { lc[level] } + context.dostarthead { lc[level] } end insert(categories,category) end function sections.stopautolevel() local category =3D remove(categories) local lc =3D levels[category] if not lc or level > #lc then - context.nostopstructurehead { format("%s:%s",category,level) } + context.nostophead { format("%s:%s",category,level) } else - context.dostopstructurehead { lc[level] } + context.dostophead { lc[level] } end level =3D level - 1 end 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 ___________________________________________________________________________= ________