Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Hans Hagen via ntg-context

On 10/23/2022 10:10 PM, Thomas A. Schmitz via ntg-context wrote:

On 10/23/22 21:54, Leah Neukirchen wrote:

FWIW I get the error too on linux64.


OK, found it. File 
lmtx/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg


is missing the lines

local common  = fonts.goodies.load("common-math.lfg")
local presets = common.mathematics.tweaks.presets

at the beginning of the file. However, math is typeset in Latin Modern. 
But that's for the math people to see...
Mikael: we have to make mkxl variants of typescript where we replace 
xits by stix .. for the todo.


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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context

On 10/23/22 21:54, Leah Neukirchen wrote:

FWIW I get the error too on linux64.


OK, found it. File 
lmtx/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg


is missing the lines

local common  = fonts.goodies.load("common-math.lfg")
local presets = common.mathematics.tweaks.presets

at the beginning of the file. However, math is typeset in Latin Modern. 
But that's for the math people to see...


All best

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Leah Neukirchen via ntg-context
"Thomas A. Schmitz via ntg-context"  writes:

> On 10/23/22 21:34, Otared Kavian via ntg-context wrote:
>> Hi Thomas,
>> Both your examples typeset fine with my installation of LMTX
>> (version 2022.10.22 11:23) on MacOS 11.7.
>> (Indeed you previous file test file reporting the background issue
>> is typeset fine also).
>> Best regards : Otared
>
> Thanks, Otared - that's bizarre. I just tried both on linux64 and
> macos (12.6, arm): run install.sh, reload font cache and run context
> without the luatex switch on the minimal example with the XITS Math
> font, and on both systems, I get the error that I have sent this
> afternoon. Can you try after rebuilding the font cache?

FWIW I get the error too on linux64.

-- 
Leah Neukirchenhttps://leahneukirchen.org/
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context

On 10/23/22 21:34, Otared Kavian via ntg-context wrote:

Hi Thomas,

Both your examples typeset fine with my installation of LMTX (version 
2022.10.22 11:23) on MacOS 11.7.
(Indeed you previous file test file reporting the background issue is typeset 
fine also).

Best regards : Otared


Thanks, Otared - that's bizarre. I just tried both on linux64 and macos 
(12.6, arm): run install.sh, reload font cache and run context without 
the luatex switch on the minimal example with the XITS Math font, and on 
both systems, I get the error that I have sent this afternoon. Can you 
try after rebuilding the font cache?


Thanks

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Otared Kavian via ntg-context
Hi Thomas,

Both your examples typeset fine with my installation of LMTX (version 
2022.10.22 11:23) on MacOS 11.7.
(Indeed you previous file test file reporting the background issue is typeset 
fine also).

Best regards : Otared

> On 23 Oct 2022, at 16:30, Thomas A. Schmitz via ntg-context 
>  wrote:
> 
> On 10/23/22 16:21, Mikael Sundqvist via ntg-context wrote:
>> It works here. Are you sure that you updated to the latest? (There was
>> a few updates lately)
>> /Mikael
> 
> I have just update to
> 
> current version: 2022.10.22 11:23
> 
> so I think that's the latest. Minimal example:
> 
> \definefontfamily [test] [serif] [Times]
> \definefontfamily [test] [sans]  [Helvetica]
> \definefontfamily [test] [mono]  [DejaVu Sans Mono] [rscale=0.9,features=none]
> \definefontfamily [test] [math]  [XITS Math]
> 
> \starttext
> 
> Test
> 
> \stoptext
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context

On 10/23/22 16:21, Mikael Sundqvist via ntg-context wrote:

It works here. Are you sure that you updated to the latest? (There was
a few updates lately)

/Mikael


I have just update to

current version: 2022.10.22 11:23

so I think that's the latest. Minimal example:

\definefontfamily [test] [serif] [Times]
\definefontfamily [test] [sans]  [Helvetica]
\definefontfamily [test] [mono]  [DejaVu Sans Mono] 
[rscale=0.9,features=none]

\definefontfamily [test] [math]  [XITS Math]

\starttext

Test

