From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52525 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: White digit in a black square Date: Sun, 23 Aug 2009 16:00:02 -0400 (EDT) Message-ID: References: <4A91925B.9050303@gmail.com> <33c64e670908231241m49cb0ff5r836dbba26ea51231@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1251057634 29839 80.91.229.12 (23 Aug 2009 20:00:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Aug 2009 20:00:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 23 22:00:28 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1MfJEp-00085W-LX for gctc-ntg-context-518@m.gmane.org; Sun, 23 Aug 2009 22:00:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A93F6C9ADD; Sun, 23 Aug 2009 22:00:26 +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 PogM4smhIeji; Sun, 23 Aug 2009 22:00:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2F7C8C9AAF; Sun, 23 Aug 2009 22:00:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 64498C9AAF for ; Sun, 23 Aug 2009 22:00:22 +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 676GnSA2Knpj for ; Sun, 23 Aug 2009 22:00:19 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by balder.ntg.nl (Postfix) with ESMTP id 7FC07C9A9C for ; Sun, 23 Aug 2009 22:00:19 +0200 (CEST) Original-Received: FROM [192.168.2.8] (c-76-28-88-45.hsd1.ct.comcast.net [76.28.88.45]) By hackers.mr.itd.umich.edu ID 4A919FD1.BD59B.23440 ; Authuser adityam; 23 Aug 2009 16:00:17 EDT In-Reply-To: <33c64e670908231241m49cb0ff5r836dbba26ea51231@mail.gmail.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) 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:52525 Archived-At: On Mon, 24 Aug 2009, Derek CORDEIRO wrote: > I'm no expert, but this seems to work: > > \setupcolors [state=start, system=rgb] > > \def\bw#1{\framed[background=color,backgroundcolor=black]{\color[white]{#1}}} Slightly more ConTeXtish \defineframed [WhiteOnBlack] [background=color,backgroundcolor=black,foregroundcolor=white] (I also tend to avoid small lowercase command names, as you could inadvertenly redefine a build-in context macro) > \setuppagenumbering[command=\bw,location={header,margin}] > \starttext > \input tufte > \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 ___________________________________________________________________________________