* White digit in a black square
[not found] <mailman.1321.1251052483.3069.ntg-context@ntg.nl>
@ 2009-08-23 19:02 ` Vyatcheslav Yatskovsky
2009-08-23 19:41 ` Derek CORDEIRO
2009-08-23 20:06 ` setuppagenumbering with location=none Vyatcheslav Yatskovsky
1 sibling, 1 reply; 7+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-08-23 19:02 UTC (permalink / raw)
To: ntg-context
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 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: White digit in a black square
2009-08-23 19:02 ` White digit in a black square Vyatcheslav Yatskovsky
@ 2009-08-23 19:41 ` Derek CORDEIRO
2009-08-23 20:00 ` Aditya Mahajan
2009-08-23 21:35 ` Hans Hagen
0 siblings, 2 replies; 7+ messages in thread
From: Derek CORDEIRO @ 2009-08-23 19:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 619 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1008 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: White digit in a black square
2009-08-23 19:41 ` Derek CORDEIRO
@ 2009-08-23 20:00 ` Aditya Mahajan
2009-08-23 21:36 ` Hans Hagen
2009-08-23 21:35 ` Hans Hagen
1 sibling, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2009-08-23 20:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* setuppagenumbering with location=none
[not found] <mailman.1321.1251052483.3069.ntg-context@ntg.nl>
2009-08-23 19:02 ` White digit in a black square Vyatcheslav Yatskovsky
@ 2009-08-23 20:06 ` Vyatcheslav Yatskovsky
1 sibling, 0 replies; 7+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-08-23 20:06 UTC (permalink / raw)
To: ntg-context
Hi,
Strange, but \setuppagenumbering[location=none] moves page numbers to
the bottom of the page. I guess this is invalid command altoghether, but
nevertheless, it does something unexpected :)
Vyatcheslav
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: White digit in a black square
2009-08-23 19:41 ` Derek CORDEIRO
2009-08-23 20:00 ` Aditya Mahajan
@ 2009-08-23 21:35 ` Hans Hagen
1 sibling, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2009-08-23 21:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: White digit in a black square
2009-08-23 20:00 ` Aditya Mahajan
@ 2009-08-23 21:36 ` Hans Hagen
0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2009-08-23 21:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: White digit in a black square
[not found] <mailman.1325.1251063337.3069.ntg-context@ntg.nl>
@ 2009-08-24 0:38 ` Vyatcheslav Yatskovsky
0 siblings, 0 replies; 7+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-08-24 0:38 UTC (permalink / raw)
To: ntg-context
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,
Vyatcheslav
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-08-24 0:38 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.1321.1251052483.3069.ntg-context@ntg.nl>
2009-08-23 19:02 ` White digit in a black square Vyatcheslav Yatskovsky
2009-08-23 19:41 ` Derek CORDEIRO
2009-08-23 20:00 ` Aditya Mahajan
2009-08-23 21:36 ` Hans Hagen
2009-08-23 21:35 ` Hans Hagen
2009-08-23 20:06 ` setuppagenumbering with location=none Vyatcheslav Yatskovsky
[not found] <mailman.1325.1251063337.3069.ntg-context@ntg.nl>
2009-08-24 0:38 ` White digit in a black square Vyatcheslav Yatskovsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).