From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76174 Path: news.gmane.org!not-for-mail From: Peter Schorsch Newsgroups: gmane.comp.tex.context Subject: color as module parameter (mkiv) Date: Mon, 14 May 2012 17:53:30 +0200 Message-ID: <20120514175330.1ae6640a@freenet.de> 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: dough.gmane.org 1337010981 21003 80.91.229.3 (14 May 2012 15:56:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 May 2012 15:56:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 14 17:56:21 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 1STxdD-0006hv-Fi for gctc-ntg-context-518@m.gmane.org; Mon, 14 May 2012 17:56:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1A985101E4; Mon, 14 May 2012 17:56:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FofpO4hVyEFK; Mon, 14 May 2012 17:56:15 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1C189101DF; Mon, 14 May 2012 17:56:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CE0BD101DF for ; Mon, 14 May 2012 17:56:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qxdjgJC49C2a for ; Mon, 14 May 2012 17:56:09 +0200 (CEST) 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 5657D101CF for ; Mon, 14 May 2012 17:56:09 +0200 (CEST) Original-Received: from mout4.freenet.de (mout4.freenet.de [IPv6:2001:748:100:40::2:6]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4EFu8dj020803 for ; Mon, 14 May 2012 17:56:08 +0200 Original-Received: from [195.4.92.140] (helo=mjail0.freenet.de) by mout4.freenet.de with esmtpa (ID tralalas@freenet.de) (port 25) (Exim 4.76 #1) id 1STxcz-0001vb-Iw for ntg-context@ntg.nl; Mon, 14 May 2012 17:56:05 +0200 Original-Received: from localhost ([::1]:36568 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID tralalas@freenet.de) (Exim 4.76 #1) id 1STxcz-0006Tn-Ev for ntg-context@ntg.nl; Mon, 14 May 2012 17:56:05 +0200 Original-Received: from [195.4.92.23] (port=36214 helo=13.mx.freenet.de) by mjail0.freenet.de with esmtpa (ID tralalas@freenet.de) (Exim 4.76 #1) id 1STxaY-0003qz-Gr for ntg-context@ntg.nl; Mon, 14 May 2012 17:53:34 +0200 Original-Received: from 31-18-187-91-dynip.superkabel.de ([31.18.187.91]:59917 helo=freenet.de) by 13.mx.freenet.de with esmtpsa (ID tralalas@freenet.de) (UNKNOWN:AES128-SHA:128) (port 25) (Exim 4.76 #1) id 1STxaX-0005Ny-Nl for ntg-context@ntg.nl; Mon, 14 May 2012 17:53:33 +0200 X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2001:748:100:40::2:6; country=DE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RH9PU8xn - 2a66275ab7d6 - 20120514 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:76174 Archived-At: Hi, I am trying to pass a tex color as a paramter to a module. I used the example from the wiki as a base. But as soon I hand over a color directly it does not work. Any help is welcome as I am looking forward to hand in my first module. Are there any rules how and where to hand in a module for context? Thanks P. --8<---Modul: bgcolor.tex--------------- \startmodule[bgcolor] \unprotect \definecolor[grau][s=.35] \setupmodule[color=grau] \setupbackgrounds[page][background=color,backgroundcolor=\currentmoduleparameter{color}] \protect \stopmodule \endinput --8<--tex file itself--------- \setupcolors[state=start] \definecolor[bordeaux][r=.66] \usemodule[bgcolor][color=bordeaux] \starttext Hello world! \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________