Re: [NTG-context] Multiple cases of unexpected behaviour in luametatex

2020-07-04 Thread Hans Hagen

On 7/4/2020 7:22 AM, Marcel Fabian Krüger wrote:


Anyway, tehre is another thing I am wondering about: In the latest
luametatex versions, error help strings do not seem to work like they used to.
Especially after \errhelp{some help}\errmessage{error} or
tex.error('fdfd', {'some help'}) in the 'handle_error_hook'
callback, tex.gethelptext returns nil. gethelptext still works for
errors triggered by TeX itself.


The error code has been rewritten but that already happened long ago, 
and i never came to hooking the errhelp into that (rather trivial but we 
never use that in context anyway), I'll look at it.



One completely different question:
When running luametatex (of course with appropriate format/lua init
script options) but without a TeX file or command, luametatex does not
expect interactive input but instead tries to read the input file
'luametatex.tex'. (Where luametatex does not seem to be hardcoded but
derived from argv[0]) Is there a way to overwrite this default input
file name?
No, as that is a side effect of the 'rest of the command line being read 
after an injected \input' and that is not the case in luametatex. There 
are a few command line arguments and --jobname is one of then. That bit 
won't change but one can deal with that in Lua (there is an input line 
callback so i might even drop the left over bits of those terminal 
related features).


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] ConTeXt installation on Windows 10

2020-07-04 Thread Hans Hagen

On 7/4/2020 12:18 PM, Jean-Pierre Delange wrote:

Thank you Wolfgang ! It works nicely.

Maybe it would be useful to change the wiki on ConteXt Garden (and other 
places where there is CTX help stuff ...). Such pages as here : 
https://wiki.contextgarden.net/ConTeXt_Standalone#Installation
At some point the installation will happen from the garden but we need 
to set it up (something being discussed).


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
___


[NTG-context] Converting a CSV file to a Lua table and Lua file

2020-07-04 Thread Otared Kavian
Hi all,

I have a bash script which converts a CSV file into a Lua table, which is then 
used in ConTeXt.
It works fine, but I wonder whether there is a code within LuaMetaTeX for doing 
this directly there (writing a new file which contains the Lua table). This 
would be more efficient and neater.

Thus a CSV file « example.csv » containing the lines:

X,Y,Z
0.05597,0.6612,0.8618
0.156804,0.8784,0.961
0.496804,0.8784,0.9324
0.176804,0.648,0.9643

would be converted and wriiten into a lua file « example.lua » containing the 
lines:

return{
--  {X,Y,Z},
{0.05597,0.6612,0.8618}
{0.156804,0.8784,0.961}
{0.496804,0.8784,0.9324}
{0.176804,0.648,0.9643}
}


Thanks in advance for any help: Otared K.
___
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] ConTeXt installation on Windows 10

2020-07-04 Thread Jean-Pierre Delange

Thank you Wolfgang ! It works nicely.

Maybe it would be useful to change the wiki on ConteXt Garden (and other 
places where there is CTX help stuff ...). Such pages as here : 
https://wiki.contextgarden.net/ConTeXt_Standalone#Installation


JP

Le 04/07/2020 à 10:47, Wolfgang Schuster a écrit :

Jean-Pierre Delange schrieb am 04.07.2020 um 10:33:

Hello List !

Quite a dummy question : usually I use to work with CTX on Linux, but 
I want to install it on Windows 10 x64. Unfortunately, while I 
download CTX packages from there 
http://standalone.contextgarden.net/setup2/ , the next step fails : 
C:\Users\adeim\Documents\context>first-setup.bat


The command returns this : "'rsync' is unknown as an internal or 
external command, an executable program or a command file. 'mtxrun' 
is not known as an internal or external command, an executable 
program or a command file."


The same thing occurs while context is as a file at the very root on 
c:\, or within c:\windows, or in C:\Users\adeim\Documents\context>


I suggest to use the installer from Hans website when you don't need 
pdfTeX.


http://www.pragma-ade.nl/install.htm

Wolfgang

___ 

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
___ 


___
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] ConTeXt installation on Windows 10

2020-07-04 Thread Wolfgang Schuster

Jean-Pierre Delange schrieb am 04.07.2020 um 10:33:

Hello List !

Quite a dummy question : usually I use to work with CTX on Linux, but 
I want to install it on Windows 10 x64. Unfortunately, while I 
download CTX packages from there 
http://standalone.contextgarden.net/setup2/ , the next step fails : 
C:\Users\adeim\Documents\context>first-setup.bat


The command returns this : "'rsync' is unknown as an internal or 
external command, an executable program or a command file. 'mtxrun' is 
not known as an internal or external command, an executable program or 
a command file."


The same thing occurs while context is as a file at the very root on 
c:\, or within c:\windows, or in C:\Users\adeim\Documents\context>


I suggest to use the installer from Hans website when you don't need pdfTeX.

http://www.pragma-ade.nl/install.htm

Wolfgang

___
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] ConTeXt installation on Windows 10

2020-07-04 Thread Jean-Pierre Delange

Hello List !

Quite a dummy question : usually I use to work with CTX on Linux, but I 
want to install it on Windows 10 x64. Unfortunately, while I download 
CTX packages from there http://standalone.contextgarden.net/setup2/ , 
the next step fails : C:\Users\adeim\Documents\context>first-setup.bat


The command returns this : "'rsync' is unknown as an internal or 
external command, an executable program or a command file. 'mtxrun' is 
not known as an internal or external command, an executable program or a 
command file."


The same thing occurs while context is as a file at the very root on 
c:\, or within c:\windows, or in C:\Users\adeim\Documents\context>


Many thanks for your help !

JP


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