ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] About framedtext
@ 2023-12-13 18:03 Fabrice Couvreur
  2023-12-13 17:19 ` [NTG-context] " Henning Hraban Ramm
  2023-12-13 17:19 ` Wolfgang Schuster
  0 siblings, 2 replies; 7+ messages in thread
From: Fabrice Couvreur @ 2023-12-13 18:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1189 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1949 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-12-14  3:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-13 18:03 [NTG-context] About framedtext Fabrice Couvreur
2023-12-13 17:19 ` [NTG-context] " Henning Hraban Ramm
2023-12-13 17:55   ` Wolfgang Schuster
2023-12-13 18:01     ` Henning Hraban Ramm
2023-12-14  3:40     ` Alan Braslau via ntg-context
2023-12-13 17:19 ` Wolfgang Schuster
2023-12-13 17:28   ` Henning Hraban Ramm

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