From: "luigi scarso" <luigi.scarso@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: mkiv, luatex and tikz
Date: Sat, 25 Oct 2008 00:33:47 +0200 [thread overview]
Message-ID: <fe8d59da0810241533v7896a589ra0df6009498af02c@mail.gmail.com> (raw)
In-Reply-To: <200810242317.09569.alan.braslau@cea.fr>
[-- Attachment #1.1: Type: text/plain, Size: 2913 bytes --]
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.
>
>
> >From the the [Pgf-users] mailing list:
>
> From: Till Tantau <tantau@tc...> - 2008-10-24 10:25
> > Hi!
> >
> > arggh....
> >
> > Discerning the driver is really a problem in ConTeXt, at least for a
> > non-context-guru like myself.
> >
> > As a quick fix, you will have to define the driver yourself by saying
> >
> > \def\pgfsysdriver{pgfgsys-pdftex.def}
> >
> > or whatever seems appropriate before tikz/pgf are loaded. That should
> > shut up the (not-working) automatic driver detection.
> >
> >
> > Does some context-guru on the list happen to know what is the right,
> > official way to find out which backend is used?
> >
> >
> > Best regardsm
> > Till
>
> This won't work with luatex (but it does compile without error messages)
> and I cannot (easily) figure out what the correct driver should be...
>
I have downloaded pgf from
http://www.ctan.org/tex-archive/help/Catalogue/entries/pgf.html
and unzip base.zip
under
minimals-beta/tex/texmf-context/tex/context/pgf
then
$> context test-alan
It seems to work
minimals-beta
Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Mon Aug 25 17:32:09 UTC 2008
i686 GNU/Linux
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
ConTeXt MtxRun | current version: 2008.10.23 17:32
%% test-alan.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\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
[-- Attachment #1.2: Type: text/html, Size: 4295 bytes --]
[-- Attachment #2: test-alan.pdf --]
[-- Type: application/pdf, Size: 32672 bytes --]
[-- Attachment #3: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2008-10-24 22:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-23 15:40 Textbackground with leftframe holzminister
2008-10-24 21:17 ` mkiv, luatex and tikz Alan BRASLAU
2008-10-24 22:33 ` luigi scarso [this message]
2008-10-25 7:18 ` luigi scarso
2008-10-26 13:48 ` Mojca Miklavec
2008-10-26 22:45 ` Mojca Miklavec
[not found] ` <200810261045.19152.alan.braslau@cea.fr>
[not found] ` <6faad9f00810260346o5eb5893w378c2b72639b15b@mail.gmail.com>
2008-10-26 15:24 ` tikz and metapost Alan BRASLAU
2008-10-26 16:15 ` Jean Magnan de Bornier
2008-10-28 9:01 ` Mojca Miklavec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fe8d59da0810241533v7896a589ra0df6009498af02c@mail.gmail.com \
--to=luigi.scarso@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).