From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Text next to a label (Metafun)
Date: Sun, 30 Aug 2015 10:00:17 +0200 [thread overview]
Message-ID: <CACyK-er8sCWKubm7_YhRz7NrRiG+G3PDy9H9zXCaVXRrL=19Hg@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1816 bytes --]
Hi,
Is it possible to add to the right of label text ("Lire des coordonnées")
indicating the title of the method ?
Thanks,
Fabrice
\setupcolors[state=start]
\def\point#1#2{\bigl(#1\,;#2\bigr)}
\definecolor[MyColorA][c=0.3, m=0.00, y=0.00, k=0.05]
\definecolor[MyColorB][c=0.6, m=0.00, y=0.00, k=0.10]
\definemixedcolumns
[myColumn]
[n=2,
separator=rule,
rulecolor=MyColorA,
rulethickness=1pt,
balance=yes]
\setupalign[verytolerant,stretch,hanging]
\defineoverlay
[Funny]
[\useMPgraphic{Funny}]
\definelabel
[Méthode]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{Funny}
interim linejoin := mitered ;
interim linecap := squared ;
path b ;
picture p ;
p := textext.rt("\white\Méthode") ;
p := p shifted (0,OverlayHeight) ;
b := boundingbox p ;
drawoptions (withpen pencircle scaled 3mm withcolor \MPcolor{MyColorA})
;
draw leftboundary OverlayBox ;
fill b withcolor \MPcolor{MyColorB} ;
draw p ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineframedtext
[Methode]
[before={\blank},
after={\blank},
frame=off,
background=Funny,
width=\textwidth,
height=fit,
]
\starttext
\startMethode
\startmyColumn
Le plan est muni d'un repère orthonormé $\bigl(O\,;I,J\bigr)$ d'unité
\unit{1 cm}.
\blank
\startitemize[n][stopper=),style=bold]
\item Placer les points $D$ et $E$ de coordonnées respectives
$\point{4}{-3}$ et $\point{-2}{3}$.
\item Construire un point $F$ tel que $EDF$ soit équilatéral.
\item Lire les coordonnées du point $F$.
\item Construire le symétrique de $E$ par rapport à $F$.
\item Lire ses coordonnées.
\stopitemize
\column
Correction ...
\stopmyColumn
\stopMethode
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 2370 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
reply other threads:[~2015-08-30 8:00 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-er8sCWKubm7_YhRz7NrRiG+G3PDy9H9zXCaVXRrL=19Hg@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).