[NTG-context] question about frames

2020-11-25 Thread Pablo Rodriguez
Dear list,

here is a minimal sample of frames to make up labels:

  \setuplayout[page]
  \starttext
  \dorecurse{16}{\dontleavehmode\dorecurse{4}
  {\framed[width=52.5mm, height=18.5mm, align=right]{\null}}\\}
  \stoptext

Which is the way to avoid any vertical space between frames?

Sorry, this may be obvious, but I don’t know how to do it now.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Jano Kula
Hello Hans!

On Wed, 25 Nov 2020 at 21:25, Hans Hagen  wrote:

> \startluacode
> context.stepwise (function()
>  context.step()
> end)
> \stopluacode
>

Thank you very much!

I was trying context.stepwise several times (and \dowithnextbox,
\nextboxht and
other things). I bet there was no example of empty context.step().

The usage was: stepping in TeX end with
context.step("\\texcommands\\with\\doubleslashes") without leaving Lua.
What is the purpose of empty context.step()? Knocking on TeX's door?

Jano
___
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] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Hans Hagen

On 11/25/2020 7:31 PM, Jano Kula wrote:

Hello!

I would like to set framed boxes, measure their dimensions and proceed 
based on the measurement. It is a combination of TeX and Lua ends.


  * Boxes are set on the TeX side. Stacking boxes (hbox, framed, vbox)
in Lua looked too complex.
  * The content of the inner box is set on the Lua side (some computations).

On TeX side boxes and their dimensions are accessible, but not at Lua 
side, until luacode is finished (iterations over boxes happen here). I 
would say Hans already named the problem in the list: /that is always 
tricky as what happens is postponing till the group ends/.


Do you have an idea how to expand the box sooner or would you use a 
different approach?


Sorry for longer MWE (attached also).

Thank you,
Jano

\def\StartBox{\setbox0=\hbox\bgroup% open hbox
                 \framed[frame=on]\bgroup% open framed
                     \vbox\bgroup% open vbox (\par needed)
              }
\def\StopBox{\egroup\egroup\egroup% close vbox, framed, hbox
              \setvariable{Test}{Height}{\the\ht0}%
             }%

\startluacode
ctx = context

function TestBox()
     ctx("TeX Box: ")    ctx.copy(false,0)ctx.par()
     ctx("TeX Getvar: ") ctx.getvariable("Test", "Height")ctx.par()
     var = tokens.getters.macro(tokens.getters.macro("??variables") .. 
"Test:Height")

     ctx("Lua Type: ")   ctx(type(var))ctx.par()
     ctx("Lua Value: ")  ctx(var)ctx.par()
end
\stopluacode

\starttext

\startluacode
     ctx.bold("First luacode (more boxes)")ctx.par()
     ctx.StartBox()
     ctx("AAA")ctx.par()
     ctx("BBB")ctx.par()
     ctx.StopBox()
     TestBox()
     ctx.StartBox()
     ctx("CCC")ctx.par()
     ctx.StopBox()
     TestBox()
\stopluacode

\blank[4*big]

\startluacode
     ctx.bold("Second luacode (last content of box0)")ctx.par()
     TestBox()
\stopluacode

\stoptext

\startluacode
 context.stepwise (function()
ctx.bold("First luacode (more boxes)")ctx.par()
ctx.StartBox()
ctx("AAA")ctx.par()
ctx("BBB")ctx.par()
ctx.StopBox()
context.step()
TestBox()
context.step()
ctx.StartBox()
ctx("CCC")ctx.par()
ctx.StopBox()
context.step()
TestBox()
context.step()
end)
\stopluacode

-
  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] Issue with tex.romannumeral output

2020-11-25 Thread Hans Hagen

On 11/25/2020 7:51 PM, Joseph wrote:

Dear list,

Following MWE outputs only ‘m’ characters (with latest upload).

ah, some left over from a test, i'll fix 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] Issue with tex.romannumeral output

2020-11-25 Thread Jairo A. del Rio
Hi, Joseph.

Something like this?

\starttext
\cldcontext{converters.convert("r",118):gsub("i$", "j") }
\stoptext

Jairo


El mié, 25 de nov. de 2020 a la(s) 14:30, Joseph (josephcan...@gmail.com)
escribió:

