[NTG-context] If you really absolutely need more capacity, you can ask a wizard to enlarge me

2021-09-08 Thread Marcus Vinicius Mesquita via ntg-context
Dear list,

In the MWE below, ConTeXt lmtx throws an error with the message in the
title:

\starttext
\startluacode

local upperlimit = 9

context.starttabulate({ "|l|l|l|" })
for i=1,upperlimit do
context.NC()
context("word 1")
context.NC()
context("word 2")
context.NC()
context("word 3")
context.NC()
context.AR()
end
context.stoptabulate()

\stopluacode
\stoptext

But it compiles with no problems with MKIV.

context version: 2021.09.06 11:47

How to avoid this with lmtx?

TIA
Marcus Vinicius
-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] io.loaddata() or buffer.assigns()

2021-09-08 Thread Thierry Horsin via ntg-context
Hi everybody
Are there any type of files that is required by io.loaddata or/and 
buffers.assign ?

The following code works pretty well if there is no compilation problem by g++.
But it fails, i.e. \typebuffer[Mybuffer], does not produce anything if g++ 
fails (due to some errors in the cpp)
I have checked that err.cpp is well and truly created when g++ fails. 
\startluacode
io.savedata("complx.h",buffers.getcontent("MyBuffer1"))
io.savedata("complx.cpp",buffers.getcontent("MyBuffer2"))
io.savedata("testcomplx.cpp",buffers.getcontent("MyBuffer3"))
local l=os.execute("g++ -O3 -Wall -o testcomplx testcomplx.cpp 
complx.cpp 2> err.cpp")
if l==0 then
os.execute("./testcomplx > testcomplx.tmp")
buffers.assign("MyBuffer",io.loaddata("testcomplx.tmp"))
else
buffers.assign("Mybuffer",io.open("err.cpp","r"))

end
\stopluacode

Many thanks
Thierry
___
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] zint barcode module on LMTX/MacOS

2021-09-08 Thread Floris van Manen via ntg-context



On 08/09/2021 19:08, Henning Hraban Ramm wrote:

I just checked on my Linux laptop with a new installation, and it worked 
exactly like this.

Did you check with --luatex (i.e. MkIV)?

What’s your ConTeXt version? You left out this essential piece of information.



$ context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/home/vm/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv

mtx-context | current version: 2021.09.06 11:47
mtx-context | main context file: 
/home/vm/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl

mtx-context | current version: 2021.09.06 11:47



this is the results form --generate:

$ mtxrun --generate
resolvers   | resolving | variable 'SELFAUTOLOC' set to 
'/home/vm/context/tex/texmf-linux-64/bin'
resolvers   | resolving | variable 'SELFAUTODIR' set to 
'/home/vm/context/tex/texmf-linux-64'
resolvers   | resolving | variable 'SELFAUTOPARENT' set to 
'/home/vm/context/tex'

resolvers   | resolving | variable 'TEXMFCNF' set to ''
resolvers   | resolving | variable 'TEXMF' set to '/home/vm/context'
resolvers   | resolving | variable 'TEXOS' set to 'texmf-linux-64'
resolvers   | resolving |
resolvers   | resolving | using configuration specification 
'home:texmf/web2c;selfautoparent:/texmf-local/web2c;selfautoparent:/texmf-context/web2c;selfautoparent:/texmf-dist/web2c;selfautoparent:/texmf/web2c'

resolvers   | resolving |
resolvers   | resolving | looking for regular 'texmfcnf.lua' on 
given path '/home/vm/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on 
given path '/home/vm/context/tex/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on 
given path '/home/vm/context/tex/texmf-context/web2c' from specification 
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on 
given path '/home/vm/context/tex/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on 
given path '/home/vm/context/tex/texmf/web2c' from specification 
'selfautoparent:/texmf/web2c'
resolvers   | resolving | found regular configuration file 
'/home/vm/context/tex/texmf/web2c/texmfcnf.lua'

resolvers   | resolving |
resolvers   | resolving | loading configuration file 
'selfautoparent:/texmf/web2c/texmfcnf.lua'

resolvers   | resolving |
resolvers   | resolving | locating list of '/home/vm/context' 
(runtime) (tree:home/vm/context)
resolvers   | methods | resolving, method 'locators', how 'uri', 
handler 'tree', argument 'tree:home/vm/context'

resolvers   | trees | locator '/home/vm/context' found
resolvers   | resolving | hash '/home/vm/context' appended
resolvers   | resolving |
resolvers   | methods | resolving, method 'generators', how 'uri', 
handler 'file', argument '/home/vm/context'
resolvers   | expansions | scanning path '/home/vm/context', branch 
'/home/vm/context'
resolvers   | expansions | 5750 files found on 358 directories with 
207 uppercase remappings

