![](https://secure.gravatar.com/avatar/af43724a491832b33f50968db36032ea.jpg?s=120&d=mm&r=g)
Aditya, thanks for looking into it. ConTeXt version: 2009.02.25 14:43 $ luatex --version This is LuaTeX, Version snapshot-0.35.0-2009022421, build unknown untouched version of tikz from minimals Aditya Mahajan wrote:
On Sat, 21 Feb 2009, Mohamed Bana wrote:
hi,
why does this fail with luatex? also, try \enableregime[utf-8] i got another error message when that's enabled.
You do not need \enableregime[utf-8] in luatex. Everything is already utf-8.
The following works for me (see attached pdf). For some reason, the text in the first node is black. Notice the \tikzstyle line is different from what you had.
BTW, the fix for the arrows is; \usetikzlibrary[arrows] *I think* the problem was with; \usemodule[pgfplots] if I include it get the following in the resulting PDF; mapped colorrgb0,0,0 ad2.tex is original --- ad.tex 2009-03-07 23:32:53.000000000 +0000 +++ ad2.tex 2009-03-07 23:34:24.000000000 +0000 @@ -3,16 +3,12 @@ \let\z@\zeropoint \protect \usemodule[tikz] -\usetikzlibrary[arrows,automata] - -%\usemodule[pgfplots] -\setupcolors[state=start] \starttext \starttikzpicture[->,>=stealth',shorten >=1pt,auto,node distance=4cm, semithick] - \tikzstyle{every state}=[fill=black,draw=none,text=white] + \tikzstyle{state}=[fill=gray,draw=none,text=white] \node[state] (s0) [label=left:$s_0$] {$p,q$}; \node[state] (s1) [below right of=s0,label=right:$s_1$] {$q$}; @@ -32,5 +28,4 @@ \stoptikzpicture -\stoptext - +\stoptext Mohamed
\unprotect \newtoks\toks@ \let\z@\zeropoint \protect \usemodule[tikz]
\starttext
\starttikzpicture[->,>=stealth',shorten >=1pt,auto,node distance=4cm, semithick] \tikzstyle{state}=[fill=gray,draw=none,text=white]
\node[state] (s0) [label=left:$s_0$] {$p,q$}; \node[state] (s1) [below right of=s0,label=right:$s_1$] {$q$}; \node[state] (s2) [below of=s0,label=right:$s_2$] {$q$}; \node[state] (s3) [below left of=s0,label=left:$s_3$] {$p$};
\path (s0) edge [loop above] (s0) edge (s1) edge (s3) (s1) edge [bend right] (s3) (s2) edge [loop below] (s2) edge (s0) edge [right] (s1) (s3) edge [right] (s1) edge [right] (s2);
\stoptikzpicture
\stoptext
LuaTeX, Version snapshot-0.35.0-2009030712, build 1950 ConTeXt version: 2009.03.07 00:29
CVS version of tikz: date 2009-03-01 from http://www.texample.net/tikz/builds/
Aditya
------------------------------------------------------------------------
___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________