Hi, Is this a bug or not ? The key to coloring the background of the text seems to no longer work. Thanks Fabrice \definecolor[MyColorC][s=0.8784] \definecolor[MyColorD][m=0.27,y=1] \definecolor[ColorA][0.8(white)] \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA][.75(MyColorB,white)] \defineframed [FrameTitle] [frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color, backgroundcolor=MyColorD, location=depth] \defineframedtext [FramedText] [offset=0.25em, style=\ss, toffset=\zeropoint, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[9pt]}, align={right, broad}, frame=off, corner=00, radius=0.5em, width=10cm] \definedescription [Info] [before=, after=, text=Info, title=no, width=fit, distance=0.5em, headcommand=\FrameTitle, alternative=serried] \starttext \startFramedText[width=5cm] \startInfo \input{ward} \stopInfo \stopFramedText \stoptext
Am 13.12.23 um 19:03 schrieb Fabrice Couvreur:
Hi, Is this a bug or not ? The key to coloring the background of the text seems to no longer work. Thanks Fabrice
\definecolor[ColorA][0.8(white)] \definecolor[MyColorA][.75(MyColorB,white)]
I never saw this syntax in ConTeXt. That doesn’t mean it’s wrong, but I’d suggest looking into https://wiki.contextgarden.net/Spot_Colors#Multitones Hraban
Henning Hraban Ramm schrieb am 13.12.2023 um 18:19:
Am 13.12.23 um 19:03 schrieb Fabrice Couvreur:
Hi, Is this a bug or not ? The key to coloring the background of the text seems to no longer work. Thanks Fabrice
\definecolor[ColorA][0.8(white)] \definecolor[MyColorA][.75(MyColorB,white)]
I never saw this syntax in ConTeXt.
This was added a few years ago (AFAIR to provide something similar to the TikZ color command). Wolfgang
Am 13.12.23 um 18:55 schrieb Wolfgang Schuster:
Henning Hraban Ramm schrieb am 13.12.2023 um 18:19:
Am 13.12.23 um 19:03 schrieb Fabrice Couvreur:
Hi, Is this a bug or not ? The key to coloring the background of the text seems to no longer work. Thanks Fabrice
\definecolor[ColorA][0.8(white)] \definecolor[MyColorA][.75(MyColorB,white)]
I never saw this syntax in ConTeXt.
This was added a few years ago (AFAIR to provide something similar to the TikZ color command).
I thought it looked like TikZ. And it’s actually documented in https://wiki.contextgarden.net/Command/definecolor I need to transfer this to https://wiki.contextgarden.net/Color and my book… Hraban
Fabrice Couvreur schrieb am 13.12.2023 um 19:03:
Hi, Is this a bug or not ? The key to coloring the background of the text seems to no longer work.
There is a problem with the corner option, you can either hope it gets fixed in the next release (corner=round still works) or create your own background as metapost graphic with rounded corners. Wolfgang
Am 13.12.23 um 18:19 schrieb Wolfgang Schuster:
Fabrice Couvreur schrieb am 13.12.2023 um 19:03:
Hi, Is this a bug or not ? The key to coloring the background of the text seems to no longer work.
There is a problem with the corner option, you can either hope it gets fixed in the next release (corner=round still works) or create your own background as metapost graphic with rounded corners.
Oh, yes, here’s Hans’ fix. Hraban
participants (4)
-
Alan Braslau
-
Fabrice Couvreur
-
Henning Hraban Ramm
-
Wolfgang Schuster