[NTG-context] White digit in a black square

2009-08-23 Thread Vyatcheslav Yatskovsky
Hello, How to make page number as white digit in a black square? (And place it on the right of the page) Regards, Vyatcheslav ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] White digit in a black square

2009-08-23 Thread Derek CORDEIRO
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

Re: [NTG-context] White digit in a black square

2009-08-23 Thread Aditya Mahajan
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]

Re: [NTG-context] White digit in a black square

2009-08-23 Thread Hans Hagen
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}}} \setuppagenumbering[command=\bw,location={header,margin}] \starttext \input tufte \stoptext or \def\bw#1%

Re: [NTG-context] White digit in a black square

2009-08-23 Thread Hans Hagen
Aditya Mahajan wrote: 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]

Re: [NTG-context] White digit in a black square

2009-08-23 Thread Vyatcheslav Yatskovsky
Thank you! The following works fine for me: \defineframed [WhiteOnBlack] [background=color, backgroundcolor=black, foregroundcolor=white] \setuppagenumbering[command=\WhiteOnBlack,location={footer,margin}] Concerning table of contents label, I will play with it latter. Regards,