Re: [NTG-context] BUG: module loading is broken

2020-01-13 Thread Hans Hagen

On 1/13/2020 2:26 AM, Henri Menke wrote:

Here is a patch.

--- a/opt/context/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.lua
+++ b/opt/context/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.lua
@@ -85,7 +85,7 @@ end
  function correspondence.file(environment,name)
  local environment = environment
  local name= name
-commands.uselibrary {
+resolvers.uselibrary {
  name = name,
  patterns = patterns[environment],
  action   = action,


i'll bring back the alias (kind of doesn't fit well) an dalso add

commands.loadlibrary(name,foundname,nointerference)

as possible action

Hans


On 1/13/20 2:19 PM, Henri Menke wrote:

Dear Hans,

Recent updates to ConTeXt broke my CV. This MWE

\usemodule[letter]
\starttext
\stoptext

fails with

...texmf-modules/tex/context/third/letter/base/s-cor-00.lua:88: attempt to call 
a nil value (field 'uselibrary')

Here are the steps by which I can reproduce on my machine:

rm -rf /opt/context/tex/texmf-cache
mtxrun --generate
context --make
context test.mkvi

Same for LMTX.

Cheers, Henri


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




--

-
  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] BUG: module loading is broken

2020-01-12 Thread Henri Menke
Here is a patch.

--- a/opt/context/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.lua
+++ b/opt/context/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.lua
@@ -85,7 +85,7 @@ end
 function correspondence.file(environment,name)
 local environment = environment
 local name= name
-commands.uselibrary {
+resolvers.uselibrary {
 name = name,
 patterns = patterns[environment],
 action   = action,

On 1/13/20 2:19 PM, Henri Menke wrote:
> Dear Hans,
> 
> Recent updates to ConTeXt broke my CV. This MWE
> 
> \usemodule[letter]
> \starttext
> \stoptext
> 
> fails with
> 
> ...texmf-modules/tex/context/third/letter/base/s-cor-00.lua:88: attempt to 
> call a nil value (field 'uselibrary')
> 
> Here are the steps by which I can reproduce on my machine:
> 
> rm -rf /opt/context/tex/texmf-cache
> mtxrun --generate
> context --make
> context test.mkvi
> 
> Same for LMTX.
> 
> Cheers, Henri
> 
___
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] BUG: module loading is broken

2020-01-12 Thread Henri Menke
Dear Hans,

Recent updates to ConTeXt broke my CV. This MWE

\usemodule[letter]
\starttext
\stoptext

fails with

...texmf-modules/tex/context/third/letter/base/s-cor-00.lua:88: attempt to call 
a nil value (field 'uselibrary')

Here are the steps by which I can reproduce on my machine:

rm -rf /opt/context/tex/texmf-cache
mtxrun --generate
context --make
context test.mkvi

Same for LMTX.

Cheers, Henri
___
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
___