Missing background color with \definetextbackground
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
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
On Tue, Sep 2, 2008 at 12:06 AM, B. Tommy Jensen
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
On Tue, 02 Sep 2008 00:18:40 +0200, Mojca Miklavec
%---------------------------------------------------- \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
On Tue, Sep 2, 2008 at 9:46 AM, B. Tommy Jensen
On Tue, 02 Sep 2008 00:18:40 +0200, Mojca Miklavec
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
On Tue, 02 Sep 2008 11:08:36 +0200, Wolfgang Schuster
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
On Tue, Sep 2, 2008 at 12:55 PM, B. Tommy Jensen
On Tue, 02 Sep 2008 11:08:36 +0200, Wolfgang Schuster
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
On Tue, 02 Sep 2008 13:08:56 +0200, Wolfgang Schuster
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
participants (4)
-
Aditya Mahajan
-
B. Tommy Jensen
-
Mojca Miklavec
-
Wolfgang Schuster