Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
> V ned., 22. avg. 2021 19:32 je oseba Gavin  napisala:
> 
>> I am not sure what my next step should be. Should I wait a day for the 
>> system to do its fetching thing and then try the same instructions I 
>> followed before (https://wiki.contextgarden.net/Modules#ConTeXt_LMTX)?
>> 
>> I know very little about these rsync commands. I’m just cutting-and-pasting 
>> into my command line.
>> 
> Waiting won't help. Can you perhaps send full output of comping the sample 
> that you posted earlier? What OS and architecture do you use?
> 
> Mojca

Right now, my documents are all working fine (since I fixed my module). I don’t 
have a full output with the error. I’m using MacOS X86.

It seems likely that I am the only person in the world who is working on a TikZ 
polar plot in a ConTeXt document right now. Since you found and fixed one 
potential source of the problem, and I’m currently functioning fine, I think 
I’ll set this aside for now and get some work done. When I have a little more 
time, I will try updating the modules again and compare the files to the 
current version of TikZ. Then, if everything is great, I’ll let you know. If 
anything is wrong, I’ll get the full logs and MWE and all that.

In the meantime, if you have some specific update procedure you would like me 
to test, I’d be happy to do that. Just let me know what commands you want me to 
run.

Thanks for all your help!
Gavin
___
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] pgfplots module needs update from December

2021-08-22 Thread Mojca Miklavec via ntg-context
V ned., 22. avg. 2021 19:32 je oseba Gavin 
napisala:

>
> I am not sure what my next step should be. Should I wait a day for the
> system to do its fetching thing and then try the same instructions I
> followed before (https://wiki.contextgarden.net/Modules#ConTeXt_LMTX)?
>
> I know very little about these rsync commands. I’m just
> cutting-and-pasting into my command line.
>

Waiting won't help. Can you perhaps send full output of comping the sample
that you posted earlier? What OS and architecture do you use?

Mojca

>
___
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] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
On Aug 22, 2021, at 10:27 AM, Mojca Miklavec  
wrote:
> 
> I didn't have to fix anything in the code, but the git repository was moved, 
> so the module wasn't kept up to date for a while. I just updated the URL for 
> fetching the latest sources.
> 
> Mojca

Thanks for making that fix.

I am not sure what my next step should be. Should I wait a day for the system 
to do its fetching thing and then try the same instructions I followed before 
(https://wiki.contextgarden.net/Modules#ConTeXt_LMTX)?

I know very little about these rsync commands. I’m just cutting-and-pasting 
into my command line.

Thanks!
Gavin
___
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] pgfplots module needs update from December

2021-08-22 Thread Mojca Miklavec via ntg-context
I used the latest commit from the git repository rather than the latest
release.

