Re: [NTG-context] the system not working on Linux 32 with Context-lmtx
On 6/27/22 20:00, Henning Hraban Ramm via ntg-context wrote: > Am 27.06.22 um 19:10 schrieb Alain Delmotte via ntg-context: >> […] >> When I run from the console: >> context sanstitre-2.tex >> mtxrun | unknown script 'context.lua' or 'mtx-context.lua' >> […] >> What should I do? > […] > Try to rebuild the database: mtxrun --generate Hi Alain, as Hraban points out, "mtxrun --generate" is your friend. I can simply reproduce you error with: mtxrun --scripts cache --erase So I get: $ context mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' Everything works fine again after I run: mtxrun --generate. Before the first run after installation, this command is mandatory to build the database. I hope it helps, Pablo ___ 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] the system not working on Linux 32 with Context-lmtx
Am 27.06.22 um 19:10 schrieb Alain Delmotte via ntg-context: Hi, I installed a new disk and reinstalled the programs I was using before, including Context-lmtx It is on lubuntu 18.04 on an old 32bit machine. When I run from the console: context sanstitre-2.tex mtxrun | unknown script 'context.lua' or 'mtx-context.lua' When I run from TeXworks, I get only one line: startup error : no format file given, quitting So there is a step which didn't work. What should I do? Check your PATH. Try to rebuild the database: mtxrun --generate 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] the system not working on Linux 32 with Context-lmtx
Hi, I installed a new disk and reinstalled the programs I was using before, including Context-lmtx It is on lubuntu 18.04 on an old 32bit machine. When I run from the console: context sanstitre-2.tex mtxrun | unknown script 'context.lua' or 'mtx-context.lua' When I run from TeXworks, I get only one line: startup error : no format file given, quitting So there is a step which didn't work. What should I do? Thanks, Alain ___ 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] not working "mtxrun --scripts cache --erase"
On 6/27/22 11:35, Hans Hagen via ntg-context wrote: > On 6/27/2022 12:38 AM, Max Chernoff via ntg-context wrote: >>> I’m afraid that I have just found out that "mtxrun --scripts cache >>> --erase" doesn’t delete a single file from the cache. >> [...] >> If I change line 81 of >> >> texmf-context/scripts/context/lua/mtx-cache.lua >> [...] >> to >> if find(filename,"luametatex%-cache") then >> the problem appears to be fixed. > maybe can you test with > > LUATEXENGINE .. "%-cache" Hi Max and Hans, both approaches work. Many thanks for your help, Pablo ___ 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] not working "mtxrun --scripts cache --erase"
On 6/27/2022 12:38 AM, Max Chernoff via ntg-context wrote: I’m afraid that I have just found out that "mtxrun --scripts cache --erase" doesn’t delete a single file from the cache. Could anyone confirm the issue? I can confirm that the same thing happens here. If I change line 81 of texmf-context/scripts/context/lua/mtx-cache.lua from if find(filename,"luatex%-cache") then to if find(filename,"luametatex%-cache") then the problem appears to be fixed. maybe can you test with LUATEXENGINE .. "%-cache" no time now myself 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] Count (and limit) glyphs per line?
On 6/27/2022 12:32 AM, Max Chernoff via ntg-context wrote: On 2022-06-26 9:59 a.m., Benjamin Buchmuller wrote: I forgot about \leftskip. Replace "tex.hsize" with "tex.hsize - tex.leftskip.width" and everything should work properly. Using localhsize would also work, whenever it's non-zero. probably also compensate for hangindent and maybe even indent (Oh, and be really careful when using "context()" inside Lua engine callbacks. If you had done something like "context.vbox('some text')", you would have triggered the paragraph builder while inside the paragraph builder, which could lead to an infinite loop) maybe you can add a level counter, and only run when level = 1 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] [Bug] Two-column text: Larger top spacing in inline images
Not a bug, although it may be unexpected. It's a grid snapping thing. Try: \def\example{% Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. \startMPcode draw fullcircle scaled 1cm; \stopMPcode\ Lorem ipsum. Lorem ipsum. Lorem ipsum.} \starttext \example \startcolumns[grid=off] \example \stopcolumns \stoptext -- Max ___ 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 ___