From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52523 Path: news.gmane.org!not-for-mail From: Derek CORDEIRO Newsgroups: gmane.comp.tex.context Subject: Re: White digit in a black square Date: Mon, 24 Aug 2009 01:11:35 +0530 Message-ID: <33c64e670908231241m49cb0ff5r836dbba26ea51231@mail.gmail.com> References: <4A91925B.9050303@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0282596581==" X-Trace: ger.gmane.org 1251056512 27069 80.91.229.12 (23 Aug 2009 19:41:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Aug 2009 19:41:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 23 21:41:45 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 1MfIwi-0002KM-HL for gctc-ntg-context-518@m.gmane.org; Sun, 23 Aug 2009 21:41:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 90FA5C9AC1; Sun, 23 Aug 2009 21:41:43 +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 cIRPnuSJAuEP; Sun, 23 Aug 2009 21:41:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A73F9C9AAF; Sun, 23 Aug 2009 21:41:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4796C9AAF for ; Sun, 23 Aug 2009 21:41:38 +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 A1kvfNBwK9Qt for ; Sun, 23 Aug 2009 21:41:36 +0200 (CEST) Original-Received: from mail-fx0-f219.google.com (mail-fx0-f219.google.com [209.85.220.219]) by balder.ntg.nl (Postfix) with ESMTP id E7EF4C9A9C for ; Sun, 23 Aug 2009 21:41:35 +0200 (CEST) Original-Received: by fxm19 with SMTP id 19so623419fxm.2 for ; Sun, 23 Aug 2009 12:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=JBhaEjaAK9O0BDbY7vAiNTqfUtQRwgv3+ALNeABqm9Y=; b=fS3jKBkoe1efL6BvChkivEmP1avUuEFZMWlTLXgF8HfZXKDU21WxR59iOR40o6oXlK hibLhYsTMY1ROXGRxlRAS5AWmd3HujWFYIws+yVSbSy75H5qA+76i25w2CDEdwz5Yjyp lyIl1Gw5quYN9Nvu1pBZWUd7dQUAiFc5JlLm8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=vMKurzfoneJ+HiXLQJxvBSsyk8oVi1oOhGDYYim1Y2Yd81xNsZhyNjJNGYOEb6SQ0G yoIAVFMC8iPAqS3LHCM6YhH78LvRmdadegjnQOTtD0yAj7TU8N37Vw3R8ed4zRNEqfs0 Iienf0u4seV8RjyKazvFA0hexd4tuMUfdkmWk= Original-Received: by 10.86.210.32 with SMTP id i32mr2637021fgg.60.1251056495728; Sun, 23 Aug 2009 12:41:35 -0700 (PDT) In-Reply-To: <4A91925B.9050303@gmail.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:52523 Archived-At: --===============0282596581== Content-Type: multipart/alternative; boundary=00c09ffb54780597fe0471d44a75 --00c09ffb54780597fe0471d44a75 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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}}} \setuppagenumbering[command=\bw,location={header,margin}] \starttext \input tufte \stoptext On Mon, Aug 24, 2009 at 12:32 AM, Vyatcheslav Yatskovsky < yatskovsky@gmail.com> wrote: > Hello, > > How to make page number as white digit in a black square? (And place it on > the right of the page) > Since right is ambiguous(it could be header or footer) I think you will be able to figure it out http://texshow.contextgarden.net/cmd/en/setuppagenumbering HTH --00c09ffb54780597fe0471d44a75 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit 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}}}

\setuppagenumbering[command=\bw,location={header,margin}]
\starttext
\input tufte
\stoptext


On Mon, Aug 24, 2009 at 12:32 AM, Vyatcheslav Yatskovsky <yatskovsky@gmail.com> wrote:
Hello,

How to make page number as white digit in a black square? (And place it on the right of the page)

Since right is ambiguous(it could be header or footer) I think you will be able to figure it out http://texshow.contextgarden.net/cmd/en/setuppagenumbering

HTH
--00c09ffb54780597fe0471d44a75-- --===============0282596581== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0282596581==--