From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86214 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Dynamic headings & query heading information Date: Fri, 7 Feb 2014 16:00:56 +0100 Message-ID: References: <52909930.20140207154501@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: multipart/mixed; boundary="===============1086690243==" X-Trace: ger.gmane.org 1391785269 8766 80.91.229.3 (7 Feb 2014 15:01:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2014 15:01:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 07 16:01:18 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 1WBmve-0003y0-NS for gctc-ntg-context-518@m.gmane.org; Fri, 07 Feb 2014 16:01:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F3F42101E1; Fri, 7 Feb 2014 16:01:17 +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 27MjT7S9xf8t; Fri, 7 Feb 2014 16:01:15 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id AC02F101EB; Fri, 7 Feb 2014 16:01:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1369D101EB for ; Fri, 7 Feb 2014 16:01:14 +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 BS8IWIicgMuv for ; Fri, 7 Feb 2014 16:01:12 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id AA24C101E1 for ; Fri, 7 Feb 2014 16:01:02 +0100 (CET) Original-Received: from mail-ee0-x22d.google.com (mail-ee0-x22d.google.com [IPv6:2a00:1450:4013:c00::22d]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s17F10QR004656 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 7 Feb 2014 16:01:01 +0100 Original-Received: by mail-ee0-f45.google.com with SMTP id b15so1567083eek.18 for ; Fri, 07 Feb 2014 07:01:00 -0800 (PST) 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:message-id :references:to; bh=UkOrxCLeyHiQZsTTTRh3MlIpQtEhzLu7XDH3BfM/0UM=; b=f3kX8eM0QPz72R1/USHuv5FLIWUoNWHhKGT8CQMpXoJKDdpdJ+PgU8NIWrZkoPcmag sD7AOIL0eQ6INyjscr1DOHaulzxoCiS34/n0C7tI0MaTjt4jKMJrBF/LlGtS1yYLBFQh C1yYk6Ld3NkoFtT7sfE9b0VHy9RoVchLkFtQz28DlawcdGbAH7eoFD49qkQxXxIPFQxx XCr9bSDw92Mond6FJhm2oi93npNfG8YMVVI1RLRxi921Mi/NjGymz/5bbEz87bGPTKzM kTesIDywhVbiWHP+iHdS5yQ9GuQTk5Tl9mxY53ay91q5pWT/wReoKxNIZ6+YTuMUpsc3 EmmA== X-Received: by 10.14.94.3 with SMTP id m3mr17175469eef.54.1391785260122; Fri, 07 Feb 2014 07:01:00 -0800 (PST) Original-Received: from keima.localdomain (x2f24137.dyn.telefonica.de. [2.242.65.55]) by mx.google.com with ESMTPSA id o43sm17352811eef.12.2014.02.07.07.00.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Feb 2014 07:00:57 -0800 (PST) X-Priority: 3 (Normal) In-Reply-To: <52909930.20140207154501@gmx.de> X-Mailer: Apple Mail (2.1827) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::22d; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Lnr11na - 6abdeb08d219 - 20140207 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:86214 Archived-At: --===============1086690243== Content-Type: multipart/alternative; boundary="Apple-Mail=_1D97E9DC-41B8-44E2-9CA2-90458D97DA86" --Apple-Mail=_1D97E9DC-41B8-44E2-9CA2-90458D97DA86 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 07.02.2014 um 15:45 schrieb Andreas Schneider : > Hello, >=20 > again I'm working on a technical manual and decided to use ConTeXt to = do the job. Since I'm a developer, I always try to do things as flexible = as possible. >=20 > I'm currently struggling to achieve two things: >=20 > 1) a macro (that will print a list) should also add a heading. = However, the heading should always be one level beneath the current = heading and without numbering. Example: within a \section it should be a = \subsubject, within a \chapter it should be a \subject, and so on. \definesectionlevels[extra][title,subject,subsubject,subsubsubject] \setuphead[chapter][color=3Dred] \setuphead[section][color=3Dgreen] \setuphead[subsection][color=3Dblue] \define\PlaceList {\startsectionlevel[extra][title=3DList] % \stopsectionlevel} \starttext \startsectionlevel[title=3DChapter 1] \PlaceList \startsectionlevel[title=3DSection 1.1] \startsectionlevel[title=3DSubsection 1.1.1] \stopsectionlevel \startsectionlevel[title=3DSubsection 1.1.2] \stopsectionlevel \stopsectionlevel \startsectionlevel[title=3DSection 1.2] \stopsectionlevel \stopsectionlevel \startsectionlevel[title=3DChapter 2] \startsectionlevel[title=3DSection 2.1] \PlaceList \startsectionlevel[title=3DSubsection 2.1.1] \stopsectionlevel \startsectionlevel[title=3DSubsection 2.1.2] \stopsectionlevel \stopsectionlevel \startsectionlevel[title=3DSection 2.2] \stopsectionlevel \stopsectionlevel \stoptext Wolfgang --Apple-Mail=_1D97E9DC-41B8-44E2-9CA2-90458D97DA86 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Am 07.02.2014 um 15:45 schrieb Andreas = Schneider <aksdb@gmx.de>:

Dynamic headings & query heading = information
Hello,

again I'm working on a technical manual and decided to use ConTeXt to do = the job. Since I'm a developer, I always try to do things as flexible as = possible.

I'm currently struggling to achieve two things:

1) a macro (that will print a list) should also add a heading. However, = the heading should always be one level beneath the current heading and = without numbering. Example: within a \section it should be a = \subsubject, within a \chapter it should be a \subject, and so = on.

\definesectionlevels[= extra][title,subject,subsubject,subsubsubject]

\s= etuphead[chapter][color=3Dred]
\setuphead[section][color=3Dgreen= ]
\setuphead[subsection][color=3Dblue]

= \define\PlaceList
  = {\startsectionlevel[extra][title=3DList]
  =  %
  =  \stopsectionlevel}

\starttext
\startsectionlevel[title=3DChapter = 1]

\PlaceList

\startsect= ionlevel[title=3DSection = 1.1]

\startsectionlevel[title=3DSubsection = 1.1.1]
\stopsectionlevel

\startsectionl= evel[title=3DSubsection = 1.1.2]
\stopsectionlevel

\stopsectionle= vel

\startsectionlevel[title=3DSection = 1.2]
\stopsectionlevel

\stopsectionleve= l

\startsectionlevel[title=3DChapter = 2]

\startsectionlevel[title=3DSection = 2.1]

\PlaceList

\startse= ctionlevel[title=3DSubsection = 2.1.1]
\stopsectionlevel

\startsectionl= evel[title=3DSubsection = 2.1.2]
\stopsectionlevel

\stopsectionle= vel

\startsectionlevel[title=3DSection = 2.2]
\stopsectionlevel

\stopsectionleve= l

\stoptext

Wolfgang

= --Apple-Mail=_1D97E9DC-41B8-44E2-9CA2-90458D97DA86-- --===============1086690243== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1086690243==--