Re: [NTG-context] synctex problem

2022-10-15 Thread Gavin via ntg-context
Hi Alan,

I have an almost identical set-up (M1, MacOS12.6, TexShop, useAlternatePath, 
useConTeXtSyncParser). One important difference, I use

sync method: SyncTeX (TeX ≥ 2010)

I’d recommend trying that. There are some other differences in my setup that 
probably are not important. At the beginning of my files (products and 
components)I only use the two lines

% !TEX useAlternatePath
% !TEX useConTeXtSyncParser

not the root and TS-program lines, but I don’t think that matters for your 
SynchTeX issue. Here is the engine I use for LMTX, just in case it has 
something helpful for you.

#!/bin/zsh
#
# This engine uses TeXShop's "Alternate Path", which is the variable "$3" below.
# Set the TeXShop's alternate path to your ConTeXt installation in
#  TeXShop's Preferences -> Engine -> Alternate Path
# Start ConTeXt source files with the lines:
#  % !TEX useAlternatePath
#  % !TEX useConTeXtSyncParser

export OSFONTDIR=/Library/Fonts/:/System/Library/Fonts:$HOME/Library/Fonts
export PATH="$3":$PATH
mtxrun --autogenerate --script context --synctex "$1”

I put that long comment in the engine because I share it with collaborators.

Hope that helps!

Gavin



> On Oct 15, 2022, at 12:00 PM, Alan Bowen via ntg-context  
> wrote:
> 
> At the top of a single source file, I have the lines:
> % !TEX root = prd_Aestimatio-0301.tex % the root file
>   % !TEX TS-program = ConTeXt2021
>   % !TEX useAlternatePath
>   % !TEX useConTeXtSyncParser
>\setupsynctex[state=start, method=max]
> 
> Syncing works well enough—though I can see no difference between method =min 
> and method=max, both highlight only a few words and not the entire text to be 
> synced, but perhaps my expectations are out of line.
> 
> When I have these lines at the top of a component file and typeset the 
> product file, I get a rootfile.synctex file, but syncing itself goes awry. 
> Nothing happens when I sync from the PDf file to the component file, and when 
> I sync from the component file to the product PDF, I get the correct page but 
> no highlighting.
> 
> I am using TeXShop ver. 5.03— 
>   sync method: Both Pdf Sync and Search
>   Alternative Path: 
> /Users/bowen1/Applications/LuaMetaTeX/tex/texmf-osx-arm64/bin
> 
> and  also the latest ConteXt (ver.  2022.10.15 10:37 LMTX)  under macOS 12.6 
> (Apple M1 Pro chip)
> 
> Note: the product file has only one  component file for now.
> 
> I suspect that I am missing something but am not sure where to look or what 
> to do now. Any guidance will be much appreciated.
> 
> Alan
> 
> ___
> 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
> ___

___
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] synctex problem

2022-10-15 Thread Alan Bowen via ntg-context
At the top of a single source file, I have the lines:
% !TEX root = prd_Aestimatio-0301.tex  % the root file
% !TEX TS-program = ConTeXt2021
% !TEX useAlternatePath
% !TEX useConTeXtSyncParser
   \setupsynctex[state=start, method=max]

Syncing works well enough—though I can see no difference between method
=min and method=max, both highlight only a few words and not the entire
text to be synced, but perhaps my expectations are out of line.

When I have these lines at the top of a component file and typeset the
product file, I get a rootfile.synctex file, but syncing itself goes awry.
Nothing happens when I sync from the PDf file to the component file, and
when I sync from the component file to the product PDF, I get the correct
page but no highlighting.

I am using TeXShop ver. 5.03—
sync method: Both Pdf Sync and Search
Alternative
Path: /Users/bowen1/Applications/LuaMetaTeX/tex/texmf-osx-arm64/bin

and  also the latest ConteXt (ver.  2022.10.15 10:37 LMTX)  under macOS
12.6 (Apple M1 Pro chip)

Note: the product file has only one  component file for now.

I suspect that I am missing something but am not sure where to look or what
to do now. Any guidance will be much appreciated.

Alan
___
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] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2022-10-15 Thread Cron Daemon via ntg-context
receiving incremental file list
 ./
 ctan.lsr
 document-2.htm
 download-1.htm
 download-2.htm
 logo-ade.png
 logo-cts.png
 logo-pod.png
 rss.xml
 show-fil.pdf
 context/latest/
 context/latest/cont-mpd.zip
 context/latest/cont-ppc.zip
 context/latest/cont-sci.zip
 context/latest/cont-tmf.zip
 context/latest/cont-tst.7z
 context/latest/cont-tst.tar.xz
 context/latest/cont-tst.zip
 
 sent 101,303 bytes  received 19,954,567 bytes  4,456,860.00 bytes/sec
 total size is 448,888,880  speedup is 22.38


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2022-10-15.12
172026305   
/var/www/aanhet.net/context//htdocs/archives/context-2022-10-15.12/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2022-10-15.12/current
18956262
/var/www/aanhet.net/context//htdocs/archives/context-2022-10-15.12/alpha
126707516   
/var/www/aanhet.net/context//htdocs/archives/context-2022-10-15.12/beta
39496   
/var/www/aanhet.net/context//htdocs/archives/context-2022-10-15.12
39496   total
___
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] new upload

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

