From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70291 Path: news.gmane.org!not-for-mail From: Khaled Hosny Newsgroups: gmane.comp.tex.context Subject: Only show section numbering for \chapter? Date: Tue, 26 Jul 2011 17:48:31 +0200 Message-ID: <20110726154831.GA2796@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0OAP2g/MAC+5xKAE" X-Trace: dough.gmane.org 1311695342 12023 80.91.229.12 (26 Jul 2011 15:49:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Jul 2011 15:49:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 26 17:48:57 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 1QljsM-0005Kg-S0 for gctc-ntg-context-518@m.gmane.org; Tue, 26 Jul 2011 17:48:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 92376CAE74; Tue, 26 Jul 2011 17:48:52 +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 THizCVtTo1ai; Tue, 26 Jul 2011 17:48:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BD36ECAE7A; Tue, 26 Jul 2011 17:48:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 469F6CAE7A for ; Tue, 26 Jul 2011 17:48:48 +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 XPv5xHao7cp4 for ; Tue, 26 Jul 2011 17:48:37 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 4DF27CAE74 for ; Tue, 26 Jul 2011 17:48:37 +0200 (CEST) Original-Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6QFmaEF011766 for ; Tue, 26 Jul 2011 17:48:36 +0200 Original-Received: by wwj40 with SMTP id 40so578795wwj.2 for ; Tue, 26 Jul 2011 08:48:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=3sgsF8rFJx3kdCrFDfEgzocp5SnKGA+6nX9v3khT4KA=; b=sXvbpwQxLrP+DUi4Ew7GfHRieQ09Lh+/4CElOfPFPeopxmnVSMhNwV97FKiy4XOJH2 W+EGlFmeFRRXA0D2l65lTrPqyXb8Dwf3OdZWlC876j9/qHMyPWYP7/RyEb8hPKcPI77F 40D7oI5QiK0S5BSfMl/S1O47ORLNeZvydrY44= Original-Received: by 10.227.29.150 with SMTP id q22mr4978907wbc.78.1311695316284; Tue, 26 Jul 2011 08:48:36 -0700 (PDT) Original-Received: from localhost ([41.176.171.31]) by mx.google.com with ESMTPS id gb1sm537952wbb.37.2011.07.26.08.48.34 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jul 2011 08:48:35 -0700 (PDT) Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.45; 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: 05FcDMASB - c651d8f5cb0c - 20110726 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 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:70291 Archived-At: --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hello all, I'm trying to only show section numbering for chapter, both in the section head and content list. I tried several combinations of number=yes|no, sectionnumber=yes|no but I either get numbering for all or none. I tried using \title and \subject by they don't show in the content list. I ended up using hacks like numbercomman=\dummy, and defining \def\dummy#1{}, but I'm trying to find if there is a cleaner solution. Regards, Khaled -- Khaled Hosny Egyptian Arab --0OAP2g/MAC+5xKAE Content-Type: text/x-tex; charset=utf-8 Content-Disposition: attachment; filename="s.tex" \setuphead[chapter][sectionnumber=yes] \setuphead[section,subsection][sectionnumber=no] \setuplist[content][chapter,section][criterium=all,level=section] \starttext \completecontent \chapter{Chapter} \section{Section} \input knuth \subsection{Sub Section} \input knuth \stoptext --0OAP2g/MAC+5xKAE 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 ___________________________________________________________________________________ --0OAP2g/MAC+5xKAE--