\stoptext

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Mikael Sundqvist via ntg-context
On Sun, Oct 23, 2022 at 4:00 PM Thomas A. Schmitz via ntg-context
 wrote:
>
> On 10/23/22 15:51, Hans Hagen wrote:
> > there was another fix yesterday (already uploaded)
> >
> > Hans
>
> Ah sorry, I missed that! It runs with my test file now, thanks! But my
> real file dies with this error:
>
> fatal lua error:
>
>  registered function call [1141]:
> ...x/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg:61: attempt
> to index a nil value (global 'presets')
> stack traceback:
>  ...x/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg:61:
> in main chunk
>  [C]: in function 'dofile'
>  ...mtx/tex/texmf-context/tex/context/base/mkiv/good-ini.lua:78:
> in function <...mtx/tex/texmf-context/tex/context/base/mkiv/good-ini.lua:68>
>  (...tail calls...)
>
> mtx-context | fatal error: return code: 1
>
> which appears to be related to the new math code?
>
> All best
>
> Thomas

It works here. Are you sure that you updated to the latest? (There was
a few updates lately)

/Mikael
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context

On 10/23/22 15:51, Hans Hagen wrote:

there was another fix yesterday (already uploaded)

Hans


Ah sorry, I missed that! It runs with my test file now, thanks! But my 
real file dies with this error:


fatal lua error:

registered function call [1141]: 
...x/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg:61: attempt 
to index a nil value (global 'presets')

stack traceback:
...x/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg:61: 
in main chunk

[C]: in function 'dofile'
...mtx/tex/texmf-context/tex/context/base/mkiv/good-ini.lua:78: 
in function <...mtx/tex/texmf-context/tex/context/base/mkiv/good-ini.lua:68>

(...tail calls...)

mtx-context | fatal error: return code: 1

which appears to be related to the new math code?

All best

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context

Here comes another one that works with the switch --luatex but not in lmtx:

\setuppapersize[A6,landscape][A6,landscape]

\startuseMPgraphic{ornament}
StartPage ;

save diff ;numeric diff;
diff = .3cm ;

save w; numeric w;
w = xpart (lrcorner Field[Text][Text] - llcorner Field[Text][Text]) - diff ;

save factor; numeric factor;
if NOfPages <= 1 :
  factor = w ;
else :
  factor = w/(NOfPages - 1) ;
fi ;

save p; path p ;
p = unitsquare xyscaled (diff,diff)
   shifted (xpart llcorner Field[Text][Text],0.85cm) ;

for i = 1 upto NOfPages:
  if RealPageNumber = i:
fill p xyscaled (0,2) shifted ( (i-1)*factor,-diff-0.85cm)
 withcolor blue ;
  else :
fill p shifted ( (i-1)*factor, 0)
 withcolor red ;
  fi ;
endfor ;
StopPage ;
\stopuseMPgraphic

\defineoverlay
  [Ornament]
  [\useMPgraphic{ornament}]

\setupbackgrounds[page]
 [state=repeat,
  background={Ornament}]

\starttext

\dorecurse {10} {Test \page}

\stoptext

All best

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] issue with variable font

2022-10-23 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample (using current latest from 22022.10.22 11:23):

  \definefontfeature
[book]
[axis={weight=700}]
  \definefontfamily[mainface][rm]
[Commissioner][features={default, book}]
  \setupbodyfont[mainface, 25pt]
  \starttext
  \startTEXpage[offset=1ex, align=center]
  EFT ΕΘΞ

  \blank[quarterline]
  \dontleavehmode
  \externalfigure[commissioner][width=.25\textwidth]
  \stopTEXpage
  \stoptext

The external figure is the output from Inkscape 1.1.2. I attach the
generated PDF document from the source above.

The variable font from Commissioner can be downloaded from
https://github.com/kosbarts/Commissioner/releases/download/1.000/Commissioner_1.000.zip.

ConTeXt seems to misread the font strokes (paths [or whatever the right
name might be]), since Inkscape has no problems with it.

Could anyone be so kind to confirm the issue?

Many thanks for your help,

Pablo


a.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___