From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92213 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Some questions about an environment (Metafun) Date: Tue, 4 Aug 2015 17:04:12 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0203253940==" X-Trace: ger.gmane.org 1438700722 24928 80.91.229.3 (4 Aug 2015 15:05:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2015 15:05:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 04 17:05:09 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZMdm6-00007B-QX for gctc-ntg-context-518@m.gmane.org; Tue, 04 Aug 2015 17:05:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E8849101F6 for ; Tue, 4 Aug 2015 17:05:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id H4jFW0huomnY for ; Tue, 4 Aug 2015 17:05:05 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E773210244 for ; Tue, 4 Aug 2015 17:04:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6514810207 for ; Tue, 4 Aug 2015 17:04:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Bgh3aLWoN6dX for ; Tue, 4 Aug 2015 17:04:18 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id AB39E101F6 for ; Tue, 4 Aug 2015 17:04:14 +0200 (CEST) Original-Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) by filter2-til.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t74F4CYK005290 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 4 Aug 2015 17:04:13 +0200 Original-Received: by igbij6 with SMTP id ij6so76219073igb.1 for ; Tue, 04 Aug 2015 08:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=h8HEjDqzwhkG4AruKW1dxk1I9SrkzRksPV6ftBZI2aA=; b=e4DtILlztmDBXD/hZd+7iYwBQPCCAFIeD+14J7kdLXeJWqvMLuAmBfSb7KW3hbbYpU wJzXV7VzZ5iG1yr7XXgzkZ4ZeThRzJntWaAOr71tbSWkjic/aDqKcosfP4Ir5E8MZaOz fvEsMJOHhUDWE8I/U8QB0CffB/ShuFwjF0vJPq3wVy7HqBDmGzMT2RPtykkBgBYySsMM fybzM4sf7RpVFInlgwfz3DMGp3DHhdNBA5ONXMmBOMVASMo6Smic5i5cEdjw3LspBDgA VQj/OPLF35ucGdMQPTVHZ+W5JmUTdt5bvMHkuUtDYi3quLteFKVvMlTgdI7ySk3Grt7K /g2w== X-Received: by 10.50.30.226 with SMTP id v2mr28577442igh.3.1438700652064; Tue, 04 Aug 2015 08:04:12 -0700 (PDT) Original-Received: by 10.64.248.227 with HTTP; Tue, 4 Aug 2015 08:04:12 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c05::229; country=US; region=Iowa; city=Council Bluffs; latitude=41.2619; longitude=-95.8608; http://maps.google.com/maps?q=41.2619,-95.8608&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TP0D4dgS - 3546c25e27a0 - 20150804 (trained as not-spam) Received-SPF: pass (filter2-til.mf.surf.net: domain of fabrice1.couvreur@gmail.com designates 2607:f8b0:4001:c05::229 as permitted sender) receiver=filter2-til.mf.surf.net; client-ip=2607:f8b0:4001:c05::229; envelope-from=; helo=mail-ig0-x229.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:92213 Archived-At: --===============0203253940== Content-Type: multipart/alternative; boundary=047d7b86d5024df48f051c7d9950 --047d7b86d5024df48f051c7d9950 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, How to have Definition 1, Definition 2, Definition 3 ... ? Is it possible to translate the image p until the left edge of the text are= a ? Thank you, Fabrice \showframe \setupcolors[state=3Dstart,cmyk=3Dyes] \definecolor[MyColor][c=3D0.00, m=3D0.10, y=3D0.20, k=3D0.00] \definecolor[myColor][c=3D0.00, m=3D0.62, y=3D1.00, k=3D0.00] \setupbodyfont[11pt] \defineoverlay[MyFrame][\useMPgraphic{MyFrame}] \defineframedtext [MyText] [frame=3Doff, background=3DMyFrame, width=3D0.9\textwidth, location=3Dright] \defineoverlay[MyFrame][\useMPgraphic{MyFrame}] \def\StartFrame{\startMyText} \def\StopFrame{\startMyText} \setMPtext{MyFrame}{\hbox spread 1em {\hss\strut {\bf\feature[+][f:smallcaps] D=C3=A9finition 1 }\hss}}} \startuseMPgraphic{MyFrame} path a ; path b ; picture p ; o :=3D BodyFontSize ; p :=3Dtextext.rt(\MPstring{MyFrame}) ; p :=3D p shifted (0,OverlayHeight-ypart center p) ; a :=3D unitsquare xyscaled(OverlayWidth,OverlayHeight) ; fill a withcolor \MPcolor{MyColor} ; b :=3D boundingbox p ; fill b withcolor \MPcolor{myColor} ; draw p withcolor white ; \stopuseMPgraphic \starttext \startlinecorrection[blank] \startMyText \input knuth \stopMyText \stoplinecorrection \startlinecorrection[blank] \startMyText \input knuth \stopMyText \stoplinecorrection \stoptext --047d7b86d5024df48f051c7d9950 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,
How to have
Definition 1= , Definition 2, Definition 3 ... ?

Is it p= ossible to translate = the image p until the left edge of the text area ?=

Thank you,
Fabrice

\showframe

\setupcolors[state=3Dstart,cmyk=3Dyes]=

\definecolor[MyColor][c=3D0.00, m=3D0.10, y=3D0.20, k=3D0.00]
\d= efinecolor[myColor][c=3D0.00, m=3D0.62, y=3D1.00, k=3D0.00]

\setupbo= dyfont[11pt]
\defineoverlay[MyFrame][\useMPgraphic{MyFrame}]

\def= ineframedtext
=C2=A0=C2=A0 [MyText]
=C2=A0=C2=A0 [frame=3Doff,
=C2= =A0=C2=A0=C2=A0 background=3DMyFrame,
=C2=A0=C2=A0=C2=A0 width=3D0.9\tex= twidth,
=C2=A0=C2=A0=C2=A0 location=3Dright]

\defineoverlay[MyFra= me][\useMPgraphic{MyFrame}]

\def\StartFrame{\startMyText}
\def\St= opFrame{\startMyText}

\setMPtext{MyFrame}{\hbox spread 1em {\hss\str= ut {\bf\feature[+][f:smallcaps]=C2=A0 D=C3=A9finition 1 }\hss}}}

\st= artuseMPgraphic{MyFrame}

path a ;
path b ;
picture p ;
o := =3D BodyFontSize ;
p :=3Dtextext.rt(\MPstring{MyFrame}) ;
p :=3D p sh= ifted (0,OverlayHeight-ypart center p) ;
a :=3D unitsquare xyscaled(Over= layWidth,OverlayHeight) ;
fill a withcolor \MPcolor{MyColor} ;
b :=3D= boundingbox p ;
fill b withcolor \MPcolor{myColor} ;
draw p withcolo= r white ;

\stopuseMPgraphic

\starttext
\startlinecorrectio= n[blank]
\startMyText
\input knuth
\stopMyText
\stoplinecorrect= ion

\startlinecorrection[blank]
\startMyText
\input knuth
\= stopMyText
\stoplinecorrection

\stoptext
=
--047d7b86d5024df48f051c7d9950-- --===============0203253940== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0203253940==--