From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88603 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Problem with embedding code TikZ code Date: Fri, 29 Aug 2014 20:22:00 +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="===============1628307374==" X-Trace: ger.gmane.org 1409336552 8465 80.91.229.3 (29 Aug 2014 18:22:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2014 18:22:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 29 20:22:26 2014 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 1XNQoW-0002m5-R6 for gctc-ntg-context-518@m.gmane.org; Fri, 29 Aug 2014 20:22:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B27810221 for ; Fri, 29 Aug 2014 20:22:20 +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 gL4yjsWyUuGm for ; Fri, 29 Aug 2014 20:22:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C6F5210223 for ; Fri, 29 Aug 2014 20:22:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6F291101E6 for ; Fri, 29 Aug 2014 20:22:06 +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 w+DPYtDvRTbl for ; Fri, 29 Aug 2014 20:22:03 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 9D8CD101E1 for ; Fri, 29 Aug 2014 20:22:03 +0200 (CEST) Original-Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7TIM1gJ006640 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 29 Aug 2014 20:22:02 +0200 Original-Received: by mail-ie0-f180.google.com with SMTP id rl12so3256118iec.11 for ; Fri, 29 Aug 2014 11:22:01 -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=C2xA8p23RXaUmnzIfIxKwFfTKq0I/UweBbrU1CwKkpY=; b=eP+UCpzsaHXyIN2xfVtAALeKzAT+P5dwXZCi7Wh+ZYyVwlrxeyhermVhCKDQObUUQ4 1gwek4my/7xM3+YiGFJHvFO5JK9guPqFrS9zzNnHGkMnlUP5Y7t4FqQwQKooAZeU/JO3 tzPhJ2zL3ifMmUQlf2dPASTjfQvRWiDJbIFA26iNl3IiZ5R4yzRAhZea/boQzCmFBJ1/ C2sIgmuOf0wjNyLiJA0QXDQ2ph8F6dyT8ouh9NknbVK92W8MRG/V76G0Mejq58h/U9AV 4BvDwod0DxXdotf3cmgNYpIIIEsE8ffuxrKQNE3cH7+nrS1mODL+CCmFfF3O0kxQ2DzE BSFg== X-Received: by 10.42.26.74 with SMTP id e10mr12603668icc.25.1409336520814; Fri, 29 Aug 2014 11:22:00 -0700 (PDT) Original-Received: by 10.50.113.37 with HTTP; Fri, 29 Aug 2014 11:22:00 -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:c03::234; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01MIGm2JJ - 63362fb748c8 - 20140829 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88603 Archived-At: --===============1628307374== Content-Type: multipart/alternative; boundary=20cf30435036b136940501c8ba8a --20cf30435036b136940501c8ba8a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable In the code below, I do not understand why the label "Arbre 2" does not have the color you want, that is to say the same as the label "Arbre 1". Thank you. \usemodule[tikz] \usetikzlibrary[calc] \definecolor[A2][c=3D0.60, m=3D0.00, y=3D0.00, k=3D0.10] \definecolor[H1prime][c=3D0.50, m=3D0.00, y=3D1.00, k=3D0.00] \starttext \starttikzpicture[line width=3D0.3mm, >=3Dstealth, x=3D1cm, y=3D1cm,line ca= p=3Dround, line join=3Dround] \tikzstyle{epais}=3D[line width=3D0.5mm, line cap=3Dbutt] \tikzstyle{tres epais}=3D[line width=3D0.8mm, line cap=3Dbutt] \draw [tres epais] (6.02,3.63)-- (8.88,3.64); \draw (6.02,3.63)-- (6.03,0.77); \draw [tres epais] (6.03,0.77)-- (6.02,3.63); \draw [tres epais] (8.88,3.64)-- (8.89,0.78); \draw [dashed] (-3.38,3.6)-- (8.89,-0.09); \draw [dashed] (8.89,-0.09)-- (8.89,0.78); \draw [dashed] (-3.38,3.6)-- (6.02,3.63); \draw [A2,epais,domain=3D-1:2] plot(\x,{(-8.9-4.4*\x)/-3}); \draw [A2,epais,domain=3D1.5:4.5] plot(\x,{(--1.58-5.12*\x)/-4.72}); \draw (8.84,4.4) node {\color[H1prime]{\bf Arbre 1}}; \draw (-2.96,4.4) node {\color[H1prime]{\bf Arbre 2}}; \node at (8.14,0.8) {\small piquet 4}; \draw [A1](8.84,-0.3) node {\bf Georges}; \node[rotate=3D45] at (0.28,1.88) {\color[A2]{\bf Ravin}}; \node[rotate=3D90] at (9.4,1.74) {\color[B1prime]{\bf longueur mesur=C3=A9= e}}; \draw (2.46,4) node {\color[B1prime]{\bf longueur inconnue =C3=A0 estimer}}= ; \draw[B1prime,<->] (9.05,3.62)-- (9.05,-0.09); \draw[B1prime,<->] (-3.38,3.8)-- (8.9,3.8); \node at (8.84,4.0) {\small piquet 1}; \node[rotate=3D30] at (6.22,4) {\small piquet 2}; \node[rotate=3D30] at (6.22,0.5) {\small piquet 3}; \stoptikzpicture \stoptext --20cf30435036b136940501c8ba8a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


In the code
below, I do not understand why the label "Arbre 2" does not have the color you want, that is to s= ay the same as the label "Arbre 1&qu= ot;.
Thank you.

\usemodule[tikz]=
\usetikzlibrary[calc]

\definecolor[A2][c=3D0.60, m=3D0.00, y=3D0= .00, k=3D0.10]
\definecolor[H1prime][c=3D0.50, m=3D0.00, y=3D1.00, k=3D0= .00]

\starttext
\starttikzpicture[line width=3D0.3mm, >=3Dstealth, x=3D1cm, y=3D1cm,line= cap=3Dround, line join=3Dround]
\tikzstyle{epais}=3D[line width=3D0.5mm= , line cap=3Dbutt]
\tikzstyle{tres epais}=3D[line width=3D0.8mm, line ca= p=3Dbutt]
\draw [tres epais] (6.02,3.63)-- (8.88,3.64);
\draw (6.02,3.63)-- (6.03,0.77);
\draw [tres epais] (6.03,0.77)-- (6.02,= 3.63);
\draw [tres epais] (8.88,3.64)-- (8.89,0.78);
\draw [dashed] (= -3.38,3.6)-- (8.89,-0.09);
\draw [dashed] (8.89,-0.09)-- (8.89,0.78); \draw [dashed] (-3.38,3.6)-- (6.02,3.63);
\draw [A2,epais,domain=3D-1:2]= plot(\x,{(-8.9-4.4*\x)/-3});
\draw [A2,epais,domain=3D1.5:4.5] plot(\x,= {(--1.58-5.12*\x)/-4.72});
\draw (8.84,4.4) node {\color[H1prime]{\bf Ar= bre 1}};
\draw (-2.96,4.4) node {\color[H1prime]{\bf Arbre 2}};
\node at (8.14,0.= 8)=C2=A0 {\small piquet 4};
\draw [A1](8.84,-0.3) node {\bf Georges};\node[rotate=3D45] at (0.28,1.88)=C2=A0 {\color[A2]{\bf Ravin}};
\node[= rotate=3D90] at (9.4,1.74)=C2=A0 {\color[B1prime]{\bf longueur mesur=C3=A9e= }};
\draw (2.46,4) node {\color[B1prime]{\bf longueur inconnue =C3=A0 estimer}}= ;
\draw[B1prime,<->] (9.05,3.62)-- (9.05,-0.09);
\draw[B1prime,= <->] (-3.38,3.8)-- (8.9,3.8);
\node at (8.84,4.0)=C2=A0 {\small pi= quet 1};
\node[rotate=3D30] at (6.22,4)=C2=A0 {\small piquet 2};
\node[rotate=3D3= 0] at (6.22,0.5)=C2=A0 {\small piquet 3};
\stoptikzpicture
\stoptext<= br>
--20cf30435036b136940501c8ba8a-- --===============1628307374== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1628307374==--