ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with embedding code TikZ code
@ 2014-08-29 18:22 Fabrice Couvreur
  2014-08-30 23:25 ` Joshua Krämer
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Couvreur @ 2014-08-29 18:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1630 bytes --]

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=0.60, m=0.00, y=0.00, k=0.10]
\definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]

\starttext
\starttikzpicture[line width=0.3mm, >=stealth, x=1cm, y=1cm,line cap=round,
line join=round]
\tikzstyle{epais}=[line width=0.5mm, line cap=butt]
\tikzstyle{tres epais}=[line width=0.8mm, line cap=butt]
\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=-1:2] plot(\x,{(-8.9-4.4*\x)/-3});
\draw [A2,epais,domain=1.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=45] at (0.28,1.88)  {\color[A2]{\bf Ravin}};
\node[rotate=90] at (9.4,1.74)  {\color[B1prime]{\bf longueur mesurée}};
\draw (2.46,4) node {\color[B1prime]{\bf longueur inconnue à 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=30] at (6.22,4)  {\small piquet 2};
\node[rotate=30] at (6.22,0.5)  {\small piquet 3};
\stoptikzpicture
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 2226 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem with embedding code TikZ code
  2014-08-29 18:22 Problem with embedding code TikZ code Fabrice Couvreur
@ 2014-08-30 23:25 ` Joshua Krämer
  2014-08-31  9:23   ` Fabrice
  0 siblings, 1 reply; 3+ messages in thread
From: Joshua Krämer @ 2014-08-30 23:25 UTC (permalink / raw)
  To: ntg-context-wvrSQK3plZs

On 2014-08-29, 20:22, Fabrice Couvreur wrote:

> 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.

I do not know why it does not work, but this is how it works:

\draw [text=H1prime, font=\bf] (-2.96,4.4) node {Arbre 2};

or

\node [text=H1prime, font=\bf] at (-2.96,4.4) {Arbre 2};

Kind regards,
Joshua Krämer


___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem with embedding code TikZ code
  2014-08-30 23:25 ` Joshua Krämer
@ 2014-08-31  9:23   ` Fabrice
  0 siblings, 0 replies; 3+ messages in thread
From: Fabrice @ 2014-08-31  9:23 UTC (permalink / raw)
  To: ntg-context

Hi Joshua,
That's great, thank you very much.
Best regards,
Fabrice
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-31  9:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-29 18:22 Problem with embedding code TikZ code Fabrice Couvreur
2014-08-30 23:25 ` Joshua Krämer
2014-08-31  9:23   ` Fabrice

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).