From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68780 Path: news.gmane.org!not-for-mail From: Alan Braslau Newsgroups: gmane.comp.tex.context Subject: Re: TOC : Chapter title under its number (separate lines) Date: Fri, 27 May 2011 16:00:36 +0200 Message-ID: <20110527140036.GF17312@iram-ha-003840.extra.cea.fr> References: <8B201B00-D1EE-45E0-855D-8E76D3F88C50@googlemail.com> <20110526151354.GB68215@iram-hb-003386.extra.cea.fr> <4D960EB6-820F-413E-B2B3-B1CB53CA59EE@googlemail.com> <20110526164846.GC68215@iram-hb-003386.extra.cea.fr> <46593206-7C30-4DB8-AD80-FA6BE32CFC7F@googlemail.com> <20110527091426.GB17312@iram-ha-003840.extra.cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1306504946 21444 80.91.229.12 (27 May 2011 14:02:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 May 2011 14:02:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 27 16:02:22 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 1QPxcL-0004eT-BX for gctc-ntg-context-518@m.gmane.org; Fri, 27 May 2011 16:02:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 42EDECAD8B; Fri, 27 May 2011 16:02:20 +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 ZiIGB9M-MdDu; Fri, 27 May 2011 16:02:17 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7BAA3CAD85; Fri, 27 May 2011 16:02:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D80FBCAD85 for ; Fri, 27 May 2011 16:02:15 +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 Dg+5Uxv+uicl for ; Fri, 27 May 2011 16:02:04 +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 DE3D0CAD2F for ; Fri, 27 May 2011 16:02:04 +0200 (CEST) Original-Received: from cirse-out.extra.cea.fr (cirse-out.extra.cea.fr [132.167.192.142]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4RE223I002692 for ; Fri, 27 May 2011 16:02:02 +0200 Original-Received: from epeire1.extra.cea.fr (epeire1.extra.cea.fr [132.167.198.31]) by cirse.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.2) with ESMTP id p4RE22vf005763 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 27 May 2011 16:02:02 +0200 Original-Received: from orpin2.extra.cea.fr (orpin2.extra.cea.fr [132.167.198.5]) by epeire1.extra.cea.fr (8.14.4/8.14.4) with ESMTP id p4RE21Lw032198 for ; Fri, 27 May 2011 16:02:01 +0200 (envelope-from alan.braslau@cea.fr) Original-Received: from iram-ha-003840.extra.cea.fr (iram-ha-003840.extra.cea.fr [132.166.25.152]) by orpin2.extra.cea.fr (8.13.8/8.13.8/CEAnet-Intranet-out-1.1) with ESMTP id p4RE212a026989 for ; Fri, 27 May 2011 16:02:01 +0200 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=132.167.192.142; country=FR; region=A3; city=Gif-sur-yvette; latitude=48.6833; longitude=2.1333; http://maps.google.com/maps?q=48.6833,2.1333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bEMC22kz - b2466a4f1b57 - 20110527 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:68780 Archived-At: "interaction=sectionnumber" rather than "interaction=all" doesn't seem to help here... Alan On Fri, May 27, 2011 at 09:33:53AM -0400, Mathieu DUPONT wrote: > > As for the interaction patching, in the following example I can't figure out > how to have, for the chapter lines, only "CHAPTER 1" being the interaction and > not "the title" + "the dots line" + "the page number", as it is the case with > this code. > The example is minimal, but I left everything I am afraid could be dropped by a > solution. > > Thanks for help ! > > > \setupinteraction[state=start] > > \setuplabeltext[chapter=CHAPITRE~] > > \setupcombinedlist[content][ > level=3, > alternative=c, > ] > \unprotect > \define[3]\ChapterList{\vbox{ > \setuplocalinterlinespace[line=2.8ex] > \listparameter\c!before > \leftskip\listparameter\c!margin > \noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3 > \par > \listparameter\c!after > \setuplocalinterlinespace[line=4.2ex] > }} > \protect > > \setuplist[chapter][ > label=yes, > alternative=vertical, > command=\ChapterList, > interaction=all, > ] > \starttext > > \startfrontmatter > \placecontent > \stopfrontmatter > > \startbodymatter > \chapter{CHAPTER} > \section{SECTION} > \subsection{SUBSECTION} > \stopbodymatter > > \stoptext > > Mathieu ___________________________________________________________________________________ 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 ___________________________________________________________________________________