From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40304 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: chapter setup / table of contents Date: Wed, 16 Apr 2008 00:32:22 +0200 Message-ID: <0955F0E9-0CD7-4F38-B734-EA213BFECC4B@fiee.net> References: <115224fb0804150103r32eeede4r15eea7710a847535@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1208298805 12690 80.91.229.12 (15 Apr 2008 22:33:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2008 22:33:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 16 00:34:01 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 1Jltiz-0005uA-20 for gctc-ntg-context-518@m.gmane.org; Wed, 16 Apr 2008 00:34:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6590E1FC78; Wed, 16 Apr 2008 00:33:13 +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 01943-02-5; Wed, 16 Apr 2008 00:32:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 03A5C1FC11; Wed, 16 Apr 2008 00:32:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9B93F1FC03 for ; Wed, 16 Apr 2008 00:32:56 +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 01943-02-4 for ; Wed, 16 Apr 2008 00:32:24 +0200 (CEST) Original-Received: from lvps87-230-27-118.dedicated.hosteurope.de (fiee.net [87.230.27.118]) by ronja.ntg.nl (Postfix) with ESMTP id 4B34F1FBEF for ; Wed, 16 Apr 2008 00:32:24 +0200 (CEST) Original-Received: (qmail 13914 invoked from network); 16 Apr 2008 00:32:23 +0200 Original-Received: from 38-1.62-81.cust.bluewin.ch (HELO ?10.128.9.3?) (81.62.1.38) by fiee.net with (AES128-SHA encrypted) SMTP; 16 Apr 2008 00:32:23 +0200 In-Reply-To: X-Mailer: Apple Mail (2.753) 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:40304 Archived-At: 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 Why? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___________________________________________________________________________________ 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 ___________________________________________________________________________________