From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44235 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: how to color footnote? Date: Mon, 22 Sep 2008 19:57:30 -0400 (EDT) Message-ID: References: <48D7CA14.50201@elvenkind.com> <922EC55C-08A4-4118-8275-B55ED6EF411F@st.estfiles.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222127986 28596 80.91.229.12 (22 Sep 2008 23:59:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Sep 2008 23:59:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 23 02:00:42 2008 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 1KhvKX-0004eN-M6 for gctc-ntg-context-518@m.gmane.org; Tue, 23 Sep 2008 02:00:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 722AB1FDE7; Tue, 23 Sep 2008 01:59:31 +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 07123-04-2; Tue, 23 Sep 2008 01:58:46 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E4BC1FD81; Tue, 23 Sep 2008 01:58:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 347121FDE7 for ; Tue, 23 Sep 2008 01:58:27 +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 01982-03-8 for ; Tue, 23 Sep 2008 01:57:40 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with ESMTP id 980941FD81 for ; Tue, 23 Sep 2008 01:57:37 +0200 (CEST) Original-Received: FROM adi-laptop-2.local (c-68-40-40-226.hsd1.mi.comcast.net [68.40.40.226]) BY tombraider.mr.itd.umich.edu ID 48D830F0.B4045.26788 ; 22 Sep 2008 19:57:36 -0400 In-Reply-To: <922EC55C-08A4-4118-8275-B55ED6EF411F@st.estfiles.de> User-Agent: Alpine 1.00 (DEB 882 2007-12-20) 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:44235 Archived-At: On Mon, 22 Sep 2008, Steffen Wolfrum wrote: > THAT'S GREAT: :) > Am 22.09.2008 um 21:32 schrieb Aditya Mahajan: > >> On Mon, 22 Sep 2008, Steffen Wolfrum wrote: >>> >>> Ahh, now I see where my problem lays: >>> >>> >>> \setupcolors[state=start] >>> >>> \starttext >>> >>> \setupinteraction[state=start] >>> >>> \setupfootnotes[textcolor=magenta] >>> >>> \setupfootnotedefinition[before={\color[green]}] >>> test\footnote{test} >>> >>> \stoptext >>> >>> Despite the fact that interaction carries its own color, elements can >>> be re-colored by their own color definition (see above). >>> Only the number of the note in front of the footnote text always gets >>> overridden by interaction color! >> >> Because it is overridden by interaction color. > > It gets overridden by interaction color because it is overriden by > interaction color? :) Ok, I guess I should read what I write. What I meant was that interaction is added last, so everything gets overridden by interaction colors. > >>> This distinction I didn't expect. >>> >>> >>> Why should exclusively that poor little number not be allowed to have >>> its own color? >> >> There should be a better way to do this (set interaction color and >> interaction style of each element separately), but for your case you >> can >> use >> >> \setupcolors[state=start] >> >> \starttext >> >> \setupinteraction[state=start] >> >> \setupfootnotes[textcolor=magenta] >> >> \setupfootnotedefinition[before={\color[green]}] >> test\footnote{test} >> >> \stoptext > > > It's like a game for kids ... "who finds the 10 differences between > Aditya's lines and Steffen's lines?" > > =o) > > Next try? Volunteers! > > Who get's the little darkgreen footnote number paint in red ... > nobody??? Hopefully, will past e the correct thing this time \setupcolors[state=start] \setupinteraction[state=start] \setupfootnotes[textcolor=magenta] \setupfootnotedefinition[before={\setupinteraction[color=blue]}] \starttext \section[one] {Fist} test\footnote{test} See section \in[one]. \stoptext Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________