> Yes, I replace last ‘i’ with a ‘j’ in roman number, that’s to mimic old
> typesetting (very specific case for sure :-).
>
> Ie 118 -> cxiij
>
> Is there a way to do this with convertnumber anyhow ?
>
>
>
> *De : *Wolfgang Schuster 
> *Envoyé le :*mercredi 25 novembre 2020 20:11
> *À : *mailing list for ConTeXt users 
> *Cc : *Joseph 
> *Objet :*Re: [NTG-context] Issue with tex.romannumeral output
>
>
>
> Joseph schrieb am 25.11.2020 um 19:51:
>
> > Dear list,
>
> >
>
> > Following MWE outputs only ‘m’ characters (with latest upload).
>
>
>
> Is there a reason why you don't use the conversion mechanism?
>
>
>
> \starttext
>
>
>
> \convertnumber{r}{7}
>
>
>
> \cldcontext{converters.convert("r",7)}
>
>
>
> \stoptext
>
>
>
> 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
___


[NTG-context] RE : Issue with tex.romannumeral output

2020-11-25 Thread Joseph
Yes, I replace last ‘i’ with a ‘j’ in roman number, that’s to mimic old typesetting (very specific case for sure :-).Ie 118 -> cxiijIs there a way to do this with convertnumber anyhow ? De : Wolfgang SchusterEnvoyé le :mercredi 25 novembre 2020 20:11À : mailing list for ConTeXt usersCc : JosephObjet :Re: [NTG-context] Issue with tex.romannumeral output Joseph schrieb am 25.11.2020 um 19:51:> Dear list,> > Following MWE outputs only ‘m’ characters (with latest upload). Is there a reason why you don't use the conversion mechanism? \starttext \convertnumber{r}{7} \cldcontext{converters.convert("r",7)} \stoptext 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
___


Re: [NTG-context] Issue with LMTX and placeformula

2020-11-25 Thread Jairo A. del Rio
Hi, Jean-Philippe.

This seems to be a bug, indeed. In the meantime, you could use the
preferred \start ... \stop variant.

\starttext
\startplaceformula[F] % works
\startformula
a^2 + b^2 = c^2
\stopformula
\stopplaceformula
The \in[F] formula
\stoptext

Cordially,

Jairo

El mié, 25 de nov. de 2020 a la(s) 14:20, Jean-Philippe Rey (
jean-philippe@centralesupelec.fr) escribió:

> Dear list,
>
> \placeformula doesn't seem to work with LMTX.
>
> ==
> \starttext
> \placeformula[F]
> \startformula
> a^2 + b^2 = c^2
> \stopformula
>
> The \in[F] formula
>
> \stoptext
> ==
>
> Thank you for your help.
>
> --
> Jean-Philippe Rey
> jean-philippe@centralesupelec.fr
> 91192 Gif-sur-Yvette Cedex - France
> Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51
>
> ___
> 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] Some ligatures don't work in latest LMTX

2020-11-25 Thread Jairo A. del Rio
Now diacritics work again. Thank you for the fix!

Best regards,

Jairo

El mar, 24 de nov. de 2020 a la(s) 14:17, Jairo A. del Rio (
jairoadelr...@gmail.com) escribió:

