From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40308 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: chapter setup / table of contents Date: Wed, 16 Apr 2008 08:31:03 +0200 Message-ID: <115224fb0804152331x5c5bb375w22a2768446021834@mail.gmail.com> References: <115224fb0804150103r32eeede4r15eea7710a847535@mail.gmail.com> <0955F0E9-0CD7-4F38-B734-EA213BFECC4B@fiee.net> 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: ger.gmane.org 1208327913 14278 80.91.229.12 (16 Apr 2008 06:38:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2008 06:38:33 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 16 08:39:11 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Jm1Ca-000591-KA for gctc-ntg-context-518@m.gmane.org; Wed, 16 Apr 2008 08:33:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5BFF21FC39; Wed, 16 Apr 2008 08:32:24 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28564-10-2; Wed, 16 Apr 2008 08:31:40 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9B4F61FC11; Wed, 16 Apr 2008 08:31:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 54FDE1FB98 for ; Wed, 16 Apr 2008 08:31:39 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29525-01-3 for ; Wed, 16 Apr 2008 08:31:06 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.158]) by ronja.ntg.nl (Postfix) with ESMTP id 446081FC11 for ; Wed, 16 Apr 2008 08:31:06 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 6so1754179ywa.74 for ; Tue, 15 Apr 2008 23:31:03 -0700 (PDT) Original-Received: by 10.151.85.20 with SMTP id n20mr8778552ybl.79.1208327463483; Tue, 15 Apr 2008 23:31:03 -0700 (PDT) Original-Received: by 10.150.49.21 with HTTP; Tue, 15 Apr 2008 23:31:03 -0700 (PDT) In-Reply-To: <0955F0E9-0CD7-4F38-B734-EA213BFECC4B@fiee.net> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:40308 Archived-At: On Wed, Apr 16, 2008 at 12:32 AM, Henning Hraban Ramm wrote: > I have now: > > \unprotect > > \resetvalue{\??sw\v!chapter} > > \startsetups chapter:list > > \doifsomething{\sectionworldparameter\c!author} > {\expanded{\writetolist[\v!chapter] > {\sectionworldparameter\c!author:\space > \sectionworldparameter\c!text}{}}} > > \def\ChapterAuthor{{\rm\tf\sectionworldparameter\c!author}} > \def\ChapterTitle{{\ss\bfa\sectionworldparameter\c!text}} > \def\ChapterSubTitle{{\ss\bf\sectionworldparameter\c!subtitle}} > > \stopsetups > > \setupsectionworld [chapter] > [setups={chapter:list}, > author=] > > \def\ChapterCommand#1#2% > {\vbox{\ChapterAuthor\crlf\ChapterTitle\crlf\ChapterSubTitle}} > > \let\ChapterAuthor\relax > \let\ChapterTitle\relax > \let\ChapterSubTitle\relax > > \protect > > \setuphead [chapter] > [incrementnumber=no, > command=\ChapterCommand, > page=yes, number=no, > align={flushleft,nothyphenated,verytolerant} > ] > > > The result is about: > > \rm\tfa Author > \ss\bf Title > \ss\bfa Subtitle > > instead of (like I defined): > > \rm\tf Author > \ss\bfa Title > \ss\bf SubTitle Add "style=," to \setuphead[chapter] because the default value influence your own settings. You should also define a new header for the ToC because it use \title by default and this is also changed with \setuphead[chapter]. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________