Another TikZ problem with "!"
Hi! Color is not the only place where TikZ treats "!" in a special way. For example, in TikZ/LaTeX you can say: \coordinate (A) at (0, 0); \coordinate (B) at (1, 0); \coordinate (C) at ($ (A)!.3!(B) $); % z.C = .3[z.A, z.B] in MetaPost \coordinate (D) at (2, 1); \coordinate (E) at ($ (A)!(B)!(D) $); % projection of (B) to (A)--(D). This code fails in ConTeXt because "!" is made a "normal" character.
On 3-12-2010 3:19, Yury G. Kudryashov wrote:
Hi!
Color is not the only place where TikZ treats "!" in a special way. For example, in TikZ/LaTeX you can say:
\coordinate (A) at (0, 0); \coordinate (B) at (1, 0); \coordinate (C) at ($ (A)!.3!(B) $); % z.C = .3[z.A, z.B] in MetaPost \coordinate (D) at (2, 1); \coordinate (E) at ($ (A)!(B)!(D) $); % projection of (B) to (A)--(D).
This code fails in ConTeXt because "!" is made a "normal" character.
if tokens have a special meaning, then it's up to tikz to deal with it ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Yury G. Kudryashov