ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Missing background color with \definetextbackground
@ 2008-09-01 22:06 B. Tommy Jensen
  2008-09-01 22:12 ` Aditya Mahajan
  2008-09-01 22:18 ` Mojca Miklavec
  0 siblings, 2 replies; 8+ messages in thread
From: B. Tommy Jensen @ 2008-09-01 22:06 UTC (permalink / raw)
  To: ntg-context

Hi,
I am strugglig to get the background color visible with the following code:

%----------------------------------------------------
\setupcolors[state=start]
\definetextbackground[highlight][backgroundcolor=yellow,
         frame=on,
         location=text,
         color=blue]
\starttext
\starttextbackground[highlight]
This text should have yellow background but it is white.
The text is however blue.
\stoptextbackground
\stoptext
%-------------------------------------------------

The background of the rendered text is always white, independent of the
backgroundcolor parameter. The font color is however OK (blue).
All other samples I have tried from "details.pdf"
behaves similarly - no background color and no frame/frame color.

I am using the latest complete standalone Windows version of Context.

Has anybody encountered a similar behaviour?

Best regards,
Tommy Jensen
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Missing background color with \definetextbackground
  2008-09-01 22:06 Missing background color with \definetextbackground B. Tommy Jensen
@ 2008-09-01 22:12 ` Aditya Mahajan
  2008-09-01 22:18 ` Mojca Miklavec
  1 sibling, 0 replies; 8+ messages in thread
From: Aditya Mahajan @ 2008-09-01 22:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 2 Sep 2008, B. Tommy Jensen wrote:

> Hi,
> I am strugglig to get the background color visible with the following code:
>
> %----------------------------------------------------
> \setupcolors[state=start]
> \definetextbackground[highlight][backgroundcolor=yellow,
            background=color,%<--- Add this
>         frame=on,
>         location=text,
>         color=blue]
> \starttext
> \starttextbackground[highlight]
> This text should have yellow background but it is white.
> The text is however blue.
> \stoptextbackground
> \stoptext
> %-------------------------------------------------

Add background=color to \definetextbackground

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] 8+ messages in thread

* Re: Missing background color with \definetextbackground
  2008-09-01 22:06 Missing background color with \definetextbackground B. Tommy Jensen
  2008-09-01 22:12 ` Aditya Mahajan
@ 2008-09-01 22:18 ` Mojca Miklavec
  2008-09-02  7:46   ` B. Tommy Jensen
  1 sibling, 1 reply; 8+ messages in thread
From: Mojca Miklavec @ 2008-09-01 22:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Sep 2, 2008 at 12:06 AM, B. Tommy Jensen <btoj@frisurf.no> wrote:
> Hi,
> I am strugglig to get the background color visible with the following code:
>
> %----------------------------------------------------
> \setupcolors[state=start]
> \definetextbackground[highlight][backgroundcolor=yellow,
>         frame=on,

%add
background=color,

>         location=text,
>         color=blue]
> \starttext
> \starttextbackground[highlight]
> This text should have yellow background but it is white.
> The text is however blue.
> \stoptextbackground
> \stoptext
> %-------------------------------------------------
>
> The background of the rendered text is always white, independent of the
> backgroundcolor parameter. The font color is however OK (blue).
> All other samples I have tried from "details.pdf"
> behaves similarly - no background color and no frame/frame color.

Mojca
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Missing background color with \definetextbackground
  2008-09-01 22:18 ` Mojca Miklavec
@ 2008-09-02  7:46   ` B. Tommy Jensen
  2008-09-02  9:08     ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: B. Tommy Jensen @ 2008-09-02  7:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 02 Sep 2008 00:18:40 +0200, Mojca Miklavec  
<mojca.miklavec.lists@gmail.com> wrote:

>> %----------------------------------------------------
>> \setupcolors[state=start]
>> \definetextbackground[highlight][backgroundcolor=yellow,
>>         frame=on,
>
> %add
> background=color,
>
>>         location=text,
>>         color=blue]
>> \starttext
>> \starttextbackground[highlight]
>> This text should have yellow background but it is white.
>> The text is however blue.
>> \stoptextbackground
>> \stoptext
>> %-------------------------------------------------

Thanks for the prompt reply!

I have tried to add background=color as an option, but the result is  
exactly the same;
only the text gets colored; no frame and no background color appear.

Do you have other ideas?

Best regards,
Tommy Jensen
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Missing background color with \definetextbackground
  2008-09-02  7:46   ` B. Tommy Jensen