resolvers   | resolving |
resolvers   | resolving | not saving runtime tree '/home/vm/context'
mtxrun  |
mtxrun  | elapsed lua time: 0.031 seconds



___
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] zint barcode module on LMTX/MacOS

2021-09-08 Thread Henning Hraban Ramm via ntg-context


> Am 07.09.2021 um 23:27 schrieb Floris van Manen :
> 
> Hello Hraban,
> 
> 
> On 07/09/2021 21:03, Henning Hraban Ramm via ntg-context wrote:
>> Since I got zint running (thanks, Hans!), there’s now a wiki page:
>> https://wiki.contextgarden.net/Barcodes
> 
> 
> I followed the instructions on the wiki, but still get an empty page.
> I compiled the libzint.so and installed it into /usr/local/lib/
> 
> Given my local path definitions:
> export TEXMF=$HOME/context
> export LMTXPATH=$TEXMF/tex/texmf-linux-64/bin
> export PATH=$LMTXPATH:$PATH
> export TEXROOT=$TEXMF/ctx
> 
> I placed a symbolic link in the folder
> 
> $LMTXPATH/lib/luametatex/zint/libzint.so -> /usr/local/lib/libzint.so
> 
> did the mtxrun --generate
> 
> Trying the example:
> 
> \usemodule[zint]
> \starttext
> \barcode[alternative=isbn, text=9783865419026, width=4cm]
> \barcode[alternative=qr code, text={https://wiki.contextgarden.net}, 
> width=3cm]
> \stoptext
> 

I just checked on my Linux laptop with a new installation, and it worked 
exactly like this.

Did you check with --luatex (i.e. MkIV)?

What’s your ConTeXt version? You left out this essential piece of information.

Hraban
___
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] (no subject)

2021-09-08 Thread Marcus Vinicius Mesquita via ntg-context
Dear list,

Let's say we have two types of synonyms:

\definesynonyms[Abrev][Abrevs][\AbrevExp][\AbrevComp]
\definesynonyms[Rubrica][Rubricas][\RubricaExp][\RubricaComp]

Is it possible to combine them in a unique list of merged Abrevs and
Rubricas?

TIA

Marcus Vinicius

-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] modules not found

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

On 9/8/2021 12:53 PM, Hans van der Meer via ntg-context wrote:
Further investigation seems to indicate that the module files are not 
found when initiating the context run from another directory. Though 
previously this was no problem.
I have moved the whole ConTeXt machinery from $HOME to another volume. 
Could that cause the problem? Allthough I set their location in the .bashrc.

# The current version of the ConTeXt luametatex in use:
CONTEXTLMTX=/Volumes/REALM/TeX/context
export CONTEXTLMTX
PATH=$CONTEXTLMTX/tex/texmf-osx-64/bin:$PATH ; export PATH


did you run

mtxrun --generate

after the move



dr. Hans van der Meer


On 8 Sep 2021, at 12:46, Hans van der Meer via ntg-context 
mailto:ntg-context@ntg.nl>> wrote:


Here is something I do not understand about \usemodule.

My modules are in two places because I wanted development and 
production separated:

(1) Volume/TeX/texmf/modules/
(2) Volume/TeX/texmf/modules-new/

Unexpected and suddenly loading files from the first directory does 
not occur any longer: modules > 'hvdm-tak' is not found
But modules from modules-new load without a hitch: modules > 
'hvdm-load' is loaded


I have discard the caches and rebuilt them to no avail. Then trying 
mtxrun --locate filename does not show any location not even from the 
files that are loaded, just an empty line.
What happens inside\usemodule to cause this? I confess being baffled. 
And how to convince ConTeXt to find all my modules?


dr. Hans van der Meer


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




--

-
  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] modules not found

2021-09-08 Thread Hans van der Meer via ntg-context
Further investigation seems to indicate that the module files are not found 
when initiating the context run from another directory. Though previously this 
was no problem.
I have moved the whole ConTeXt machinery from $HOME to another volume. Could 
that cause the problem? Allthough I set their location in the .bashrc.
# The current version of the ConTeXt luametatex in use:
CONTEXTLMTX=/Volumes/REALM/TeX/context
export CONTEXTLMTX
PATH=$CONTEXTLMTX/tex/texmf-osx-64/bin:$PATH ; export PATH

dr. Hans van der Meer


