From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49906 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: What happened with sectionworld? Date: Wed, 29 Apr 2009 17:11:13 +0200 Message-ID: References: <1D0F418D-E66C-4A90-9616-8757CDB08058@fiee.net> <940A7A27-BF8E-4A9E-A5A5-97906A8FAE22@gmail.com> <49F85BEA.6040003@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241018012 32366 80.91.229.12 (29 Apr 2009 15:13:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2009 15:13:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 29 17:13:23 2009 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 1LzBTD-0001PF-Tb for gctc-ntg-context-518@m.gmane.org; Wed, 29 Apr 2009 17:13:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5DF071FCF6; Wed, 29 Apr 2009 17:13:06 +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 30601-02-8; Wed, 29 Apr 2009 17:11:28 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D51F11FC78; Wed, 29 Apr 2009 17:11:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 280691FC78 for ; Wed, 29 Apr 2009 17:11:26 +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 30601-02-7 for ; Wed, 29 Apr 2009 17:11:17 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id 6B5E11FC44 for ; Wed, 29 Apr 2009 17:11:17 +0200 (CEST) Original-Received: from turan.fiee.net (lvps87-230-77-106.dedicated.hosteurope.de [87.230.77.106]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3TFBFLP032419 for ; Wed, 29 Apr 2009 17:11:15 +0200 Original-Received: from turan.fiee.net (lvps87-230-77-106.dedicated.hosteurope.de [127.0.0.1]) by turan.fiee.net (Postfix) with ESMTP id B9A8E19E08030 for ; Wed, 29 Apr 2009 17:11:14 +0200 (CEST) Received-SPF: neutral (lvps87-230-77-106.dedicated.hosteurope.de: 83.79.57.97 is neither permitted nor denied by domain of fiee.net) client-ip=83.79.57.97; envelope-from=hraban@fiee.net; helo=[10.128.9.9]; Original-Received: from [10.128.9.9] (97-57.79-83.cust.bluewin.ch [83.79.57.97]) by turan.fiee.net (Postfix) with ESMTP for ; Wed, 29 Apr 2009 17:11:14 +0200 (CEST) In-Reply-To: <49F85BEA.6040003@googlemail.com> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=87.230.77.106; country=DE; region=07; city=Host; latitude=51.6500; longitude=6.1833; http://maps.google.com/maps?q=51.6500,6.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 216950672 - 61244c298b1c - 20090429 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:49906 Archived-At: Am 2009-04-29 um 15:53 schrieb Mohamed Bana: > Would it be possible to go through a deprecation phase? E.g., allow > > \section hello world > > to compile, but prompt the user to acknowledge that it's going to be > replaced with \section{hello world} in future versions. Please don't mix your concern about structurals without braces into this thread, would you please? Or is it the same topic? I agree that it would be nice to know if commands disappear. I try to understand here, how to redo my chapter setup that once worked using sectionworld commands. At the moment I get no output for the chapter title at all. My input reads: \Titel{Author}{Title}{Subtitle} The output as chapter title should become like: \vbox{ {\rm\tf Author\crlf} {\ss\bfb Title\crlf} {\ss\bf Subtitle} } In the table of contents I need: Author: Title \hfill pagenumber So, using \startchapter, I define \Titel like this: \def\Titel#1#2#3{\startchapter[title={#2},bookmark={#2}] [author={#1},subtitle={#3}]} I guess, even \startchapter should obey to \setuphead[chapter]: \setuphead[chapter][ header=high, incrementnumber=no, command=\ChapterCommand, page=yes, number=no, align={flushleft,nothyphenated,verytolerant}, style=,] Therefore I define (i.e. Wolfgang defined) \ChapterCommand like: \def\ChapterCommand#1#2{\vbox{\ChapterAuthor\ChapterTitle \ChapterSubTitle}} While \ChapterAuthor cum suis is defined in a setup. Now, what's the replacement for: \setupsectionworld[chapter][setups={chapter:list},author=] I tried to adapt Wolfgang's code to Hans' sparse hints: \unprotect \resetvalue{\??sw\v!chapter} \startsetups chapter:list \doiftextelse{\structureuservalue{author}} {\expanded{\writetolist[\v!chapter] {\structureuservalue{author}:\space \structurevalue{title}}{}}} {\expanded{\writetolist[\v!chapter] {\structurevalue{title}}{}}} \def\ChapterAuthor{% \doiftextelse% {\structureuservalue{author}}% {\rm\tf\structureuservalue{author}\crlf\vskip0.25em} {}% } \def\ChapterTitle{{\ss\bfb\structurevalue{title}}} \def\ChapterSubTitle{% \doiftextelse% {\structureuservalue{subtitle}}% {\crlf\vskip0.2em\ss\bf\structureuservalue{subtitle}}% {}% } \stopsetups \def\ChapterCommand#1#2{\vbox{\ChapterAuthor\ChapterTitle \ChapterSubTitle}} % why is/was this needed? \let\ChapterAuthor\relax \let\ChapterTitle\relax \let\ChapterSubTitle\relax \protect (The original code is still in http://wiki.contextgarden.net/Proceedings_style) 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 ___________________________________________________________________________________