@ 2008-09-02  9:08     ` Wolfgang Schuster
  2008-09-02 10:55       ` B. Tommy Jensen
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2008-09-02  9:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Sep 2, 2008 at 9:46 AM, B. Tommy Jensen <btoj@frisurf.no> wrote:
> On Tue, 02 Sep 2008 00:18:40 +0200, Mojca Miklavec
> <mojca.miklavec.lists@gmail.com> wrote:
>
>>> %----------------------------------------------------
>>> \setupcolors[state=start]
>>> \definetextbackground[highlight][backgroundcolor=yellow,
>>>         frame=on,
>>
>> %add
>> background=color,
>>
>>>         location=text,
>>>         color=blue]
>>> \starttext
>>> \starttextbackground[highlight]
>>> This text should have yellow background but it is white.
>>> The text is however blue.
>>> \stoptextbackground
>>> \stoptext
>>> %-------------------------------------------------
>
> Thanks for the prompt reply!
>
> I have tried to add background=color as an option, but the result is
> exactly the same;
> only the text gets colored; no frame and no background color appear.
>
> Do you have other ideas?

Is metapost or MPtoPDF called, take a in your terminal, dou you have
the metafun format and do you use MkII (texexec ...) or MkIV (context ...).

Wolfgang
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Missing background color with \definetextbackground
  2008-09-02  9:08     ` Wolfgang Schuster
@ 2008-09-02 10:55       ` B. Tommy Jensen
  2008-09-02 11:08         ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: B. Tommy Jensen @ 2008-09-02 10:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 02 Sep 2008 11:08:36 +0200, Wolfgang Schuster  
<schuster.wolfgang@googlemail.com> wrote:

>> Do you have other ideas?
>
> Is metapost or MPtoPDF called, take a in your terminal, dou you have
> the metafun format and do you use MkII (texexec ...) or MkIV (context  
> ...).
>
> Wolfgang

Thanks a lot for pointing me in the right direction!

I was using the "texexec" utility. When I tried the same with the "context"
version, it rebuilt some formats and it now works exactly as expected.

Sorry for being a novice here; is it so that the "texexec" utility should
be consiered as obsolete?

Best regards,
Tommy Jensen
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Missing background color with \definetextbackground
  2008-09-02 10:55       ` B. Tommy Jensen
@ 2008-09-02 11:08         ` Wolfgang Schuster
  2008-09-02 11:35           ` B. Tommy Jensen
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2008-09-02 11:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Sep 2, 2008 at 12:55 PM, B. Tommy Jensen <btoj@frisurf.no> wrote:
> On Tue, 02 Sep 2008 11:08:36 +0200, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> wrote:
>
>>> Do you have other ideas?
>>
>> Is metapost or MPtoPDF called, take a in your terminal, dou you have
>> the metafun format and do you use MkII (texexec ...) or MkIV (context
>> ...).
>>
>> Wolfgang
>
> Thanks a lot for pointing me in the right direction!
>
> I was using the "texexec" utility. When I tried the same with the "context"
> version, it rebuilt some formats and it now works exactly as expected.
>
> Sorry for being a novice here; is it so that the "texexec" utility should
> be consiered as obsolete?

But MkII should work too. Try "texexec --make metafun --alone" and now
"texexec myfile".

Wolfgang
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Missing background color with \definetextbackground
  2008-09-02 11:08         ` Wolfgang Schuster
@ 2008-09-02 11:35           ` B. Tommy Jensen
  0 siblings, 0 replies; 8+ messages in thread
From: B. Tommy Jensen @ 2008-09-02 11:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 02 Sep 2008 13:08:56 +0200, Wolfgang Schuster  
<schuster.wolfgang@googlemail.com> wrote:

>>
>> Sorry for being a novice here; is it so that the "texexec" utility  
>> should
>> be consiered as obsolete?
>
> But MkII should work too. Try "texexec --make metafun --alone" and now
> "texexec myfile".
>
> Wolfgang

Thanks - this also now works! The "context" utility built the format
automatically while I had to run the command manually with "texexec"
(So "context" seems to be smarter than "texexec").

My installation is the "complete windows environment" of context. I ran
the "fist_setup.bat" batch file after installation; this built many  
formats.
I don't know why the metafun format wasn't built - perhaps something
is missing from the setup file?

In any case - thanks a lot for the good advice.

Best regards,
Tommy Jensen


___________________________________________________________________________________
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] 8+ messages in thread

end of thread, other threads:[~2008-09-02 11:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-01 22:06 Missing background color with \definetextbackground B. Tommy Jensen
2008-09-01 22:12 ` Aditya Mahajan
2008-09-01 22:18 ` Mojca Miklavec
2008-09-02  7:46   ` B. Tommy Jensen
2008-09-02  9:08     ` Wolfgang Schuster
2008-09-02 10:55       ` B. Tommy Jensen
2008-09-02 11:08         ` Wolfgang Schuster
2008-09-02 11:35           ` B. Tommy Jensen

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).