Hi,
Hans and Wolfgang helped me to design this framed text. How to pass in text
parameter as we can for the length?
The text is set to "Note" and I would like it to be "Vocabulary" for the
second framed text.
Thank you
Fabrice

\definecolor[MyColorA][s=0.8784]
\definecolor[MyColorB][m=0.27,y=1]

\defineframed
   [FrameTitle]
   [frame=off,
    foregroundstyle=\bfx\ss,
    foregroundcolor=white,
    background=color,
    backgroundcolor=MyColorB,
    location=depth]

\defineframedtext
   [FramedText]
   [offset=0.5em,
    style=\ss,
    toffset=.25\lineheight,
    background=color,
    backgroundcolor=MyColorA,
    foregroundstyle={\switchtobodyfont[12pt]},
    align={right, broad},
    frame=off,
    corner=round,
    radius=1em,
    width=10cm]

\definedescription
   [Info]
   [before=,
    after=,
    text=Note,
    title=no,
    width=fit,
    distance=1em,
    headcommand=\FrameTitle,
    alternative=serried]

\starttext

\startFramedText[width=\textwidth]
  \startInfo
Cette suite d'appels sera notée Anissa--Boris--Gween et on dira qu'elle a
pour longueur 2.
  \stopInfo
\stopFramedText

\startFramedText[width=\textwidth]
  \startInfo
La matrice \m{M} est appelée {\bf matrice d'adjacence} du graphe.
  \stopInfo
\stopFramedText



\stoptext
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to