From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/99245 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Strange behavior with TikZ Date: Thu, 5 Oct 2017 19:26:25 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7176666343233382541==" X-Trace: blaine.gmane.org 1507224421 16959 195.159.176.226 (5 Oct 2017 17:27:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2017 17:27:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 05 19:26:57 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e09vB-0003az-Tz for gctc-ntg-context-518@m.gmane.org; Thu, 05 Oct 2017 19:26:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5E6BD892E9; Thu, 5 Oct 2017 19:26:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pHNMHB0skIvE; Thu, 5 Oct 2017 19:26:37 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id A131C892ED; Thu, 5 Oct 2017 19:26:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5A71E892ED for ; Thu, 5 Oct 2017 19:26:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jZK0KEAqlr4R for ; Thu, 5 Oct 2017 19:26:36 +0200 (CEST) Original-Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 44D8E892E9 for ; Thu, 5 Oct 2017 19:26:26 +0200 (CEST) Original-Received: by mail-wm0-f44.google.com with SMTP id u138so3559823wmu.4 for ; Thu, 05 Oct 2017 10:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=a1tthekNDZQd6Aibz7vufv4poD7CHbF1xYDE3EgJDqc=; b=FdteIrh4shffFljbPkA/JORyYGf8FGqSfXoFNtxXWUG7qR6WyLwabsAOAN3Nh23q2N hNIL7v1LWOdbkP4FRm6YnSbYIPe5K/98h6PfVd5e82IE0rYXENirR34BOHxuZ3t4oAPN WQCc9PUiBPZ/4C6trloiXgAH5808Y8OCzyRUW4Zq7zwD3Cx8gNwUKPWpVnsS6vICzmDc 9F/y4kXNCNw4+XwwoSMwjJrO6TNyzvTwBxOsXp0TMQAHfVR2JfbIBLDTvkVjEqBYDK2N yPKSLhP9gRWCdCmCwuX+eZgYIrIHzej21XjRHo5kE4yRTILy0mUQs4QcGxjqeltM1QWN wBSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=a1tthekNDZQd6Aibz7vufv4poD7CHbF1xYDE3EgJDqc=; b=hR4rba9RbcVB9vae9cbTAQ/VGi8sdT434JPQsAupLxHWqurN7LOPKluW7ICM7gEp/l BIISFN5bDLotLtZYf/l1xMYl5N6bk6jRs7tsMWalD37I5YyILhGogbpdNzHY7EZ84YEC +cGqVa27ggn3kMSL7ZjOO8Khe+iR5KPGref3kmkWza14fueH6By2heq7NkLFTpAxI1Tp dg2HoF1W/pSUjnROx2Jpa0T4qskOGwxIiK/ikIO/Y+txgFUenqIBeMqmaqDxHlx+jYvf Fh6Jyvb+KltK3bM5QoNuwr2Xqbfnf+vJr88dmOk6ikbCrvkc8yp+b6lB2cG4jaEiFHmW +YVg== X-Gm-Message-State: AMCzsaWHuCUHxV4otjrUPFFJT8pjMbmmNvHOxygxcZk0srf8wUufF7dA 1pw1qXvuCgXgK+f/wSeeaUT8Siibpd4aCiaawFW9wQ== X-Google-Smtp-Source: AOwi7QDpISOUT4W/Vn9J5hVYH/cE7sTw68LDsQisitNzXwUT5ZA4ZxS1oTaV/o9d6240GSrTn6Ut+QPspsbRF8gWIlw= X-Received: by 10.80.174.36 with SMTP id c33mr1365953edd.191.1507224385599; Thu, 05 Oct 2017 10:26:25 -0700 (PDT) Original-Received: by 10.80.173.74 with HTTP; Thu, 5 Oct 2017 10:26:25 -0700 (PDT) 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:99245 Archived-At: --===============7176666343233382541== Content-Type: multipart/alternative; boundary="94eb2c1961d019bb30055ad00676" --94eb2c1961d019bb30055ad00676 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, If I put any image, there is no problem : the title of the section is in color and the text in black. With a graphic made with TikZ, the title and the text are in color. Thank you for your help. Fabrice \usemodule[tikz] \usemodule [graph] \usemodule[pgfplots] \pgfplotsset{compat=3Dnewest} \definecolor[Mycolor][c=3D.6,m=3D0.8,y=3D0,k=3D0] \unexpanded\def\interff#1#2{\math{\left[#1\,;#2\right]}} \setuphead [section] [textcommand=3D, color=3Dmagenta, style=3D] \starttext \startsection[title=3D{R=C3=A9soudre graphiquement une =C3=A9quation \math{f(x)=3Dg(x)}},sectionsegments=3Dsection,color=3Dmagenta] \placefigure[none,right]{}{ \hbox{\switchtobodyfont[8pt] \starttikzpicture[/pgf/declare function=3D{f(\x)=3D\x^2-3;},/pgf/declare function=3D{g(\x)=3D-\x^2+2*\x+1;}] \startaxis[ restrict x to domain=3D-3:3, xmax=3D3, xmin=3D-3, restrict y to domain=3D-5:4, ymax=3D4, ymin=3D-5, x=3D1cm, y=3D0.5cm, axis x line =3D middle, axis y line =3D middle, axis line style =3D thick, major grid style=3DMycolor, minor grid style=3DMycolor, grid=3Dboth, xtick=3D{-2,...,2}, ytick=3D{-4,...,3}, extra x ticks=3D{-3,3}, extra x tick label=3D{\null}, extra y ticks=3D{-5,4}, extra y tick label=3D{\null}, extra tick style=3D{tick style=3D{draw=3Dnone}}, every tick/.style=3D{ black, thick, }, y tick label style=3D{ /pgf/number format/1000 sep=3D{} }, xlabel=3D$x$,ylabel=3D$y$, every axis x label/.style=3D{ at=3D{(ticklabel* cs:1.01)}, anchor=3Dwest, }, every axis y label/.style=3D{ at=3D{(ticklabel* cs:1.01)}, anchor=3Dsouth, }, samples=3D2000, >=3Dstealth, ] \addplot[only marks,mark=3Dx,color=3Dblack,mark options=3D{scale=3D1.5}, thick] table[x=3DNombre,y=3DValeur]{ Nombre Valeur -1 -2 2 1 } ; \addplot [smooth,domain=3D-1.5:2.5, thick,magenta] {f(x)} ; \addplot [smooth,domain=3D-1.5:2.5, thick,green] {g(x)} ; \node[above left,green] at (2,2) {\math{{\cal C}_g}} ; \node[below right,magenta] at (1.5,-1) {\math{{\cal C}_f}} ; \node[below left ] at (-0.1,-0.1) {\math{0}} ; \node[fill=3Dblack,circle,scale=3D0.4,magenta] at (-1.5,{f(-1.5)}){} ; \node[fill=3Dblack,circle,scale=3D0.4,magenta] at (2.5,{f(2.5)}){} ; \node[fill=3Dblack,circle,scale=3D0.4,green] at (-1.5,{g(-1.5)}){} ; \node[fill=3Dblack,circle,scale=3D0.4,green] at (2.5,{g(2.5)}){} ; \stopaxis \stoptikzpicture}} \input knuth \stopsection \stoptext --94eb2c1961d019bb30055ad00676 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
If I put any image, there is no p= roblem : the title of the section is in color and the text in black.=
With a graphic made with TikZ, the title and the text are in colo= r.
Thank you for your help.
Fabrice