Mojcs
___
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] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
>> Hi Hans,
>> It doesn’t keep failing for me because the fix is well documented, so I 
>> fixed it on my machine. I am just imagining that it might be nice to put 
>> that fix in the modules that people download. For example, a teacher wants 
>> to help me test my book, so he followed the instructions on the wiki to 
>> instal ConTeXt (LMTX) and the modules 
>> (https://wiki.contextgarden.net/Modules). Then he had to go in and change 
>> two commands the file:
>>  context-osx-64/tex/texmf-modules/generic/pgfplots/pgfplots.code.tex
>> The changes are:
>>  Line 7928: change “\begin{axis}" to “\axis”
>>  Line 7934: change “\end{axis}" to “\endaxis”
>> Then everything is great.
>> I don't know where the modules live and how they are maintained, but if this 
>> fix could be put into those modules before people download them, that would 
>> be helpful as I add more collaborators.
> it makes no sense to mojca to fix modules that come from elsewhere because a 
> next time it might be different so when tikz is not updated on ctan (where 
> it's fetched from) it's not an official fix
> 
> (a well documented tikz fix that doesn't go into tikz is not really a fix, is 
> it?)
> 
> Hans

TikZ is fixed on ctan (based on the fixed version in my TeXLive distribution). 
Mojca has directed me to a fixed version at distribution.contextgarden.net. I’m 
trying to figure out why my collaborator and I did not get that fixed version 
when we followed the instructions at 
https://wiki.contextgarden.net/Modules#ConTeXt_LMTX. I’ll keep working on it.

Gavin
___
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] pgfplots module needs update from December

2021-08-22 Thread Mojca Miklavec via ntg-context
V ned., 22. avg. 2021 18:13 je oseba Hans Hagen via ntg-context <
ntg-context@ntg.nl> napisala:

>
> it makes no sense to mojca to fix modules that come from elsewhere
> because a next time it might be different so when tikz is not updated on
> ctan (where it's fetched from) it's not an official fix
>

I didn't have to fix anything in the code, but the git repository was
moved, so the module wasn't kept up to date for a while. I just updated the
URL for fetching the latest sources.

Mojca

>
___
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] pgfplots module needs update from December

2021-08-22 Thread Hans Hagen via ntg-context

On 8/22/2021 4:32 PM, Gavin wrote:

On Aug 22, 2021, at 8:13 AM, Hans Hagen  wrote:



you haven't post the tex code that fails so no one can check it

Hans

usemodule[tikz]
\usemodule[pgfplots]
\usetikzlibrary[pgfplots.polar]
\startTEXpage
   \starttikzpicture
 \startpolaraxis
   \addplot coordinates {(0,1) (90,1)
 (180,1) (270,1)};
 \stoppolaraxis
   \stoptikzpicture
\stopTEXpage

even when you say

\def\begin#1{\csname begin#1\endcsname}

to get around the first hurdle it fails because \addplot is not defined

i can't grep it in the tikz module tree either but there are files with 'plot' 
in it, so maybe you need to install more or maybe the commands / interfaces 
changed

(if it keeps failing on you, you can always try to use metapost instead)

Hans


Hi Hans,

It doesn’t keep failing for me because the fix is well documented, so I fixed 
it on my machine. I am just imagining that it might be nice to put that fix in 
the modules that people download. For example, a teacher wants to help me test 
my book, so he followed the instructions on the wiki to instal ConTeXt (LMTX) 
and the modules (https://wiki.contextgarden.net/Modules). Then he had to go in 
and change two commands the file:

context-osx-64/tex/texmf-modules/generic/pgfplots/pgfplots.code.tex

The changes are:

Line 7928: change “\begin{axis}" to “\axis”
Line 7934: change “\end{axis}" to “\endaxis”

Then everything is great.

I don't know where the modules live and how they are maintained, but if this 
fix could be put into those modules before people download them, that would be 
helpful as I add more collaborators.
it makes no sense to mojca to fix modules that come from elsewhere 
because a next time it might be different so when tikz is not updated on 
ctan (where it's fetched from) it's not an official fix


(a well documented tikz fix that doesn't go into tikz is not really a 
fix, is it?)


Hans

-
  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
___


Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Mojca Miklavec via ntg-context
On Sun, 22 Aug 2021 at 17:46, Gavin  wrote:
>
> The instructions we followed for installing the modules are at
>
> https://wiki.contextgarden.net/Modules#ConTeXt_LMTX
>
> These instructions include the line
>
> rsync -rltv --del rsync://contextgarden.net/minimals/current/modules/ 
> modules
>
> This does not seem to produce the same files as the 
> distribution.contextgarden.net address that you provided.

What's the main difference?
(Sure, you get all of the modules, not just TikZ. I somewhat suspect
that old files don't get deleted, so you may also end up with some old
files with the same name taking precedence and breaking the
functionality.)

> Should we be following different installation instructions?

I didn't test them, but the instructions seem more or less correct.

If you only need tikz (or just for testing with a fresh installation),
you could test with something similar to
rsync -av --delete
rsync://contextgarden.net/minimals/current/modules/t-tikz/
path-to/texmf-modules/

Mojca
___
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] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
> On Aug 22, 2021, at 8:44 AM, Mojca Miklavec  
> wrote:
> 
> I tried a fresh installation of both MKIV and LMTX and both seem to
> work fine for me, so sadly I cannot reproduce the problem.
> (The files comes from rsync, from the same folder as shown here:
> https://distribution.contextgarden.net/current/modules/t-tikz/)
> 
> Mojca

The instructions we followed for installing the modules are at

https://wiki.contextgarden.net/Modules#ConTeXt_LMTX

These instructions include the line

rsync -rltv --del rsync://contextgarden.net/minimals/current/modules/ 
modules

This does not seem to produce the same files as the 
distribution.contextgarden.net address that you provided. Should we be 
following different installation instructions?

Gavin
___
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] pgfplots module needs update from December

2021-08-22 Thread Mojca Miklavec via ntg-context
On Sun, 22 Aug 2021 at 15:43, Gavin via ntg-context wrote:
>
> usemodule[tikz]
> \usemodule[pgfplots]
> \usetikzlibrary[pgfplots.polar]
>
> \startTEXpage
>   \starttikzpicture
> \startpolaraxis
>   \addplot coordinates {(0,1) (90,1)
> (180,1) (270,1)};
> \stoppolaraxis
>   \stoptikzpicture
> \stopTEXpage

I tried a fresh installation of both MKIV and LMTX and both seem to
work fine for me, so sadly I cannot reproduce the problem.
(The files comes from rsync, from the same folder as shown here:
https://distribution.contextgarden.net/current/modules/t-tikz/)

Mojca
___
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] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
> On Aug 22, 2021, at 8:13 AM, Hans Hagen  wrote:
>> 
>>> you haven't post the tex code that fails so no one can check it
>>> 
>>> Hans
>> usemodule[tikz]
>> \usemodule[pgfplots]
>> \usetikzlibrary[pgfplots.polar]
>> \startTEXpage
>>   \starttikzpicture
>> \startpolaraxis
>>   \addplot coordinates {(0,1) (90,1)
>> (180,1) (270,1)};
>> \stoppolaraxis
>>   \stoptikzpicture
>> \stopTEXpage
> even when you say
> 
> \def\begin#1{\csname begin#1\endcsname}
> 
> to get around the first hurdle it fails because \addplot is not defined
> 
> i can't grep it in the tikz module tree either but there are files with 
> 'plot' in it, so maybe you need to install more or maybe the commands / 
> interfaces changed
> 
> (if it keeps failing on you, you can always try to use metapost instead)
> 
> Hans

Hi Hans,

It doesn’t keep failing for me because the fix is well documented, so I fixed 
it on my machine. I am just imagining that it might be nice to put that fix in 
the modules that people download. For example, a teacher wants to help me test 
my book, so he followed the instructions on the wiki to instal ConTeXt (LMTX) 
and the modules (https://wiki.contextgarden.net/Modules). Then he had to go in 
and change two commands the file:

context-osx-64/tex/texmf-modules/generic/pgfplots/pgfplots.code.tex

The changes are:

Line 7928: change “\begin{axis}" to “\axis”
Line 7934: change “\end{axis}" to “\endaxis”

Then everything is great.

I don't know where the modules live and how they are maintained, but if this 
fix could be put into those modules before people download them, that would be 
helpful as I add more collaborators.

Thanks!
Gavin
___
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] pgfplots module needs update from December

2021-08-22 Thread Hans Hagen via ntg-context

On 8/22/2021 3:42 PM, Gavin wrote:

On Aug 22, 2021, at 7:20 AM, Hans Hagen via ntg-context  
wrote:

On 8/22/2021 2:25 PM, Gavin via ntg-context wrote:

Hi Mojca,
(I mistakenly sent this only to Mojca. I’m sending again to the group.)

Is there anything I can do to aid in getting this fixed in the distribution?


Can you please try updating and checking again (at least with the
"legacy installer", I'm not sure how Hans handles the modules for
lmtx)?

I just installed again and now pgfplots doesn’t work at all. Before it didn’t 
work just for polar plots. The new error is

you haven't post the tex code that fails so no one can check it

Hans


usemodule[tikz]
\usemodule[pgfplots]
\usetikzlibrary[pgfplots.polar]

\startTEXpage
   \starttikzpicture
 \startpolaraxis
   \addplot coordinates {(0,1) (90,1)
 (180,1) (270,1)};
 \stoppolaraxis
   \stoptikzpicture
\stopTEXpage

even when you say

\def\begin#1{\csname begin#1\endcsname}

to get around the first hurdle it fails because \addplot is not defined

i can't grep it in the tikz module tree either but there are files with 
'plot' in it, so maybe you need to install more or maybe the commands / 
interfaces changed


(if it keeps failing on you, you can always try to use metapost instead)

Hans

-
  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
___


Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
> On Aug 22, 2021, at 7:20 AM, Hans Hagen via ntg-context  
> wrote:
> 
> On 8/22/2021 2:25 PM, Gavin via ntg-context wrote:
>> Hi Mojca,
>> (I mistakenly sent this only to Mojca. I’m sending again to the group.)
 Is there anything I can do to aid in getting this fixed in the 
 distribution?
>>> 
>>> Can you please try updating and checking again (at least with the
>>> "legacy installer", I'm not sure how Hans handles the modules for
>>> lmtx)?
>> I just installed again and now pgfplots doesn’t work at all. Before it 
>> didn’t work just for polar plots. The new error is
> you haven't post the tex code that fails so no one can check it
> 
> Hans

usemodule[tikz]
\usemodule[pgfplots]
\usetikzlibrary[pgfplots.polar]

\startTEXpage
  \starttikzpicture
\startpolaraxis
  \addplot coordinates {(0,1) (90,1)
(180,1) (270,1)};
\stoppolaraxis
  \stoptikzpicture
\stopTEXpage
___
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] pgfplots module needs update from December

2021-08-22 Thread Hans Hagen via ntg-context

On 8/22/2021 2:25 PM, Gavin via ntg-context wrote:

Hi Mojca,

(I mistakenly sent this only to Mojca. I’m sending again to the group.)


Is there anything I can do to aid in getting this fixed in the distribution?


Can you please try updating and checking again (at least with the
"legacy installer", I'm not sure how Hans handles the modules for
lmtx)?


I just installed again and now pgfplots doesn’t work at all. Before it didn’t 
work just for polar plots. The new error is

you haven't post the tex code that fails so no one can check it

Hans


-
  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
___


Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
Hi Mojca,

(I mistakenly sent this only to Mojca. I’m sending again to the group.)

>> Is there anything I can do to aid in getting this fixed in the distribution?
> 
> Can you please try updating and checking again (at least with the
> "legacy installer", I'm not sure how Hans handles the modules for
> lmtx)?

I just installed again and now pgfplots doesn’t work at all. Before it didn’t 
work just for polar plots. The new error is 

tex error   > tex error on line 48 in file 
/Users/Gavin/context-osx-64/tex/texmf-modules/tex/generic/pgfplots/pgfplots.code.tex:
 ! I can't find file `pgflibrarypgfplots.contourlua.code.tex'.

The instructions I followed from the garden are below.

- Gavin


> # Synchronize all modules from the ConTeXt Garden in the directory 'modules' 
> which is created if it doesn't exist.
> 
> rsync -rltv --del rsync://contextgarden.net/minimals/current/modules/ modules
> 
> # Create the union of all modules in tex/texmf-modules (the directory is 
> created if it doesn't exist).
> # If you have personal modules in tex/texmf-modules, they won't be modified.
> 
> rsync -rlt --exclude=/VERSION --del modules/*/ tex/texmf-modules
> 
> # You may delete the 'module's directory to reclaim some space or keep it to 
> speed up the next update.
> # rm -rf modules
> 
> # Update the ConTeXt LMTX distribution. Alternatively, if you do not
> # want to do that, you have to run mtxrun --generate.
> 
> sh ./install.sh
___
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] pgfplots module needs update from December

2021-08-21 Thread Hans Hagen via ntg-context

On 8/21/2021 1:26 PM, Mojca Miklavec via ntg-context wrote:

Dear Gavin,

On Sat, 21 Aug 2021 at 06:05, Gavin via ntg-context wrote:


The module pgfplots has a bug that produces an error for polar plots, and 
perhaps in other situations.

Is there anything I can do to aid in getting this fixed in the distribution?


Can you please try updating and checking again (at least with the
"legacy installer", I'm not sure how Hans handles the modules for
lmtx)?
I don't because then I need to have them on my system and I'm too lazy 
to update ... of course I do sync with the garden when I do a normal 
update so I guess that normally I have an okay tikz (as I don't use it, 
apart from a few tests in the suite, I depend on users to report issues.)


(Users can just symlink an lmtx module tree to the 'legacy' mkiv modules 
tree.)


Hans

-
  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
___


Re: [NTG-context] pgfplots module needs update from December

2021-08-21 Thread Mojca Miklavec via ntg-context
Dear Gavin,

On Sat, 21 Aug 2021 at 06:05, Gavin via ntg-context wrote:
>
> The module pgfplots has a bug that produces an error for polar plots, and 
> perhaps in other situations.
>
> Is there anything I can do to aid in getting this fixed in the distribution?

Can you please try updating and checking again (at least with the
"legacy installer", I'm not sure how Hans handles the modules for
lmtx)?

Mojca
___
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
___