Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-13 Thread Keith J. Schultz
Using version 2013.10.10 it works for me as stated in my last post.

regards
Keith

Am 11.10.2013 um 09:55 schrieb Xan :

> With version 2013-09-07 (sh ./first-setup.sh --context=2013-09-07 
> --modules=all --engine=luatex) it works
> With version 2013.10.09 it does not
> 
> So there is a bug.
> 
> Can anyone fix it?
> 
> Thanks,
> Xan

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-11 Thread Keith J. Schultz
Hi,

I just tested the below MWE!

It worked with the latest beta MKIV (--modules=all), an three day old beta, and 
with the TeXLive 2013 (MacTeX)

No errors. Running via TeXShop on a Mac OS 10.85

I can only assume that something is wrong with your set-up! maybe a path 
problem and the wrong TiKZ is being loaded.

reagrds
Keith.

Am 10.10.2013 um 13:09 schrieb Xan :

> Minimal example:
> 
> % Regime
> \enableregime[utf]
> 
> % Choose a language, and associated hyphenation rules.
> \mainlanguage[ca]
> 
> \usemodule [tikz]
> \usetikzlibrary [decorations]
> \usetikzlibrary[decorations.markings]
> 
> 
> 
> \starttext
> 
> 
> 
> \starttext
>  \starttikzpicture
>[decoration={
>   markings,
>   mark=
>   between positions 0 and 1 step 0.5
>   with {
>\draw (0,-2pt) -- (0,2pt);
>   }
> }
> ]
>\coordinate (F) at (0,0);
>\draw[very thick,color=green, loosely dashed,postaction={decorate}] (0,1) 
> -- (F);
>  \stoptikzpicture
> \stoptext
> 
> \stoptext
> 
> 
> does not work.
> 
> Without \coordinate it works. What fails?
> 
> Thanks in advance,
> Xan.
> ___
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-11 Thread Xan
With version 2013-09-07 (sh ./first-setup.sh --context=2013-09-07 --modules=all 
--engine=luatex) it works
With version 2013.10.09 it does not

So there is a bug.

Can anyone fix it?

Thanks,
Xan
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-11 Thread Xan
 On 2013–10–10 Xan wrote:
> 
> > ! Undefined control sequence.
> > 
> > system  > tex > error on line 28 in file 
> > /home/xan/fems/proves-context/prova.tex: Undefined control sequence ...
> > 
> > 18   \starttikzpicture
> > 19 [decoration={
> > 20markings,
> > 21mark=
> > 22between positions 0 and 1 step 0.5
> > 23with {
> > 24 \draw (0,-2pt) -- (0,2pt);
> > 25}
> > 26  }
> > 27 ]
> > 28 >>  \coordinate (F) at (0,0);
> 
> I can reproduce it now. Funnily it works on my regular installation
> (same version). When I run it on a clean minimal installation I get
> the same error. No clue what's going on and I don't have much time
> to check at the moment.
> 
> Marco

Perhaps anyone could see us with this minimal example.
Does anyone?

Thanks in advance,
Xan
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Marco Patzer
On 2013–10–10 Xan wrote:

> ! Undefined control sequence.
> 
> system  > tex > error on line 28 in file 
> /home/xan/fems/proves-context/prova.tex: Undefined control sequence ...
> 
> 18   \starttikzpicture
> 19 [decoration={
> 20markings,
> 21mark=
> 22between positions 0 and 1 step 0.5
> 23with {
> 24 \draw (0,-2pt) -- (0,2pt);
> 25}
> 26  }
> 27 ]
> 28 >>  \coordinate (F) at (0,0);

I can reproduce it now. Funnily it works on my regular installation
(same version). When I run it on a clean minimal installation I get
the same error. No clue what's going on and I don't have much time
to check at the moment.

Marco


signature.asc
Description: Digital signature
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Xan
> On 2013–10–10 Xan wrote:
> 
> > Minimal example:
> > 
> > % Regime
> > \enableregime[utf]
> 
> Not required if you use MkIV
> 
> > does not work.
> 
> It works here with 2013.10.09 10:36 using MkIV and MkII. At least I
> don't get an error and a PDF with a few green blots is created.
> What's the error message you get for that minimal example? Are you
> running MkII or MkIV?
> 