On 10/15/2022 10:48 AM, Pablo Rodriguez via ntg-context wrote:

On 10/15/22 09:41, Hans Hagen via ntg-context wrote:

On 10/14/2022 4:14 PM, Pablo Rodriguez via ntg-context wrote:

[...]
Many thanks for the new version, Hans.

I have discovered that it includes in
tex/texmf-context/source/luametatex what should be the LMTX source
(about 11MB).


It zips to 2 MB and totals to less of a picture on a fancy phone ...


Many thanks for your reply, Hans.

At least on my system, I think every file is downloaded uncompressed.

With a low speed connection (here, the service isn’t great all the
time), having to download over 400 files is a killer.


as has been pointed out, you only download the changed files and those 
are not many


when sources are not included some complain, when they are others 
com-plain ...



The storage space on disk is irrelevant, I totally agree with you.

I wish I could say that large updates such as these weren’t a problem in
some cases. But sometimes this isn’t true here.

With incremental updates, the downloading process takes way shorter in
subsequent updates (as Alan pointed out). But the first time it might
take too much (so the script quits).


just run twice as the script will pick up


the idea is to provide the user with all he needs as archive so no
dependencies (apart from a compiler). Also by including the source we
can sort of guaranteed that you get what you expect to work with the tex
files (no interference with distribution patches our of our control). It
has always been part of the plan with luametatex. So ... it will not be
optional.


I asked to make this optional not to avoid having the source, but to be
able to complete the update process.


i guess a few extra fonts are more demanding, actually the number of 
fonts in the installation dropped (for now) so that compensates the 
larger source tree



I’m not extremely confident, but I hope I will manage to update ConTeXt
at the office (next working day).

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

2022-10-15 Thread Pablo Rodriguez via ntg-context
On 10/15/22 09:41, Hans Hagen via ntg-context wrote:
> On 10/14/2022 4:14 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> Many thanks for the new version, Hans.
>>
>> I have discovered that it includes in
>> tex/texmf-context/source/luametatex what should be the LMTX source
>> (about 11MB).
>
> It zips to 2 MB and totals to less of a picture on a fancy phone ...

Many thanks for your reply, Hans.

At least on my system, I think every file is downloaded uncompressed.

With a low speed connection (here, the service isn’t great all the
time), having to download over 400 files is a killer.

The storage space on disk is irrelevant, I totally agree with you.

I wish I could say that large updates such as these weren’t a problem in
some cases. But sometimes this isn’t true here.

With incremental updates, the downloading process takes way shorter in
subsequent updates (as Alan pointed out). But the first time it might
take too much (so the script quits).

> the idea is to provide the user with all he needs as archive so no
> dependencies (apart from a compiler). Also by including the source we
> can sort of guaranteed that you get what you expect to work with the tex
> files (no interference with distribution patches our of our control). It
> has always been part of the plan with luametatex. So ... it will not be
> optional.

I asked to make this optional not to avoid having the source, but to be
able to complete the update process.

I’m not extremely confident, but I hope I will manage to update ConTeXt
at the office (next working day).

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 / 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] ToC filler dots not aligned

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

On 10/14/2022 9:50 PM, Pablo Rodriguez via ntg-context wrote:

On 10/14/22 17:29, Schister, Roman via ntg-context wrote:

Hi,

If I typeset a table of contents with the latest version of ConTeXt
on my computer (2022.09.11 20:44 LMTX), the filler dots used in list
alternative C aren’t aligned [...]

Hi Roman,

I compiled your code with version from 2022.09.11 20:44.

I attach an overlay of the results from both LuaMeTaTeX (in red) and
LuaTeX (in darkgreen).

It seems that MkIV is doing fine, but LMTX isn’t aligning the dots (for
some reason unknown to me).

Latest from 2022.10.14 10:16 gives exactly the same result for LMTX, and
MkIV doesn’t work for me.

fixed in next upload

-
  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] (any) neovim users?

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

On 10/14/2022 5:00 PM, Alan Braslau via ntg-context wrote:

A recent upgrade of the editor neovim leads to the following error
when using %&context identification at the head of .tex source files.


Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: 
/usr/local/share/nvim/runtime/lua/vim/filetype/detect.lua:1248: attempt to 
index local 'format' (a number
  value)
stack traceback:
 /usr/local/share/nvim/runtime/lua/vim/filetype/detect.lua:1248: in 