= \usemodule[tikz]

\usemodule [graph]

\usemodule[pgfplots]
<= br>\pgfplotsset{compat=3Dnewest}

\definecolor[Mycolor][c=3D.6,m=3D0.= 8,y=3D0,k=3D0]

\unexpanded\def\interff#1#2{\math{\left[#1\,;#2\right= ]}}

\setuphead
=C2=A0=C2=A0 [section]
=C2=A0=C2=A0 [textcomman= d=3D,
=C2=A0=C2=A0=C2=A0 color=3Dmagenta,
=C2=A0=C2=A0=C2=A0 style=3D= ]


\starttext
\startsection[title=3D{R=C3=A9soudre graphiqueme= nt une =C3=A9quation \math{f(x)=3Dg(x)}},sectionsegments=3Dsection,color=3D= magenta]
=C2=A0
\placefigure[none,right]{}{=C2=A0
\hbox{\switcht= obodyfont[8pt]
\starttikzpicture[/pgf/declare function=3D{f(\x)=3D\x^2-3= ;},/pgf/declare function=3D{g(\x)=3D-\x^2+2*\x+1;}]=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
\startaxis[
=C2=A0rest= rict x to domain=3D-3:3, xmax=3D3, xmin=3D-3,
=C2=A0restrict y to domain= =3D-5:4, ymax=3D4, ymin=3D-5,
=C2=A0x=3D1cm,
=C2=A0y=3D0.5cm,
=C2= =A0axis x line =3D middle,
=C2=A0axis y line =3D middle,
=C2=A0axis l= ine style =3D thick,
=C2=A0major grid style=3DMycolor,
=C2=A0minor gr= id style=3DMycolor,
=C2=A0grid=3Dboth,
=C2=A0xtick=3D{-2,...,2},
= =C2=A0ytick=3D{-4,...,3},
=C2=A0extra x ticks=3D{-3,3},
=C2=A0extra x= tick label=3D{\null},
=C2=A0extra y ticks=3D{-5,4},
=C2=A0extra y ti= ck label=3D{\null},
=C2=A0extra tick style=3D{tick style=3D{draw=3Dnone}= },
=C2=A0every tick/.style=3D{
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 black,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 thick,
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 },
=C2=A0y tick label style=3D{
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /pgf/number format/1= 000 sep=3D{}
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 },
=C2=A0xlabel=3D$= x$,ylabel=3D$y$,
=C2=A0every axis x label/.style=3D{
=C2=A0=C2=A0=C2= =A0 at=3D{(ticklabel* cs:1.01)},
=C2=A0=C2=A0=C2=A0 anchor=3Dwest,
},=
every axis y label/.style=3D{
=C2=A0=C2=A0=C2=A0 at=3D{(ticklabel* c= s:1.01)},
=C2=A0=C2=A0=C2=A0 anchor=3Dsouth,
},
=C2=A0samples=3D20= 00,
=C2=A0>=3Dstealth,
=C2=A0 ]
\addplot[only marks,mark=3Dx,co= lor=3Dblack,mark options=3D{scale=3D1.5},
=C2=A0=C2=A0=C2=A0 thick] tabl= e[x=3DNombre,y=3DValeur]{
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 Nombre=C2=A0=C2=A0 Valeur
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -1=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= -2
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 2=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1
} ;
\addplot [smooth,d= omain=3D-1.5:2.5, thick,magenta] {f(x)} ;
\addplot [smooth,domain=3D-1.5= :2.5, thick,green] {g(x)} ;

\node[above left,green] at (2,2) {\math{= {\cal C}_g}} ;
\node[below right,magenta] at (1.5,-1) {\math{{\cal C}_f}= } ;
\node[below left ] at (-0.1,-0.1) {\math{0}} ;

\node[fill=3Db= lack,circle,scale=3D0.4,magenta] at (-1.5,{f(-1.5)}){} ;
\node[fill=3Dbl= ack,circle,scale=3D0.4,magenta] at (2.5,{f(2.5)}){} ;

\node[fill=3Db= lack,circle,scale=3D0.4,green] at (-1.5,{g(-1.5)}){} ;
\node[fill=3Dblac= k,circle,scale=3D0.4,green] at (2.5,{g(2.5)}){} ;

\stopaxis
\stop= tikzpicture}}

\input knuth
=C2=A0
\stopsection

\stopte= xt
--94eb2c1961d019bb30055ad00676-- --===============7176666343233382541== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============7176666343233382541==--