From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78254 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Adaptive section structuring Date: Thu, 13 Sep 2012 10:00:28 +0200 Message-ID: References: <20120913094842.741df22a@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347523240 10614 80.91.229.3 (13 Sep 2012 08:00:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2012 08:00:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 13 10:00:43 2012 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 1TC4Lp-0001Oo-VX for gctc-ntg-context-518@m.gmane.org; Thu, 13 Sep 2012 10:00:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6AE45101EF; Thu, 13 Sep 2012 10:00:38 +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 jk64aLmfJ+VL; Thu, 13 Sep 2012 10:00:36 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B6A59101F0; Thu, 13 Sep 2012 10:00:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D38DD101EF for ; Thu, 13 Sep 2012 10:00:34 +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 WEwuoXLPAlZ4 for ; Thu, 13 Sep 2012 10:00:33 +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 CCBE7101F0 for ; Thu, 13 Sep 2012 10:00:33 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8D80WdX010958 for ; Thu, 13 Sep 2012 10:00:32 +0200 Original-Received: by bkcjc3 with SMTP id jc3so357385bkc.14 for ; Thu, 13 Sep 2012 01:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=uQpv665vNUTfDCPwJ3MgOSZpLZaZLBt5X6g7/p/uF6o=; b=DN5emJBoOaqY/YVmiqG3Z6XbYsJrfi99LvDQgtG0Mz2Qtt6tih5R6vTMMHigCbjdOR HnFTo008Uc7vmJz4niSkKdcjy2C94f8gSm1Rej9W4aZAMvkzHZvsptGzidSUVE2d1WAu Bf7t8oAj6zW5RVlQUV8ItcEtupjqC3PaN8FH0k3uPWUova0CjqucGTOh4VuRebBBk/P1 IaGB0ItPtXNuKZyWZfT7CJ8ZSfBnnCvfYgMbK69zBtBLdZnPHJoXmhGUINPByrtwK3VJ VphDuRW0uSxbDUyOAZ34oVlH2iUsSycOgiv0l4Aij6CWQ1AbU1yQ1A359xjq2klPn3C9 bY+A== Original-Received: by 10.204.133.196 with SMTP id g4mr413879bkt.89.1347523232080; Thu, 13 Sep 2012 01:00:32 -0700 (PDT) Original-Received: from [192.168.1.11] (nrbg-4dbfa409.pool.mediaWays.net. [77.191.164.9]) by mx.google.com with ESMTPS id m9sm13383012bkm.10.2012.09.13.01.00.30 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Sep 2012 01:00:31 -0700 (PDT) In-Reply-To: <20120913094842.741df22a@homerow> X-Mailer: Apple Mail (2.1486) 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: 0THWw0wN4 - f766955592db - 20120913 (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:78254 Archived-At: Am 13.09.2012 um 09:48 schrieb Marco Patzer : > Hi, > > I am often surprised that some nice-to-have feature is already > present in ConTeXt and I just wasn't aware. But I am not sure about > this one. > > Is there something like an adaptive structure code which keeps track > of the nesting level? In this example the first structure would > become the chapter, the second one a section, etc. > > \starttext > \startstructure [title=Alpha] > \startstructure [title=Beta] > \startstructure [title=Gamma] > \stopstructure > \stopstructure > \stopstructure > \stoptext > > This would ease moving around sections, which might end up as > subsections and vice versa. %\definesectionlevels[default][section,subsection,subsubsection] \definesectionlevels[mine][title,subject,subsubject] \starttext \startsectionlevel [title=Alpha] \startsectionlevel [title=Beta] \startsectionlevel [title=Gamma] \stopsectionlevel \stopsectionlevel \stopsectionlevel \startsectionlevel [mine] [title=One] \startsectionlevel [mine] [title=Two] \startsectionlevel [mine] [title=Three] \stopsectionlevel \stopsectionlevel \stopsectionlevel \stoptext 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 ___________________________________________________________________________________