MKIV (read above)

[xan@rulot proves-context]$ context prova.tex 

mtx-context | run 1: luatex 
--fmt="/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
 --jobname="prova" 
--lua="/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
 --no-parse-first-line --c:currentrun=1 --c:fulljobname="./prova.tex" 
--c:input="./prova.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.76.0-2013040516 (rev 4627) 
 \write18 enabled.
(/usr/local/bin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.10.09 10:36 MKIV beta  fmt: 2013.10.10  int: english/english

system  > 'cont-new.mkiv' loaded
(/usr/local/bin/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system  > files > jobname 'prova', input './prova', result 'prova'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
(/home/xan/fems/proves-context/prova.tex
resolvers   > modules > 'tikz' is loaded
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/frontendlayer/t-tikz.tex
loading > ConTeXt User Module / tikz
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex
loading > ConTeXt User Module / pgf
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgfcor.tex
loading > ConTeXt User Module / pgfcor
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex
loading > ConTeXt User Module / pgfsys
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex
loading > ConTeXt User Module / pgfrcs
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex
loading > ConTeXt User Module / pgfmodules
) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfrcs.code.tex))
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeys.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex))
 (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-pdftex.def
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def))
 (prova.pgf)) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsysprotocol.code!
 .tex)) (/
usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcore.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmath.code.tex 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathcalc.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathutil.code.tex
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathparser.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.random.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.comparison.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.base.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.round.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.integerarithmetics.code.tex)))
 (/usr/local/bin/!
 context/t
ex/texmf-modules/tex/generic/pgf/math/pgfmathfloat.code.tex)) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex)
 
(/usr/loc

Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Marco Patzer
On 2013–10–10 Xan wrote:

> Minimal example:
> 
> % Regime
> \enableregime[utf]

Not required if you use MkIV

> does not work.

It works here with 2013.10.09 10:36 using MkIV and MkII. At least I
don't get an error and a PDF with a few green blots is created.
What's the error message you get for that minimal example? Are you
running MkII or MkIV?

> Without \coordinate it works. What fails?

If you remove \coordinate it should fail actually, since the
coordinate for (F) is unknown. Or did you mean you replaced (F) with
a coordinate like (0,2)?

Marco


signature.asc
Description: Digital signature
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Xan
Minimal example:

% Regime
\enableregime[utf]

% Choose a language, and associated hyphenation rules.
\mainlanguage[ca]

\usemodule [tikz]
\usetikzlibrary [decorations]
\usetikzlibrary[decorations.markings]



\starttext



\starttext
  \starttikzpicture
[decoration={
   markings,
   mark=
   between positions 0 and 1 step 0.5
   with {
\draw (0,-2pt) -- (0,2pt);
   }
 }
]
\coordinate (F) at (0,0);
\draw[very thick,color=green, loosely dashed,postaction={decorate}] (0,1) 
-- (F);
  \stoptikzpicture
\stoptext

\stoptext


does not work.

Without \coordinate it works. What fails?

Thanks in advance,
Xan.
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Marco Patzer
On 2013–10–10 Xan wrote:

> with this code:
> 
> 
> % Paràbola amb Focus = (0,0.25) i Directriu (x,-0.25)
> \placefigure[here]
> [taula:construcció-paràbola-1]
> {Paràbola amb directriu $r$ i focus $F$}
> {\framed[frame=off]{
> \starttikzpicture[domain=(-1):1, scale=4, smooth,decoration={
>   markings,% switch on markings
>   mark=% actually add a mark
>   between positions 0 and 1 step 0.5
>   with
>   {
>\draw[color=gray] (0,-2pt) -- (0,2pt);
>   }
> }]
> \coordinate (F) at (0,0.25);
> \draw[very thick] (-2.2,-0.25) -- (2.2,-0.25) node[right] {$r$};
> \draw[color=blue, very thick] plot (\x,{(\x)^2});
> 
> \foreach \x in {1,0.5,0.75}
> {
>\draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x, 
> -0.25) -- (\x , {(\x)^2});
>\draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x , 
> {(\x)^2}) -- (F);
> }
> \filldraw[color=red] (F) circle (0.5pt);
> \draw (F) node[anchor=north] {$F$};
> \stoptikzpicture}}
> 
> 
> 
> this happens when I updated to the latest version:
> $ sh ./first-setup.sh --context=beta --modules=all --engine=luatex
> 
> What happens there?

