From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81473 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Visualcounter: style parameter not working as expected Date: Mon, 1 Apr 2013 19:30:25 -0400 (EDT) Message-ID: References: <201304020029.36246.romain.diss@yahoo.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1364859036 10959 80.91.229.3 (1 Apr 2013 23:30:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Apr 2013 23:30:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 02 01:31:04 2013 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 1UMoBr-0007Mw-0y for gctc-ntg-context-518@m.gmane.org; Tue, 02 Apr 2013 01:31:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E0396101E4; Tue, 2 Apr 2013 01:30:37 +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 WZuJAB8Fqr7w; Tue, 2 Apr 2013 01:30:36 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D332C101E5; Tue, 2 Apr 2013 01:30:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9611E101E5 for ; Tue, 2 Apr 2013 01:30:34 +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 Q3-KzJw4fFaw for ; Tue, 2 Apr 2013 01:30:33 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 0F4E1101E4 for ; Tue, 2 Apr 2013 01:30:32 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r31NUTOL002514 for ; Tue, 2 Apr 2013 01:30:30 +0200 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By tombraider.mr.itd.umich.edu ID 515A1893.7A86A.24010 ; Authuser adityam; 1 Apr 2013 19:30:27 EDT In-Reply-To: <201304020029.36246.romain.diss@yahoo.fr> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07JiLut8B - f22d31c29256 - 20130402 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:81473 Archived-At: On Tue, 2 Apr 2013, Romain Diss wrote: > I'm actually using the visualcounter module for a presentation and I can't > modify the style of the page number inside the countdown counter. The > documentation let me think the 'style' parameter should do the job but it > doesn't seem to work. > > Do I miss something or is this a bug? This is a bug. Thanks for the report. I have fixed it on the github dev branch, and will upload a new version soon. In case anyone is interested, this is what was happening: Context parses the parameter of `\useMPgraphic` to determine the MP instance. The code was using \useMPgraphic{\visualcounterparameter\c!mp} `\useMPgraphic` does not expand its arguments, so the proper MP instance was not initialized. Changed the above line to \expanded{\useMPgraphic{\visualcounterparameter\c!mp}} and now style and color parameters work. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________