[NTG-context] mkiv, luatex and tikz

luigi scarso luigi.scarso at gmail.com
Sat Oct 25 09:18:37 CEST 2008


On Sat, Oct 25, 2008 at 12:33 AM, luigi scarso <luigi.scarso at gmail.com>wrote:

>
>
> On Fri, Oct 24, 2008 at 11:17 PM, Alan BRASLAU <alan.braslau at cea.fr>wrote:
>
>> Tikz seems to be broken under luatex.
>> As is, compiling something as simple as
>>        \usemodule[tikz]
>>        \starttext
>>        Hello, world!
>>        \stoptext
>> gives errors.
>>
>
>
>


%%
%%colors fixed  by Akira Kakuto
%%
\usemodule[tikz]
\setupcolors[state=start]


\starttext
Hello, world!
\blank
\begingroup
\tikz \draw[thick,rounded corners=8pt]
  (0,0) -- (0,2) -- (1,3.25) -- (2,2) -- (2,0) -- (0,2) -- (2,2) -- (0,0) --
(2,0);
\endgroup

\starttikzpicture
  \draw[fill=yellow] (0,0) -- (60:.75cm) arc (60:180:.75cm);
  \draw(120:0.4cm) node {$\alpha$};
  \draw[fill=green!30] (0,0) -- (right:.75cm) arc (0:60:.75cm);
  \draw(30:0.5cm) node {$\beta$};
  \startscope[shift={(60:2cm)}]
    \draw[fill=green!30] (0,0) -- (180:.75cm) arc (180:240:.75cm);
    \draw (30:-0.5cm) node {$\gamma$};
    \draw[fill=yellow] (0,0) -- (240:.75cm) arc (240:360:.75cm);
    \draw (-60:0.4cm) node {$\delta$};
  \stopscope
  \startscope[thick]
    \draw (60:-1cm) node[fill=white] {$E$} -- (60:3cm) node[fill=white]
{$F$};
    \draw[red]                   (-2,0) node[left] {$A$} -- (3,0)
node[right]{$B$};
    \draw[blue,shift={(60:2cm)}] (-3,0) node[left] {$C$} -- (2,0)
node[right]{$D$};
    \draw[shift={(60:1cm)},xshift=4cm]
    node [right,text width=6cm,rounded corners,fill=red!20,inner sep=1ex]
    {
      When we assume that \color[red]{$AB$} and \color[blue]{$CD$} are
      parallel, i.\,e., {\color[red]{$AB$}} {$|$} \color[blue]{$CD$},
      then $\alpha = \delta$ and $\beta = \gamma$.
    };
  \stopscope
\stoptikzpicture




\stoptext






-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ntg.nl/pipermail/ntg-context/attachments/20081025/27f81998/attachment.html 


More information about the ntg-context mailing list