From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: How to pass a parameter with \definedescription[]
Date: Sun, 27 Jan 2019 12:48:24 +0100 [thread overview]
Message-ID: <CACyK-eqC9zsGAythSLS-9+3d6rGS7m2i=s6V3Lch1-pc2mDTpA@mail.gmail.com> (raw)
[-- 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
___________________________________________________________________________________
reply other threads:[~2019-01-27 11:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACyK-eqC9zsGAythSLS-9+3d6rGS7m2i=s6V3Lch1-pc2mDTpA@mail.gmail.com' \
--to=fabrice1.couvreur@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).