From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77720 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: alternative command for lists Date: Fri, 3 Aug 2012 12:00:45 +0200 Message-ID: <811E378A-D090-448D-A4AA-9F0E22DF6C74@boede.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: multipart/mixed; boundary="Apple-Mail=_95100003-6B76-4C4A-8623-4ED9306135B6" X-Trace: dough.gmane.org 1343988071 15624 80.91.229.3 (3 Aug 2012 10:01:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Aug 2012 10:01:11 +0000 (UTC) To: NTG-Context ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 03 12:01:11 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SxEgp-0004FP-CS for gctc-ntg-context-518@m.gmane.org; Fri, 03 Aug 2012 12:01:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C9F38101DD; Fri, 3 Aug 2012 12:01:01 +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 bBwunFPwAHkg; Fri, 3 Aug 2012 12:01:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1E607101DF; Fri, 3 Aug 2012 12:01:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E0254101DF for ; Fri, 3 Aug 2012 12:00:57 +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 k8JjLAmMyL9B for ; Fri, 3 Aug 2012 12:00:57 +0200 (CEST) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 0DCE2101DD for ; Fri, 3 Aug 2012 12:00:56 +0200 (CEST) Original-Received: from webmail.digitpaint.nl (webmail.digitpaint.nl [83.98.197.40]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q73A0tGG011833 for ; Fri, 3 Aug 2012 12:00:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by webmail.digitpaint.nl (Postfix) with ESMTP id D2C9F1A2FBE for ; Fri, 3 Aug 2012 12:00:54 +0200 (CEST) Original-Received: from webmail.digitpaint.nl ([127.0.0.1]) by localhost (mail.digitpaint.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RC-GadL5N5LC for ; Fri, 3 Aug 2012 12:00:54 +0200 (CEST) Original-Received: from willis-computer.fritz.box (a83-161-249-79.adsl.xs4all.nl [83.161.249.79]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by webmail.digitpaint.nl (Postfix) with ESMTPSA id 452AB1A2F64 for ; Fri, 3 Aug 2012 12:00:45 +0200 (CEST) X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0002 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.98.197.40; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04HGa0TbH - 9f153f70b72d - 20120803 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77720 Archived-At: --Apple-Mail=_95100003-6B76-4C4A-8623-4ED9306135B6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi all, At the moment I am busy to build a custom TOC. I stumble overt the fact, = that ConTeXt seems to forget all parameters set in \setuplist once you = issue alternative=3Dcommand, command=3D=85 Could anyone of you enlighten me whether I miss something? Kind regards Willi=20 P.S. Please refer to the attached minimal example. --Apple-Mail=_95100003-6B76-4C4A-8623-4ED9306135B6 Content-Disposition: attachment; filename=test-listcommand.tex Content-Type: application/octet-stream; name="test-listcommand.tex" Content-Transfer-Encoding: 7bit % Context file % Filename: test-listcommand.tex % % 02-08-2012 % Copyright (c) 2012 BOEDE. All rights reserved. % % \nopdfcompression % \enabletrackers[context.trace] % \enabletrackers[system.jobfiles] \define[3]\CGJSection{{\bf #3\hskip3em #1. #2}\par} \define[3]\CGJSubsection{\it #3\hskip3em #1. #2\par} % \define[3]\CGJsubsection{% % \framed % [width=\textwidth,align=flushleft,offset=0pt,style=\it] % {\hbox to 8mm{#3} #1. #2}} \setuplist [section] [before={\blank[line]}, after={}, style=\bf, numberstyle=\bf, textstyle=\bf, prefix=no, % alternative=command, % command=\CGJSection% ] \setuplist [subsection] [before={}, after={}, numberstyle=\it, tetxtstyle=\it, prefix=no, % alternative=command, % command=\CGJSubsection% ] %\showframe \starttext \startsubject[title=Index] \placelist[section,subsection] \stopsubject \page \dorecurse{3}{% \startsection[title=Ward] \input ward \startsubsection[title=Weisman] \input weisman \stopsubsection \startsubsection[title=Bryson] \input bryson \stopsubsection \startsubsection[title=Linden] \input linden \stopsubsection \stopsection} \stoptext --Apple-Mail=_95100003-6B76-4C4A-8623-4ED9306135B6 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 ___________________________________________________________________________________ --Apple-Mail=_95100003-6B76-4C4A-8623-4ED9306135B6--