From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79085 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Highlight current chapter in list Date: Thu, 8 Nov 2012 22:48:43 +0100 Message-ID: <3A73320B-F235-44E4-AD2A-5D806A4D5370@gmail.com> References: <20121108002930.20b7f349@homerow> <5D6E4FB4-9C56-49FE-8592-ACBB3F278D77@gmail.com> <20121108223713.5b6da1d4@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1352411334 19125 80.91.229.3 (8 Nov 2012 21:48:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Nov 2012 21:48:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 08 22:49:04 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 1TWZy8-0000Hf-8K for gctc-ntg-context-518@m.gmane.org; Thu, 08 Nov 2012 22:49:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9FC4410200; Thu, 8 Nov 2012 22:48:50 +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 lcwdiUDVrklV; Thu, 8 Nov 2012 22:48:50 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4BCAE101E7; Thu, 8 Nov 2012 22:48:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 60A79101E7 for ; Thu, 8 Nov 2012 22:48:47 +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 qWsvOOI2Qxpz for ; Thu, 8 Nov 2012 22:48:45 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id A475C101E6 for ; Thu, 8 Nov 2012 22:48:45 +0100 (CET) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qA8Lh0JV020005 for ; Thu, 8 Nov 2012 22:43:01 +0100 Original-Received: by mail-bk0-f41.google.com with SMTP id jm1so1657640bkc.14 for ; Thu, 08 Nov 2012 13:48:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=wdC+p9j7KuI2Mo4Sf+kl1zpaAov4B/ZTLBZkRHDIz5s=; b=lpYcsodaFqBymxjUf3gA4lRoaujjI+GsVi902QrQ/5WVeFEiglwMPdkUJhYyWmWuGk 8+CgYe175fWpDuDJroic43VMd3MLzUOPZ51l/7wd0NQouS9het/erNOvP6PFmsW6mWc9 RWVyPbzQ3iGjstpMApRaSs24IHSEhN6brEBQf4zhhc3dal3hAqnEdq6+U3993hc/qXkI fehcVkt5ORy0IzrJkYw1hUT3ylMJEGAuUh127MSlGaf4gTiyS4qkChN58R/4mtYee7X1 6S7y/bf2C91yU+C944YFN4Ly/R7BrV6FYrZwltUkaNwYyKA6xd8z9FdkCN+yUbTvStbU tx1g== Original-Received: by 10.204.131.87 with SMTP id w23mr2721435bks.73.1352411324366; Thu, 08 Nov 2012 13:48:44 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4dbfb5bb.pool.mediaWays.net. [77.191.181.187]) by mx.google.com with ESMTPS id 9sm17981687bkq.13.2012.11.08.13.48.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Nov 2012 13:48:43 -0800 (PST) In-Reply-To: <20121108223713.5b6da1d4@homerow> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WIl9H15p - 773d021a981d - 20121108 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:79085 Archived-At: Am 08.11.2012 um 22:37 schrieb Marco Patzer : > 2012-11-08 Wolfgang Schuster: > = >> \setupheadertexts >> [\setups{headlist}] >> = >> \startsetups [headlist] >> \framed[align=3Dnormal, frame=3Doff] >> {\placelist [chapter] [alternative=3Dhighlight, criterium=3Dall]} >> \stopsetups >> = >> \definelistalternative >> [highlight] >> [renderingsetup=3Dlist:highlight] > = > Why does the custom list alternative succeed in a header but fails > in a layer? A predefined alternative works perfectly in a layer. Header and footers are added and calculated after the page is finished but when you put a text in a layer it is fixed at this moment. The problem in your example with the custom list alternative is that you haven=92t defined it when it is needed, when you put \definelistalterna= tive and \startsetups =85 \stopsetups before \setlayer you can see it. For a dynamic layer take a look at this wiki page: http://wiki.contextgarde= n.net/Layers#Use_dynamic_content Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________