From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92325 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Strange behavior (TikZ) Date: Tue, 11 Aug 2015 16:18:53 +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="===============1048800518==" X-Trace: ger.gmane.org 1439302789 28778 80.91.229.3 (11 Aug 2015 14:19:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2015 14:19:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 11 16:19:39 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 1ZPAOu-0004PS-4u for gctc-ntg-context-518@m.gmane.org; Tue, 11 Aug 2015 16:19:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3059610223 for ; Tue, 11 Aug 2015 16:19:35 +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 9KHwsGdhMg4T for ; Tue, 11 Aug 2015 16:19:34 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id BCB5F10231 for ; Tue, 11 Aug 2015 16:19:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E1828101F6 for ; Tue, 11 Aug 2015 16:18:59 +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 ewaz7nLqt3s8 for ; Tue, 11 Aug 2015 16:18:56 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 1509C101E6 for ; Tue, 11 Aug 2015 16:18:56 +0200 (CEST) Original-Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) by filter3-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t7BEIsU3006728 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 11 Aug 2015 16:18:54 +0200 Original-Received: by igbpg9 with SMTP id pg9so92168455igb.0 for ; Tue, 11 Aug 2015 07:18:53 -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=oGBLLNzr1PzqSdY1INUkCEhGtDRTgXqmYreTbdNzIjA=; b=cg06b9dwupVl4cOkzhBGXC5Nd5K/Sy81BPPy4FV2d2ZL6qosWmpuxMR9xCO1FzSXww GXsb8NccsPebjQVgIRlb8+/ENOKlBq7PukcfA1PnR8VVKU3cKkh8PNpiYnTWvOgpiAYC VJhHuAbd/jVPL2gXCoDt8oaElZBw+pItp3Bs3mCHCdpmvfmMqf4dEAKdM9toIkQGbM8f 56OJCky1TLWFR6VCB2/gQ4EVg7MRDHFkcd3LaUtUX+AUqVRVtEH28oVKu+E1el5lkzEG TahDoXWJQBMrhbGvFmos3dlhdrGJ51rtB+cwNEuv3kxDBmhBb4pnlGX1xkpSwbb6O6Xk pmBQ== X-Received: by 10.50.97.33 with SMTP id dx1mr17032917igb.1.1439302733617; Tue, 11 Aug 2015 07:18:53 -0700 (PDT) Original-Received: by 10.64.208.36 with HTTP; Tue, 11 Aug 2015 07:18:53 -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: 03P3qiSuA - d4f04635a8a4 - 20150811 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of fabrice1.couvreur@gmail.com designates 2607:f8b0:4001:c05::229 as permitted sender) receiver=filter3-ams.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:92325 Archived-At: --===============1048800518== Content-Type: multipart/alternative; boundary=047d7b10c889296152051d09c8a3 --047d7b10c889296152051d09c8a3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Strange behavior: why is the colored text ? Thanks, Fabrice \usemodule[tikz] \startuniqueMPgraphic{titled} path p ; p :=3D unitsquare xscaled OverlayWidth yscaled OverlayHeight ; pickup pencircle scaled 1mm ; drawoptions(withcolor .625yellow) ; draw llcorner p--lrcorner p ; setbounds currentpicture to p ; \stopuniqueMPgraphic \defineoverlay[titled][\uniqueMPgraphic{titled}] \define[2]\ChapterCommand {\setbox\scratchbox\hbox to \leftmarginwidth{#1\hss}% \hskip-\dimexpr\leftmarginwidth+\leftmargindistance\relax \framed [background=3Dtitled,frame=3Doff,offset=3D0pt] {\box\scratchbox \hskip\leftmargindistance #2}} \setuphead [chapter] [command=3D\ChapterCommand, textstyle=3D\ss, color=3Ddarkred, conversion=3DCharacters] \setuphead [section] [command=3D\ChapterCommand, textstyle=3D\ss, color=3Ddarkred, sectionsegments=3Dsection:section] \starttext \startchapter [title=3D{Activit=C3=A9s d'approche}] \startsection [title=3D{Sans carreaux}] \placefigure[right,none]{} { \hbox{ \starttikzpicture[>=3Dstealth,scale=3D0.8] \draw [->,color=3Dblue,ultra thick] (0,0)--(5,2); \draw [->,color=3Dgreen,ultra thick] (6,1.5)--(5,0); \draw [->,color=3Dred,ultra thick] (4,-0.8)--(2,-0.1); \draw [color=3Dblue](2.5,1) node[above] {$\vec{u}$}; \draw [color=3Dgreen](5.5,0.75) node[right] {$\vec{v}$}; \draw [,color=3Dred](3,-0.45) node[above] {$\vec{w}$}; \node (A) at (0.5,-0.5) {A}; \node [above right] at (A) {$\times$}; \stoptikzpicture}} \startitemize[n][stopper=3D{)},style=3Dbold] On a trac=C3=A9 trois vecteurs et plac=C3=A9 un point A sur la figure ci-co= ntre. \startitemize[a][stopper=3D{)},style=3Dbold] \item Construire le point C tel que $\vec{\rm{AC}}=3D\vec{u} + \vec{v}$. \item Construire le point B tel que $\vec{\rm{AB}}=3D\vec{u} + \vec{v} + \vec{w} $. \stopitemize \stopitemize \stopsection \stopchapter \stoptext --047d7b10c889296152051d09c8a3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,
Strange beh= avior: why is the colored text ?
=
Thanks,
Fabrice

\usemodule[tikz]

\startuniqueMPgr= aphic{titled}
path p ;
p :=3D unitsquare xscaled OverlayWidth yscaled= OverlayHeight ;
pickup pencircle scaled 1mm ;
drawoptions(withcolor = .625yellow) ;
draw llcorner p--lrcorner p ;
setbounds currentpicture = to p ;
\stopuniqueMPgraphic

\defineoverlay[titled][\uniqueMPgraph= ic{titled}]

\define[2]\ChapterCommand
=C2=A0 {\setbox\scratchbox\= hbox to \leftmarginwidth{#1\hss}%
=C2=A0=C2=A0 \hskip-\dimexpr\leftmargi= nwidth+\leftmargindistance\relax
=C2=A0=C2=A0 \framed
=C2=A0=C2=A0=C2= =A0=C2=A0 [background=3Dtitled,frame=3Doff,offset=3D0pt]
=C2=A0=C2=A0=C2= =A0=C2=A0 {\box\scratchbox
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \hskip\leftmar= gindistance
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #2}}

\setuphead
=C2= =A0 [chapter]
=C2=A0 [command=3D\ChapterCommand,
=C2=A0=C2=A0 textsty= le=3D\ss,
=C2=A0=C2=A0 color=3Ddarkred,
=C2=A0=C2=A0 conversion=3DCha= racters]

\setuphead
=C2=A0 [section]
=C2=A0 [command=3D\Chapte= rCommand,
=C2=A0=C2=A0 textstyle=3D\ss,
=C2=A0=C2=A0 color=3Ddarkred,=
=C2=A0=C2=A0 sectionsegments=3Dsection:section]

\starttext
\startchapter
=C2=A0 [title=3D{Activit=C3=A9s d'approche}]

= \startsection
=C2=A0 [title=3D{Sans carreaux}]

\placefigure[right= ,none]{}
{
\hbox{
\starttikzpicture[>=3Dstealth,scale=3D0.8]\draw [->,color=3Dblue,ultra thick] (0,0)--(5,2);
\draw [->,color= =3Dgreen,ultra thick] (6,1.5)--(5,0);
\draw [->,color=3Dred,ultra thi= ck] (4,-0.8)--(2,-0.1);
\draw [color=3Dblue](2.5,1)=C2=A0=C2=A0=C2=A0=C2= =A0 node[above] {$\vec{u}$};
\draw [color=3Dgreen](5.5,0.75) node[right]= {$\vec{v}$};
\draw [,color=3Dred](3,-0.45)=C2=A0=C2=A0 node[above] {$\v= ec{w}$};
\node (A) at (0.5,-0.5) {A};
\node [above right] at (A) {$\t= imes$};
\stoptikzpicture}}
\startitemize[n][stopper=3D{)},style=3Dbol= d]
On a trac=C3=A9 trois vecteurs et plac=C3=A9 un point A sur la figure= ci-contre.
\startitemize[a][stopper=3D{)},style=3Dbold]
\item Constr= uire le point C tel que $\vec{\rm{AC}}=3D\vec{u} + \vec{v}$.
\item Const= ruire le point B tel que=C2=A0 $\vec{\rm{AB}}=3D\vec{u} + \vec{v} + \vec{w}= $.
\stopitemize
\stopitemize

\stopsection

\stopchapter=
\stoptext
--047d7b10c889296152051d09c8a3-- --===============1048800518== 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= --===============1048800518==--