From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79083 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Re: Highlight current chapter in list Date: Thu, 8 Nov 2012 22:37:13 +0100 Message-ID: <20121108223713.5b6da1d4@homerow> References: <20121108002930.20b7f349@homerow> <5D6E4FB4-9C56-49FE-8592-ACBB3F278D77@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1352410644 12934 80.91.229.3 (8 Nov 2012 21:37:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Nov 2012 21:37:24 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 08 22:37:34 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 1TWZn4-0008Ee-Al for gctc-ntg-context-518@m.gmane.org; Thu, 08 Nov 2012 22:37:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 06B60101F6; Thu, 8 Nov 2012 22:37:25 +0100 (CET) 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 zRRDSYBq3Wwt; Thu, 8 Nov 2012 22:37:22 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6E0B8101E6; Thu, 8 Nov 2012 22:37:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CFD22101E6 for ; Thu, 8 Nov 2012 22:37:20 +0100 (CET) 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 KMOSCGjV5llx for ; Thu, 8 Nov 2012 22:37:20 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id EC486101E0 for ; Thu, 8 Nov 2012 22:37:18 +0100 (CET) Original-Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qA8LbHf7005973 for ; Thu, 8 Nov 2012 22:37:18 +0100 Original-Received: from c.earth.lavabit.com (c.earth.lavabit.com [192.168.111.12]) by karen.lavabit.com (Postfix) with ESMTP id A667311BC90 for ; Thu, 8 Nov 2012 15:37:16 -0600 (CST) Original-Received: from homerow (83.68.239.193) by lavabit.com with ESMTP id 3J9B3JHMQTQS for ; Thu, 08 Nov 2012 15:37:16 -0600 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=hdeq1P1TZolDVR8p0CPoQ+Zn+Ry9a5RQDJhme/3EMk5kNGoN3+ik3fzu5Xd6NLS4vr/oq0PMom7hG4yJKwI/baTF8Hks3nZf1eHpx3VIwJ3IU1RgklpA1WNz2O+7+YOqf8jzpCuvOMPTrIYXavcE+w1bhuEOdERzUIlYwHOmciE=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: <5D6E4FB4-9C56-49FE-8592-ACBB3F278D77@gmail.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.249.41.33; country=US; region=TX; city=Dallas; postalcode=75206; latitude=32.8339; longitude=-96.7715; metrocode=623; areacode=214; http://maps.google.com/maps?q=32.8339,-96.7715&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RIl9Bhgo - b1df4c945e41 - 20121108 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:79083 Archived-At: 2012-11-08 Wolfgang Schuster: > \setupheadertexts > [\setups{headlist}] > > \startsetups [headlist] > \framed[align=normal, frame=off] > {\placelist [chapter] [alternative=highlight, criterium=all]} > \stopsetups > > \definelistalternative > [highlight] > [renderingsetup=list:highlight] Why does the custom list alternative succeed in a header but fails in a layer? A predefined alternative works perfectly in a layer. \setupfootertexts [\setups{footlist}] \setupbackgrounds [page] [background=layer:chapter] \definelayer [layer:chapter] [state=repeat] \setlayer [layer:chapter] {\placelist [chapter] [alternative=f, criterium=all]} %% works %% {\placelist [chapter] [alternative=highlight, criterium=all]} %% fails \definelistalternative [highlight] [renderingsetup=list:highlight] \startsetups [list:highlight] \currentlistentrytitle \stopsetups %% works \startsetups [footlist] \placelist [chapter] [alternative=highlight, criterium=all] \stopsetups \starttext \startchapter [title=Alpha] \stopchapter \startchapter [title=Beta] \stopchapter \startchapter [title=Gamma] \stopchapter \stoptext Marco ___________________________________________________________________________________ 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 ___________________________________________________________________________________