> On 8 Sep 2021, at 12:46, Hans van der Meer via ntg-context 
>  wrote:
> 
> Here is something I do not understand about \usemodule.
> 
> My modules are in two places because I wanted development and production 
> separated:
> (1) Volume/TeX/texmf/modules/
> (2) Volume/TeX/texmf/modules-new/
> 
> Unexpected and suddenly loading files from the first directory does not occur 
> any longer: modules > 'hvdm-tak' is not found
> But modules from modules-new load without a hitch:  modules > 'hvdm-load' is 
> loaded
> 
> I have discard the caches and rebuilt them to no avail. Then trying mtxrun 
> --locate filename does not show any location not even from the files that are 
> loaded, just an empty line.
> What happens inside \usemodule to cause this? I confess being baffled. And 
> how to convince ConTeXt to find all my modules?
> 
> dr. Hans van der Meer
> 
> 
> ___
> 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
___


[NTG-context] modules not found

2021-09-08 Thread Hans van der Meer via ntg-context
Here is something I do not understand about \usemodule.

My modules are in two places because I wanted development and production 
separated:
(1) Volume/TeX/texmf/modules/
(2) Volume/TeX/texmf/modules-new/

Unexpected and suddenly loading files from the first directory does not occur 
any longer: modules > 'hvdm-tak' is not found
But modules from modules-new load without a hitch:  modules > 'hvdm-load' is 
loaded

I have discard the caches and rebuilt them to no avail. Then trying mtxrun 
--locate filename does not show any location not even from the files that are 
loaded, just an empty line.
What happens inside \usemodule to cause this? I confess being baffled. And how 
to convince ConTeXt to find all my modules?

dr. Hans van der Meer


___
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] zint barcode module on LMTX/MacOS

2021-09-08 Thread Axel Kielhorn via ntg-context


> Am 07.09.2021 um 21:03 schrieb Henning Hraban Ramm via ntg-context 
> :
> 
> Since I got zint running (thanks, Hans!), there’s now a wiki page:
> 
> https://wiki.contextgarden.net/Barcodes

I followed you instructions and got zint running with MacPorts:

Zint version 2.10.0

And it looks like LMTX finds it:

system  > 
system  > ConTeXt  ver: 2021.09.03 18:49 LMTX  fmt: 2021.9.3  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './hw265', input './hw265.tex', result 
'./hw265'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './hw265.tex'
modules > using user prefixed file 'libs-imp-zint'
modules > 'zint' is loaded
open source > level 2, order 3, name 
'/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl'
resolvers   > lua > loading file 
'/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.lmt'
 succeeded
close source> level 2, order 3, name 
'/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded

optional> using library 
'/usr/local/texlive/LMTX2021/tex/texmf-osx-64/bin/lib/luametatex/zint/libzint.so‘
^^^

backend > xmp > using file 
'/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1, subpage 1
close source> level 1, order 3, name './hw265.tex'
system  > start used files
system  > text: hw265
system  > stop used files
system  > start used files
system  >1: filename=publ-imp-default.lua filetype=lua 
foundname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua
 
fullname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua
 usedmethod=database
system  >2: filename=cont-new.mkxl filetype=tex 
foundname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl
 
fullname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl
 usedmethod=database
system  >3: filename=lang-exc.lua filetype=lua 
foundname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua
 
fullname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua
 usedmethod=database
system  >4: filename=lang-us.lua filetype=lua 
foundname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua
 
fullname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua
 usedmethod=database
system  >5: 
filename=/Users/axel/Documents/Text/Dokumente_ConTeXt/Beispiele 
ConTeXt/hw265.tex format=tex 
foundname=/Users/axel/Documents/Text/Dokumente_ConTeXt/Beispiele 
ConTeXt/hw265.tex 
fullname=/Users/axel/Documents/Text/Dokumente_ConTeXt/Beispiele 
ConTeXt/hw265.tex usedmethod=direct
system  >6: filename=libs-imp-zint.mkxl filetype=tex 
foundname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl
 
fullname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl
 usedmethod=database
system  >7: filename=libs-imp-zint.lmt filetype=tex 
foundname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.lmt
 
fullname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.lmt
 usedmethod=database
system  >8: filename=lm.lfg filetype=tex 
foundname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg
 
fullname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg
 usedmethod=database
system  >9: filename=lmroman12-regular filetype=otf format=otf 
foundname=/usr/local/texlive/LMTX2021/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
 
fullname=/usr/local/texlive/LMTX2021/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
 usedmethod=database
system  >   10: filename=latinmodern-math.otf filetype=opentypefonts 
foundname=/usr/local/texlive/LMTX2021/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf
 
fullname=/usr/local/texlive/LMTX2021/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf
 usedmethod=database
system  >   11: filename=DejaVuSansMono.ttf