From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45085 Path: news.gmane.org!not-for-mail From: "luigi scarso" Newsgroups: gmane.comp.tex.context Subject: Re: mkiv, luatex and tikz Date: Sat, 25 Oct 2008 09:18:37 +0200 Message-ID: References: <6b36c7890809230840j7e3cbe0ckc08032e65fa62306@mail.gmail.com> <200810242317.09569.alan.braslau@cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1319519525==" X-Trace: ger.gmane.org 1224919219 28602 80.91.229.12 (25 Oct 2008 07:20:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Oct 2008 07:20:19 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 25 09:21:19 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KtdSY-0004VW-MD for gctc-ntg-context-518@m.gmane.org; Sat, 25 Oct 2008 09:21:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AE3531FB49; Sat, 25 Oct 2008 09:20:10 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13208-01-4; Sat, 25 Oct 2008 09:19:13 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4ADA31FB1D; Sat, 25 Oct 2008 09:19:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 364791FB1D for ; Sat, 25 Oct 2008 09:19:12 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13209-01-4 for ; Sat, 25 Oct 2008 09:18:37 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by ronja.ntg.nl (Postfix) with ESMTP id 5E3301FADC for ; Sat, 25 Oct 2008 09:18:37 +0200 (CEST) Original-Received: by fg-out-1718.google.com with SMTP id l26so1220680fgb.8 for ; Sat, 25 Oct 2008 00:18:37 -0700 (PDT) Original-Received: by 10.187.202.7 with SMTP id e7mr269813faq.33.1224919117136; Sat, 25 Oct 2008 00:18:37 -0700 (PDT) Original-Received: by 10.187.211.5 with HTTP; Sat, 25 Oct 2008 00:18:37 -0700 (PDT) In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:45085 Archived-At: --===============1319519525== Content-Type: multipart/alternative; boundary="----=_Part_3213_31311637.1224919117126" ------=_Part_3213_31311637.1224919117126 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sat, Oct 25, 2008 at 12:33 AM, luigi scarso wrote: > > > On Fri, Oct 24, 2008 at 11:17 PM, Alan BRASLAU 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 ------=_Part_3213_31311637.1224919117126 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline

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


On Fri, Oct 24, 2008 at 11:17 PM, Alan BRASLAU <alan.braslau@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

------=_Part_3213_31311637.1224919117126-- --===============1319519525== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1319519525==--