Hello, How to make page number as white digit in a black square? (And place it on the right of the page) Regards, Vyatcheslav
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
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
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] [background=color,backgroundcolor=black,foregroundcolor=white]
ah ... even better -) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
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% {\framed [background=color, backgroundcolor=black, foregroundcolor=white, foregroundstyle=bold] {#1}} (best use \WhiteOnBlack or so since bw might conflict) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Aditya Mahajan
-
Derek CORDEIRO
-
Hans Hagen
-
Vyatcheslav Yatskovsky