function 'ft'
 vim/filetype.lua:2362: in function 'dispatch'
 vim/filetype.lua:2522: in function 'match'
 /usr/local/share/nvim/runtime/filetype.lua:12: in function


Has anyone encountered this? (perhaps it has been fixed upstream?)

looks like some wrong alias elsewhere ... add

local format = string.format

before that error line

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

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

On 10/14/2022 4:14 PM, Pablo Rodriguez via ntg-context wrote:

On 10/14/22 10:21, Hans Hagen via ntg-context wrote:

Hi,

I uploaded a new version. Apart from a few fixes / extensions already
mentioned here (or known to those who wanted it) the main changes are in
the math goodie files (work in progress, we will clean them up later) as
part of improving the rendering of math.


Many thanks for the new version, Hans.

I have discovered that it includes in
tex/texmf-context/source/luametatex what should be the LMTX source
(about 11MB).
It zips to 2 MB and totals to less of a picture on a fancy phone .. tre 
idea is to provide the user with all he needs as archive so no 
dependenccies (apart from a compiler). Also by including the source we 
can sort of guaranteed that you get what you expect to work with the tex 
files (no interference with distribution patches our of our control). It 
has always been part of the plan with luametatex.  So .. it wil not be 
optional.


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] issues with current latest

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

On 10/15/2022 12:33 AM, Max Chernoff via ntg-context wrote:

Hi Alan,

On Fri, 2022-10-14 at 16:20 -0600, Alan Braslau wrote:

On Fri, 14 Oct 2022 15:38:52 -0600
Max Chernoff via ntg-context  wrote:


$ context --luatex test.tex
mtx-context | redirect luametatex -> luatex: luatex --luaonly 
"/opt/context/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context --luatex 
test.tex --redirected
mtxrun  | unknown script 'mtx-context.lua' or
'mtx-mtx-context.lua'

This happens when the luatex cache is cleared and the context format is not 
rebuilt properly.


Do you know how to rebuild the format? I've tried the following to no
avail:
normally context will remake automatically (you can try to touch the 
context.mk* file)


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] issues with current latest

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

On 10/15/2022 12:46 AM, Max Chernoff via ntg-context wrote:

On Fri, 2022-10-14 at 16:38 -0600, Alan Braslau wrote:

On Fri, 14 Oct 2022 16:33:12 -0600
Max Chernoff  wrote:


Do you know how to rebuild the format? I've tried the following to no
avail:

--script mtx-context


I believe that you have to give the full script path here to mtxrun


Thanks! Running:

luatex --luaonly "/opt/context/tex/texmf-linux-64/bin/mtxrun.lua" --script 
/opt/context/tex/texmf-context/scripts/context/lua/mtx-context.lua --luatex --make 
--redirected

has fixed the format issue.

I now unfortunately have a new issue (probably for Hans or Mikael).
Running:

context --luatex empty.tex

where "empty.tex" is:


\starttext
\null
\stoptext

gives me this output:

mtx-context | redirect luametatex -> luatex: luatex --luaonly 
"/opt/context/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context --luatex 
empty.tex --redirected

resolvers   | formats | executing runner 'run luatex format': /opt/context/tex/texmf-linux-64/bin/luatex --jobname="empty" --fmt=/home/max/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.fmt --lua=/home/max/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui cont-yes.mkiv --c:currentrun=1 --c:engine="luatex" --c:fulljobname="./empty.tex" --c:input="./empty.tex" --c:kindofrun=1 --c:luatex --c:maxnofruns=9 --c:redirected --c:texmfbinpath="/opt/context/tex/texmf-linux-64/bin"

This is LuaTeX, Version 1.15.1 (TeX Live 2023/dev)
 system commands enabled.
open source > level 1, order 1, name 
'/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
job > passes > version mismatch: 1.33 <> 1.32
system  >
system  > ConTeXt  ver: 2022.10.14 10:16 MKIV  fmt: 2022.10.14  
int: english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 
'/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name 
'/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'empty', input './empty', result 'empty'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name 
'/home/max/Projects/lua-widow-control/nogit-testing/empty.tex'
fonts   > preloading latin modern fonts (second stage)

lua error   > lua error on line 1 in file /home/max/Projects/lua-widow-control/nogit-testing/empty.tex:

...tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg:100: attempt to index a nil value (field 'subsets')

stack traceback:
...tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg:100: in 
field 'moveitalics'
.../context/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg:103: in 
main chunk
[C]: in function 'dofile'
...ext/tex/texmf-context/tex/context/base/mkiv/good-ini.lua:78: in function 
<...ext/tex/texmf-context/tex/context/base/mkiv/good-ini.lua:68>
(...tail calls...)

1 >>  \starttext

2 \null
3 \stoptext
4

mtx-context | fatal error: return code: 256


The same file compiles just fine with LMTX.

i'll add a dummy subtable in math-act.lua:

local tweaks   = { subsets = { } }
mathematics.tweaks = tweaks


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
___