>
>
> -- Forwarded message -
> De: Jairo A. del Rio 
> Date: mar, 24 de nov. de 2020 a la(s) 14:16
> Subject: Re: [NTG-context] Some ligatures don't work in latest LMTX
> To: Hans Hagen 
>
>
> Thank you very much, Hans. Ligatures now work. However, diacritics aren't
> properly placed even using "features=arabic" (they appear below letters in
> LMTX). ConTeXt MkIV still gives correct output.
>
> Thank you in advance.
>
> Jairo
>
> El mar, 24 de nov. de 2020 a la(s) 12:04, Hans Hagen (j.ha...@xs4all.nl)
> escribió:
>
>> On 11/24/2020 8:12 AM, Jairo A. del Rio wrote:
>> > |Hi everyone. The following example works fine with MkIV, but fails
>> with
>> > latest LMTX.
>> > |
>> >
>> > |To be specific, the lam-alif ligature isn't working. Compile with both
>> > to see differences.
>> > |
>> >
>> > |Majalla is a Windows font, so I guess it's available for testing:
>> > |
>> >
>> > |
>> > \mainlanguage[arabic] \definefontfeature [arabic]
>> > [mode=node,language=dflt,script=arab,
>> > init=yes,medi=yes,fina=yes,isol=yes,
>> > liga=yes,dlig=yes,rlig=yes,clig=yes,
>> > mark=yes,mkmk=yes,kern=yes,curs=yes]
>> > \definefontfamily[main][serif][sakkalmajalla][features=arabic]
>> > \setupbodyfont[main] \setupdirections[bidi=global] \starttext أهلاً
>> وسهلاً
>> > \stoptext
>> >
>> > |
>> >
>> > |Is that a bug or are more features to be specified? Thank you in
>> advance.
>> (you can probably best use the already define arabic featre because it
>> also does some contextual stuff)
>>
>> anyway, there was an issue with the state querying (isol etc) as side
>> effect of another thing .. fixed in next upload (there haven't been
>> fundamental changes to the font handling for quite a while)
>>
>> 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] Issue with LMTX and placeformula

2020-11-25 Thread Jean-Philippe Rey
Dear list,

\placeformula doesn't seem to work with LMTX.

==
\starttext
\placeformula[F]
\startformula
a^2 + b^2 = c^2
\stopformula

The \in[F] formula

\stoptext
==

Thank you for your help.

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


mfe-placeformula.log
Description: Binary data


mfe-placeformula.pdf
Description: Adobe PDF document


mfe-placeformula.tex
Description: Binary data
___
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] Issue with tex.romannumeral output

2020-11-25 Thread Wolfgang Schuster

Joseph schrieb am 25.11.2020 um 19:51:

Dear list,

Following MWE outputs only ‘m’ characters (with latest upload).


Is there a reason why you don't use the conversion mechanism?

\starttext

\convertnumber{r}{7}

\cldcontext{converters.convert("r",7)}

\stoptext

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] Issue with tex.romannumeral output

2020-11-25 Thread Joseph
Dear list, Following MWE outputs only ‘m’ characters (with latest upload).Thanks \startluacode function roman_num(n)   assert(type(n) == 'number')   context(tex.romannumeral(n))end \stopluacode \define[1]\RM{\ctxlua{roman_num(#1)}} \starttext\RM{1}\RM{7}\RM{10}\RM{70}\RM{100}\stoptext  
___
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] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Jano Kula
Hello!

I would like to set framed boxes, measure their dimensions and proceed
based on the measurement. It is a combination of TeX and Lua ends.

   - Boxes are set on the TeX side. Stacking boxes (hbox, framed, vbox) in
   Lua looked too complex.
   - The content of the inner box is set on the Lua side (some
   computations).

On TeX side boxes and their dimensions are accessible, but not at Lua side,
until luacode is finished (iterations over boxes happen here). I would say
Hans already named the problem in the list: *that is always tricky as what
happens is postponing till the group ends*.

Do you have an idea how to expand the box sooner or would you use a
different approach?

Sorry for longer MWE (attached also).

Thank you,
Jano

\def\StartBox{\setbox0=\hbox\bgroup% open hbox
\framed[frame=on]\bgroup% open framed
\vbox\bgroup% open vbox (\par needed)
 }
\def\StopBox{\egroup\egroup\egroup% close vbox, framed, hbox
 \setvariable{Test}{Height}{\the\ht0}%
}%

\startluacode
ctx = context

function TestBox()
ctx("TeX Box: ")ctx.copy(false,0)ctx.par()
ctx("TeX Getvar: ") ctx.getvariable("Test", "Height")ctx.par()
var = tokens.getters.macro(tokens.getters.macro("??variables") ..
"Test:Height")
ctx("Lua Type: ")   ctx(type(var))ctx.par()
ctx("Lua Value: ")  ctx(var)ctx.par()
end
\stopluacode

\starttext

\startluacode
ctx.bold("First luacode (more boxes)")ctx.par()
ctx.StartBox()
ctx("AAA")ctx.par()
ctx("BBB")ctx.par()
ctx.StopBox()
TestBox()
ctx.StartBox()
ctx("CCC")ctx.par()
ctx.StopBox()
TestBox()
\stopluacode

\blank[4*big]

\startluacode
ctx.bold("Second luacode (last content of box0)")ctx.par()
TestBox()
\stopluacode

\stoptext


texbox-complex.tex
Description: TeX document
___
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] RE : RE : RE : RE : Issue with grid

2020-11-25 Thread Hans Hagen

On 11/25/2020 6:10 PM, Joseph wrote:

\setupindenting[yes, next, 1em]

\starttext

\input knuth

\stoptext
hm, maybe i did somethign wrong. i'll check it, but indeed for now you 
can just use the patch


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] RE : upload

