hi, why does this fail with luatex? also, try \enableregime[utf-8] i got another error message when that's enabled. $ luatex --version This is LuaTeX, Version snapshot-0.31.3-2008123108, build unknown $ context --version MtxRun | main context file: /home/mbana/context-minimals/tex/texmf-context/tex/context/base/context.tex MtxRun | current version: 2009.01.18 14:39 texexec --lua test.tex ! Missing \endcsname inserted. <to be read again> \edef \tikz@finish ...\the \pgflinewidth }\fi \fi \edef \tikz@temp {\noexpand \pgf... <argument> ...linewidth {\begingroup \tikz@finish }\global \pgflinewidth =\p... \pgfutil@secondoftwo #1#2->#2 <argument> ...l \pgflinewidth =\pgfutil@tempdima } \pgfutil@ifundefined {pgf@... \pgfutil@secondoftwo #1#2->#2 ... l.52 ...ft:$s_0$] {$p,q$}; ? %\enableregime[utf-8] \usemodule[tikz] \usemodule[pgfplots] %\usetikzlibrary[fit] % ConTEXt \usetikzlibrary[arrows,automata,fit] \starttext \starttikzpicture[->,>=stealth',shorten >=1pt,auto,node distance=4cm, semithick] \tikzstyle{every state}=[fill=grey,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
anyone? Mohamed Bana wrote:
hi,
why does this fail with luatex? also, try \enableregime[utf-8] i got another error message when that's enabled.
$ luatex --version This is LuaTeX, Version snapshot-0.31.3-2008123108, build unknown
$ context --version MtxRun | main context file: /home/mbana/context-minimals/tex/texmf-context/tex/context/base/context.tex MtxRun | current version: 2009.01.18 14:39
texexec --lua test.tex
! Missing \endcsname inserted. <to be read again> \edef \tikz@finish ...\the \pgflinewidth }\fi \fi \edef \tikz@temp {\noexpand \pgf... <argument> ...linewidth {\begingroup \tikz@finish }\global \pgflinewidth =\p... \pgfutil@secondoftwo #1#2->#2
<argument> ...l \pgflinewidth =\pgfutil@tempdima } \pgfutil@ifundefined {pgf@... \pgfutil@secondoftwo #1#2->#2
.... l.52 ...ft:$s_0$] {$p,q$};
?
%\enableregime[utf-8]
\usemodule[tikz] \usemodule[pgfplots] %\usetikzlibrary[fit] % ConTEXt \usetikzlibrary[arrows,automata,fit]
\starttext
\starttikzpicture[->,>=stealth',shorten >=1pt,auto,node distance=4cm, semithick] \tikzstyle{every state}=[fill=grey,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
___________________________________________________________________________________
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 ___________________________________________________________________________________
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. \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
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 ___________________________________________________________________________________
On Sat, 7 Mar 2009, Mohamed Bana wrote:
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
The minimals version of tikz is old. Try the latest cvs version which is packaged in a TDS compliant manner at http://www.texample.net/tikz/builds/ With this version, your example compiles there without any errors even when I pgfplots. Aditya
On Sun, Mar 8, 2009 at 01:02, Aditya Mahajan wrote:
The minimals version of tikz is old. Try the latest cvs version which is packaged in a TDS compliant manner at http://www.texample.net/tikz/builds/
I'm sorry. I thought it was up to date. I need to take a look again. I have frozen the version at some point since there was some incompatible change causing engine recognition to fail, but I thought I have unfrozen that later; maybe we just forgot to update the cronjob after server change. I'll be back home next Tuesday, but will try to take a look before. Mojca
On Sun, Mar 8, 2009 at 01:02, Aditya Mahajan wrote:
The minimals version of tikz is old.
Hmmm ... what exactly did I miss?
doc/generic/pgf/ChangeLog starts with
2009-02-26 Christian Feuersaenger
On Mon, 9 Mar 2009, Mojca Miklavec wrote:
On Sun, Mar 8, 2009 at 01:02, Aditya Mahajan wrote:
The minimals version of tikz is old.
Hmmm ... what exactly did I miss?
Updating the description page :) I just looked at the description page which still talks about Current version: 2.00 In sync with CTAN: yes So, if it is in sync with CTAN, it cannot be the CVS version ;) I did not actually test it. Sorry for the noise. Aditya
On Mon, Mar 9, 2009 at 17:38, Aditya Mahajan wrote:
On Mon, 9 Mar 2009, Mojca Miklavec wrote:
On Sun, Mar 8, 2009 at 01:02, Aditya Mahajan wrote:
The minimals version of tikz is old.
Hmmm ... what exactly did I miss?
Updating the description page :) I just looked at the description page which still talks about
Current version: 2.00 In sync with CTAN: yes
Blame Patrick for that :) :) :) He just added some random field to description of modules whose value always says "yes". The module is not synced on CTAN, but it is not updated on modules.contextgarden.net either. I need to delete it (or do something else with it). For tikz I use a special script that updates it from CVS for the minimals; all other modules are synced from modules.contextgarden.net.
So, if it is in sync with CTAN, it cannot be the CVS version ;) I did not actually test it. Sorry for the noise.
But you might have been right about your "your're using too old version" after all :) :) :) On Mon, Mar 9, 2009 at 17:12, Till Tantau wrote:
Hi!
I have just commited a patch to CVS that should fix the problem. (I could not try out the minimal example you sketch below because, for some reason, context in this miniversion fails to load the tikz module. But I hope my patch will fix this problem in luatex+context).
Note that the context color support is still far from perfect, but better than nothing.
I hope you will be able to test ... I'm leaving now. Mojca
participants (4)
-
Aditya Mahajan
-
Mohamed Bana
-
Mohamed Bana
-
Mojca Miklavec