* How to pass a parameter with \definedescription[]
@ 2019-01-27 11:48 Fabrice Couvreur
0 siblings, 0 replies; only message in thread
From: Fabrice Couvreur @ 2019-01-27 11:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1328 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 2200 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-27 11:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-27 11:48 How to pass a parameter with \definedescription[] Fabrice Couvreur
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).