2020-11-25 Thread Floris van Manen



On 25/11/2020 16:48, Pablo Rodriguez wrote:

Just out of curiosity, could you fix your already installed ConTeXt version?


no, that did not work.
I just dumped the whole folder after a new folder/download seemed to 
work again.


.F
___
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] accessing tex variable on lua side

2020-11-25 Thread Jano Kula
Passing variables to Lua wikified
.
Jano

On Wed, 25 Nov 2020 at 14:33, Jano Kula  wrote:

> Hello Hans!
>
> On Wed, 25 Nov 2020 at 12:33, Hans Hagen  wrote:
>
>> Never give up ...
>>
>>  \meaning\getvariable
>>
>
> Thank you for reminding me of this one.
>
> print(">>",tokens.getters.macro(tokens.getters.macro("??variables") ..
>> "test:something")
>>
>
> Not that trivial, but does the job.
>
> Thanks,
> Jano
>
___
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] RE : RE : RE : RE : Issue with grid

2020-11-25 Thread Joseph
Thanks for the fix in today upload. Unfortunately the issue with paragraph indentation seems to be back (first paragraph is indented but given ‘next’ is given, it should not, or at least was not before) \setupindenting[yes, next, 1em]\starttext\input knuth\stoptext Do we still need to add the correction code Hans given earlier to workaround this ?Best De : JosephEnvoyé le :lundi 23 novembre 2020 16:29À : Hans Hagen; mailing list for ConTeXt usersObjet :[NTG-context] RE : RE : RE : Issue with grid Could reproduce this problem with ‘default’ font and even seeing it cumulating in same page. BTW, Perhaps you already fixed it locally. \showgrid\setuplayout[grid=both] \starttext\dorecurse{8}{\blank[line]Fin des psalmes.\blank[line]\input knuth }\stoptext De : Hans HagenEnvoyé le :lundi 23 novembre 2020 13:19À : Joseph; mailing list for ConTeXt usersObjet :Re: RE : RE : [NTG-context] Issue with grid On 11/23/2020 11:13 AM, Joseph wrote:> Yes, I refer to text not being aligned on the grid. This only happens if > \blank is used it seems, and text sits above where it’s supposed to (ie > amount of space being skipped vertically is smaller, ie \blank[line] > skips less than 1 line). I attach pdf I get. Could reduce MWE a bit.> > \showgrid> > \setuplayout[grid=both]> > \definefontfamily[mainfont][serif][EBGaramond][features=default]> > \setupbodyfont[mainfont, 9pt]> > \starttext> > \blank[line]Fin des psalmes.> > \blank[line]Fin des psalmes.> > \dorecurse{8}{\input knuth> > }> > \stoptextIt looks ok here< I also checked the latest eb (less fonts now it seems). 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] RE : upload

2020-11-25 Thread Pablo Rodriguez
On 11/24/20 7:22 PM, Floris van Manen wrote:
> On 24/11/2020 18:28, Pablo Rodriguez wrote:
>> I’m afraid you are getting an old version, since the newer one reads:
>>
>> mtx-context | ConTeXt Process Management 1.04
>> mtx-context |
>> mtx-context | main context file:
>> /home/ousia/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
>> mtx-context | current version: 2020.11.24 00:41
>> mtx-context | main context file:
>> /home/ousia/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl
>> mtx-context | current version: 2020.11.24 00:41
>
> Well I can see that there is two versions.

Hi Floris,

the two versions you see are related to the code split mentioned by Hans
(my guess).

MkXL is now independent from MkIV. The version is the same, but there
are two codebases in the same distribution.

