Re: [NTG-context] Lua error using module pgfplots and shader=interp

2019-05-30 Thread Luca Donetti
On Thu, May 30, 2019 at 11:00 AM Hans Hagen  wrote:

> On 5/29/2019 10:36 PM, Luca Donetti wrote:
> > Dear all,
> >
> > The following example using module pgfplots does not work in an updated
> > context standalone nor with the texlive 2019 version.
> fixed in next beta
>

Thank you.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Lua error using module pgfplots and shader=interp

2019-05-30 Thread Hans Hagen

On 5/29/2019 10:36 PM, Luca Donetti wrote:

Dear all,

The following example using module pgfplots does not work in an updated 
context standalone nor with the texlive 2019 version.

fixed in next beta



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Lua error using module pgfplots and shader=interp

2019-05-29 Thread Luca Donetti
Dear all,

The following example using module pgfplots does not work in an updated
context standalone nor with the texlive 2019 version.

%% Workaround for using tikz version in texlive 2019.
%% See https://github.com/pgf-tikz/pgf/issues/675
%\unprotect
%\def\XC@tgt@mod#1{#1}
%\def\XC@sdef#1#2{\edef#1{#2}}
%\protect

\setupcolors[state=start]
\usemodule[pgfplots]
\starttext
\starttikzpicture
  \startaxis
\addplot3 [
  surf,
  shader=interp, % works with shader=flat
  samples=10,
  domain=0:1,
  ] {x^2*y};
  \stopaxis
\stoptikzpicture
\stoptext

The  error is the following (where line 19 contains "\stopaxis")
lua error   > lua error on line 19 in file [...]:
...781ce0dde776fb1556f32e/formats/luatex/lpdf-ini-macro.lua:887: pdf.obj():
object "type" missing

I'm attaching the test file, with the .the log and  ...-error.log files.
Please note that to reproduce the error with the context version of texlive
2019 the first lines must be uncommented due to a bug in the newer version
of tikz.

I suspect that the problem is with context because same file works with
context from texlive 2018 (which has the same pgfplots version) and an
equivalent latex version works with lualatex.

Could you suggest any workaround? If not I'll file a bug with pgfplots.

Thank you in advance,
LD
open source > level 1, order 1, name '/home/luca/software/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
job > passes > version mismatch: 1.3 <> 1.31
system  > 
system  > ConTeXt  ver: 2019.05.25 10:45 MKIV beta  fmt: 2019.5.27  int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name '/home/luca/software/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name '/home/luca/software/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'minimal_shading', input './minimal_shading', result 'minimal_shading'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/home/luca/Nextcloud/personal/tmpcontext/minimal_shading.tex'
colors  > 'rgb' color space is supported
colors  > 'cmyk' color space is supported
modules > 'pgfplots' is loaded
open source > level 3, order 4, name '/home/luca/software/context/tex/texmf-modules/tex/context/third/pgfplots/t-pgfplots.tex'
loading > ConTeXt User Module / Pgfplots
open source > level 4, order 5, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgfplots/pgfplots.revision.tex'
close source> level 4, order 5, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgfplots/pgfplots.revision.tex'
modules > 'tikz' is loaded
open source > level 4, order 6, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/frontendlayer/t-tikz.tex'
loading > ConTeXt User Module / tikz
open source > level 5, order 7, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex'
loading > ConTeXt User Module / pgf
open source > level 6, order 8, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgfcor.tex'
loading > ConTeXt User Module / pgfcor
open source > level 7, order 9, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex'
loading > ConTeXt User Module / pgfsys
open source > level 8, order 10, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex'
loading > ConTeXt User Module / pgfrcs
open source > level 9, order 11, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex'
loading > ConTeXt User Module / pgfmodules
close source> level 9, order 11, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex'
open source > level 9, order 12, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex'
open source > level 10, order 13, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex'
close source> level 10, order 13, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex'
close source> level 9, order 13, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex'
open source > level 9, order 14, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def'
close source> level 9, order 14, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def'
open source > level 9, order 15, name