* Background color of sometxt ignored
@ 2008-08-30 15:49 Aditya Mahajan
2008-08-30 15:54 ` Aditya Mahajan
2008-08-31 10:05 ` Hans Hagen
0 siblings, 2 replies; 3+ messages in thread
From: Aditya Mahajan @ 2008-08-30 15:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
In 2008.08.18 14:00 MKIV the background color of sometxt is ignored. I
used to use this trick to unfill the background while drawing a label, but
it no longer works (It used to work a month ago).
Bug or feature?
\unprotected\definetextext[parbox]
{\framed
[ frame=off,
width=2cm,
height=.85cm,
autowidth=no,
align={middle,middle},
background=color,
backgroundcolor=white]}
\starttext
\startMPcode
draw (0,0) -- (3cm,3cm) ;
label(\sometxt[parbox]{ABC}, (1.5cm,1.5cm)) ;
\stopMPcode
\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] 3+ messages in thread
* Re: Background color of sometxt ignored
2008-08-30 15:49 Background color of sometxt ignored Aditya Mahajan
@ 2008-08-30 15:54 ` Aditya Mahajan
2008-08-31 10:05 ` Hans Hagen
1 sibling, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2008-08-30 15:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sat, 30 Aug 2008, Aditya Mahajan wrote:
> Hi,
>
> In 2008.08.18 14:00 MKIV the background color of sometxt is ignored. I
> used to use this trick to unfill the background while drawing a label, but
> it no longer works (It used to work a month ago).
>
> Bug or feature?
It works if I add
\setupcolors[state=start]
> \unprotected\definetextext[parbox]
> {\framed
> [ frame=off,
> width=2cm,
> height=.85cm,
> autowidth=no,
> align={middle,middle},
> background=color,
> backgroundcolor=white]}
>
> \starttext
>
> \startMPcode
> draw (0,0) -- (3cm,3cm) ;
> label(\sometxt[parbox]{ABC}, (1.5cm,1.5cm)) ;
> \stopMPcode
>
> \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] 3+ messages in thread
* Re: Background color of sometxt ignored
2008-08-30 15:49 Background color of sometxt ignored Aditya Mahajan
2008-08-30 15:54 ` Aditya Mahajan
@ 2008-08-31 10:05 ` Hans Hagen
1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2008-08-31 10:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
Aditya Mahajan wrote:
> Hi,
>
> In 2008.08.18 14:00 MKIV the background color of sometxt is ignored. I
> used to use this trick to unfill the background while drawing a label, but
> it no longer works (It used to work a month ago).
>
> Bug or feature?
>
> \unprotected\definetextext[parbox]
> {\framed
> [ frame=off,
> width=2cm,
> height=.85cm,
> autowidth=no,
> align={middle,middle},
> background=color,
> backgroundcolor=white]}
>
> \starttext
>
> \startMPcode
> draw (0,0) -- (3cm,3cm) ;
> label(\sometxt[parbox]{ABC}, (1.5cm,1.5cm)) ;
> \stopMPcode
>
> \stoptext
well, white is not the best test example
\unprotected\definetextext[parbox]
{\framed
[ width=2cm,
height=.85cm,
autowidth=no,
align={middle,middle},
background=color,
backgroundcolor=white]}
\startMPpage[background=color,backgroundcolor=red]
draw (0,0) -- (3cm,3cm) ;
label(\sometxt[parbox]{ABC}, (1.5cm,1.5cm)) ;
\stopMPpage
works ok here
-----------------------------------------------------------------
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] 3+ messages in thread
end of thread, other threads:[~2008-08-31 10:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-30 15:49 Background color of sometxt ignored Aditya Mahajan
2008-08-30 15:54 ` Aditya Mahajan
2008-08-31 10:05 ` Hans Hagen
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).