Think of it as MkII and MkIV contained in ConTeXt Standalone.

> But when unzipping the new context-linux-64.zip (nov 24 00:24)
> then run the install script
> sh ./install.sh
> will not solve the issue...

You shouldn’t need to download context-linux-64.zip.

Running install.sh on Linux should work fine again. No need to remove
tex/texmf-*.tma, either.

> So context is not working anymore.
> Any hints?

Just out of curiosity, could you fix your already installed ConTeXt version?

Pablo
--
http://www.ousia.tk
___
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] Another LMTX small issue

2020-11-25 Thread Hans Hagen

On 11/25/2020 2:42 PM, Rik Kabel wrote:
The following code generates an error message in the log under LMTX 
2020.11.24 19:02 but compilation continues with no apparent issue.


\starttext
\framedtext{abc}
\stoptext

should be ok in next upload (later today)

-
  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] Another LMTX small issue

2020-11-25 Thread Rik Kabel
The following code generates an error message in the log under LMTX 
2020.11.24 19:02 but compilation continues with no apparent issue.


   \starttext
   \framedtext{abc}
   \stoptext

--
Rik

___
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] accessing tex variable on lua side

2020-11-25 Thread Jano Kula
Hello Hans!

On Wed, 25 Nov 2020 at 12:33, Hans Hagen  wrote:

> Never give up ...
>
>  \meaning\getvariable
>

Thank you for reminding me of this one.

print(">>",tokens.getters.macro(tokens.getters.macro("??variables") ..
> "test:something")
>

Not that trivial, but does the job.

Thanks,
Jano
___
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] Problem with gnuplot-module in lmtx

2020-11-25 Thread Christian Prim
Hi

with the latest version of lmtx (upgraded a minute ago), the
gnuplot-example from the wiki-page (for lmtx with externalfigure) doesn't
work. Error is:

tex error   > tex error on line 1 in file
virtual://buffer.svg-sin-inclusion.1: Undefined control sequence

 \font_basics_predefine #1#2->\font_basics_defined_font_yes
[#2]\gletcsname #1\expandafter \endcsname \csname
\v_font_identifier_basic \endcsname
 \predefinedfont [#1]->\ifcsname \??predefinedfont #1\endcsname
\lastnamedcs \else \font_basics_predefined {#1}
\fi
 \svgnormal ...ame \??svgfamily #1\endcsname \lastnamedcs \else
#1\fi -#2-#3}\predefinedfont [\s!spec :\p_font *\s!default \space @ 10bp]
\fi #4\egroup

 \svgstartlayer
\svgscaled{1}{arial}{normal}{normal}{\svgscaled{1}{arial}{normal}{normal}{\svghashed{1}}}
\svgstoplayer

 \

 \global \setbox \mptextbox \hbox {\clf_mptexttoks
}
...

 \includegnuplotsvgfile[./sin.svg]
\resetbuffer[svg-sin-inclusion]




The control sequence at the end of the top line of your error message was
never
\def'ed. You can just continue as I'll forget about whatever was undefined.


mtx-context | fatal error: return code: 256

here is the code:

gnuplot.tex:
\usemodule[gnuplot]

\starttext
\externalfigure[sin.gp][conversion=svg,width=4cm]
\stoptext

sin.gp:
set format xy "$%g$"

set title  'This is a plot of $y=\\sin(x)$'
set xlabel 'This is the $x$ axis'
set ylabel 'This is the $y$ axis'

plot [0:6.28] [0:1] sin(x)

The same code works on older lmtx (current version: 2020.09.20 23:02). It's
not on the same linux-machine, but both have the same gnuplot-version
installed.

Is this a bug?

Thanks
Christian
___
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] accessing tex variable on lua side

2020-11-25 Thread Hans Hagen

On 11/25/2020 11:54 AM, Jano Kula wrote:

Hello,

running in circles I have to give up on such an easy thing as passing a 
tex variable to lua (knowing everything is stored in lua).


\setvariable{test}{something}{}
\starttext
\getvariable{test}{something}\par
% how to access the variable on lua end?
\startluacode
-- var =
\stopluacode
\stoptext

Never give up ...

\starttext

\setvariable{test}{something}{}

\getvariable{test}{something}\par

\meaning\getvariable

\startluacode

print(">>",tokens.getters.macro(tokens.getters.macro("??variables") .. 
"test:something"))

\stopluacode

\def\MyVariableSomething{}

\startluacode
print(">>",tokens.getters.macro("MyVariableSomething"))
\stopluacode

\stoptext

-
  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] new upload

2020-11-25 Thread Hans Hagen

On 11/25/2020 10:12 AM, Giulio Bertellini wrote:


Great. Made a clean install from scratch and now metafun manual compiles 
great at first run:


mkiv lua stats  > used engine:*luametatex version: 2.0803, functionality 
level: 20201123*, format id: 547, compiler: gcc
mkiv lua stats  > tex properties: 740024 hash slots used of 2097152, 
approximate memory usage: 44 MB
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 140 MB, 
ctx: 123 MB, max: 123 MB, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 20.182 seconds, 396 processed pages, 396 
shipped pages, 19.621 pages/second
Looks ok to me given the thousands of graphics. What are the specs of 
the machine?


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] accessing tex variable on lua side

