[NTG-context] How to pass a parameter with \definedescription[]

Fabrice Couvreur fabrice1.couvreur at gmail.com
Sun Jan 27 12:48:24 CET 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190127/d146cae1/attachment.html>


More information about the ntg-context mailing list