Hard to tell. Please provide a minimal example next time. I tried to
condense your example, but I'm getting a different error than you
do. Maybe I deleted too much or my syntax is invalid. I don't really
know TikZ.

\usemodule [tikz]
\usetikzlibrary [decorations]

\starttext
  \starttikzpicture
[decoration={
   mark= between positions 0 and 1 step 0.5
   with { \draw (0,-2pt) -- (0,2pt);}}]
\draw node {foo};
  \stoptikzpicture
\stoptext

Marco


signature.asc
Description: Digital signature
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Hans Hagen

On 10/10/2013 10:33 AM, Xan wrote:


\tikz@nlt ^^@-\pgfapproximatenonlineartranslation


maybe you need to load some more tikz files

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Xan
Hi,

I have this error:

))
structure   > sectioning > title @ level 2 : 0.0 -> Funció quadràtica
structure   > sectioning > section @ level 3 : 0.0.1 -> Seccions còniques
structure   > sectioning > section @ level 3 : 0.0.2 -> Construcció 
geomètrica d'una paràbola
structure   > sectioning > subsection @ level 4 : 0.0.2.1 -> Definició
! Undefined control sequence.

system  > tex > error on line 57 in file 
/home/xan/SYNC/cepasud-raw-mercurial/classe/ESPA4/planificació/Tema1-Funció-quadràtica/97-Quadràtica-a-la-realitat.conTeXt:
 Undefined control sequence ...

47 {\framed[frame=off]{
48 \starttikzpicture[domain=(-1):1, scale=4, smooth,decoration={
49   markings,% switch on markings
50   mark=% actually add a mark
51   between positions 0 and 1 step 0.5
52   with
53   {
54\draw[color=gray] (0,-2pt) -- (0,2pt);
55   }
56 }]
57 >>  \coordinate (F) at (0,0.25);
58 \draw[very thick] (-2.2,-0.25) -- (2.2,-0.25) node[right] {$r$};
59 \draw[color=blue, very thick] plot (\x,{(\x)^2});
60 
61 \foreach \x in {1,0.5,0.75}
62 {
63\draw[very thick,color=green, loosely dashed,postaction={decorate}] 
(\x, -0.25) -- (\x , {(\x)^2});
64\draw[very thick,color=green, loosely dashed,postaction={decorate}] 
(\x , {(\x)^2}) -- (F);
65 }
66 \filldraw[color=red] (F) circle (0.5pt);
67 \draw (F) node[anchor=north] {$F$};


\tikz@nlt ^^@-\pgfapproximatenonlineartranslation 

\tikz@fig@continue ...e@transformations \tikz@nlt 
  \setbox \tikz@whichbox =\h...
 
;
l.57 \coordinate (F) at (0,0.25);
   
? 


with this code:


% Paràbola amb Focus = (0,0.25) i Directriu (x,-0.25)
\placefigure[here]
[taula:construcció-paràbola-1]
{Paràbola amb directriu $r$ i focus $F$}
{\framed[frame=off]{
\starttikzpicture[domain=(-1):1, scale=4, smooth,decoration={
  markings,% switch on markings
  mark=% actually add a mark
  between positions 0 and 1 step 0.5
  with
  {
   \draw[color=gray] (0,-2pt) -- (0,2pt);
  }
}]
\coordinate (F) at (0,0.25);
\draw[very thick] (-2.2,-0.25) -- (2.2,-0.25) node[right] {$r$};
\draw[color=blue, very thick] plot (\x,{(\x)^2});

\foreach \x in {1,0.5,0.75}
{
   \draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x, 
-0.25) -- (\x , {(\x)^2});
   \draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x , 
{(\x)^2}) -- (F);
}
\filldraw[color=red] (F) circle (0.5pt);
\draw (F) node[anchor=north] {$F$};
\stoptikzpicture}}



this happens when I updated to the latest version:
$ sh ./first-setup.sh --context=beta --modules=all --engine=luatex

What happens there?

Thanks,
Xan
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___