2020-11-25 Thread Jano Kula
Hello,

running in circles I have to give up on such an easy thing as passing a tex
variable to lua (knowing everything is stored in lua).

\setvariable{test}{something}{}
\starttext
\getvariable{test}{something}\par
% how to access the variable on lua end?
\startluacode
-- var =
\stopluacode
\stoptext

Thank you,
Jano
___
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] Error with spaces in Argument of \startproduct

2020-11-25 Thread Henning Hraban Ramm

> Am 24.11.2020 um 22:38 schrieb Wolfgang Schuster 
> :
> 
> Jannik Voges schrieb am 24.11.2020 um 22:24:
>> Hello,
>> as the title suggested, I get an error when using spaces in the argument of 
>> \startproduct. For example typesetting
>> \startproduct{foo bar}
> 
> You can have a filename with a space use
> 
>\startproduct [foo bar]
> 
> but you don't even need the filename when you replace it with *, e.g.
> 
>\startproduct *
> 
> or
> 
>\startproduct [*]

Since I learned about *, I used it extensively, but then I recognized, I can’t 
refer to the component filename with \currentcomponent any more. (I use it for 
filter-generated contents like LilyPond music.)
Just as a warning, in case you stumble upon that.

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
___


Re: [NTG-context] new upload

2020-11-25 Thread Giulio Bertellini
Great. Made a clean install from scratch and now metafun manual compiles
great at first run:

mkiv lua stats  > used engine:* luametatex version: 2.0803, functionality
level: 20201123*, format id: 547, compiler: gcc
mkiv lua stats  > tex properties: 740024 hash slots used of 2097152,
approximate memory usage: 44 MB
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 140 MB,
ctx: 123 MB, max: 123 MB, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 20.182 seconds, 396 processed pages, 396 shipped
pages, 19.621 pages/second

giulio b.


On Tue, Nov 24, 2020 at 8:07 PM Hans Hagen  wrote:

> Hi,
>
> A new upload. Mojca upgraded the build manager and we also updated some
> machines so all binaries (platforms) should be in sync now. (No binaries
> for apples M1 and microsofts SQ2 as we don't have these machines, so
> just good old intel and arm it is.)
>
> On my rusty laptop the luametatex manual takes between 10 and 10.5 sec
> (depending on load). On the raspberry pi 64 bit it takes 32.5 sec
> (ubuntu, ssd on usb 3). The Windows Linux Subsystem (version 1) takes
> some 11.5 seconds and the domotica fitlet with a low power AMD A10 needs
> 27.5 sec.) The ratios match measurements of a while ago. In the meantime
> the format file got smaller, memory more dynamic and the mem footprint
> also smaller. I expect a modern intel laptop cpu to need some 5 seconds
> and a decent desktop less but who knows. It's not easy to squeeze out
> more (the bottleneck is in the lua code as the (con)tex(t) code is
> pretty efficient so we pay a price for flexibility).
>
> (In the process I saw that I bugged the xetex logo but that has to wait
> for a next upload. Hardly critital I suspect.)
>
> 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
>
> ___
>
___
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
___