Re: [NTG-context] Errors in source files return success

2021-12-15 Thread Hans Hagen via ntg-context

On 12/15/2021 9:16 PM, Marco Patzer via ntg-context wrote:

On Wed, 15 Dec 2021 20:48:29 +0100
Hans Hagen  wrote:


You can check in the next upload:

- The 'failure' that you saw was actually a real lua error because I
hadn't adapted some fancy, a very old 'around' 2006 feature, seldom
used as it's more 'an example of possibilities' code to luametatex
yet ... fwiw, we still share some lua files between engines.


Thanks for looking into that. I'll check the next upload.


- Afaiks you should now get return code 1 for other cases (say you
give \foo without meaning). It's a it tricky as this info has to pass
through several subsystems.


Hard TeX errors (like \undefined) already return 1.


- The runaway error is actually kind of special (there are a few
more) where the engine simply quits in confusion and doesn't exit
hard as error (often because tex could somehow recover). If needed I
can actually do a real error but it's not entirely compatible then
(not that i care that much about compatibility in these shady areas.)


I'd vote to handle those as hard errors because

   1) Luametatex isn't focused on compatibility.


ok, but let's first test this ... it's mostly cosmetics (read: come up 
wiht a better error message than the default sometimes unclear tex one)



   2) The user explicitly requested error reporting (by providing --errors).



   3) No one is recovering tex runs these days.
indeed, makes no sense (it all dates from (paper) terminals and 
night-time runs .. the good old 300 baud transfer days)


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] Archlinux: updated BPKGBUILD for luametatex

2021-12-15 Thread Hans Hagen via ntg-context

On 12/15/2021 11:38 PM, Michal Vlasák via ntg-context wrote:

On Wed Dec 15, 2021 at 9:32 PM CET, Aditya Mahajan via ntg-context wrote:



Oops, sorry, I completely forgot to mention that indeed what I mention
corresponds to the download link on the package page, which in general
"shouldn't be" in TDS format. Only packages whose authors upload their
own TDS zip have these .tds.zip files you found:
makes me wonder ... one could just install the plain and context related 
tikz files in


texmf-modules/tex/tikz/*

read: flatten the lot because i suppose that subdirecories don't really 
matter


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] Archlinux: updated BPKGBUILD for luametatex

2021-12-15 Thread Hans Hagen via ntg-context

On 12/15/2021 9:32 PM, Aditya Mahajan via ntg-context wrote:

On Wed, 15 Dec 2021, Michal Vlasák via ntg-context wrote:


On Wed Dec 15, 2021 at 7:28 PM CET, Hans Hagen via ntg-context wrote:

On 12/15/2021 6:22 PM, Aditya Mahajan via ntg-context wrote:

Hi all,

I am changing the way modules are installed in the ArchLinux aur package for 
luametatex.

https://aur.archlinux.org/packages/luametatex/

Earlier, I was just sym-linking to the modules installed by 
context-minimals-git package (which I also maintain). However, some packages 
there were out of date (in particular pgf/tikz). The new PKGBUILD installs the 
modules directly from CTAN.

The following modules are installed by default:
  filter, vim, visualcounter, pgf, pgfplots, circtuitikz

You can install other modules by adding them in the PKGBUILD.

I am not sure if anyone else actually uses this PKGBUILD to maintain an 
up-to-date installation of LMTX. If someone does use it, and wishes to add more 
modules to the default list, I'll be happy to do that.

Just curious ... we have this


mtxrun --script ctan --packages --pattern=tikz


which just gives info (at the time i made that the ctan api was bugged
as it mixed up xml and json keys, but i'm not sure if that was fixed of
became bug=feature for practical reasons)

i never came to a 'download option' because it was ot clear where to
download from .. are there zips?


Not sure if it's for every package, but should be just

 "http://mirrors.ctan.org/"; .. data.ctan.path .. ".zip"

in scripts.ctan.details.


This corresponds the "Download" link on the CTAN page of each package, but 
unfortunately, is not always in TDS format. For example, for pgf (which is locate at 
/graphics/pgf/base), we have

https://mirrors.ctan.org/graphics/pgf/base.zip

which lists all tex related files in base/tex sub-directory. The CTAN page 
(https://www.ctan.org/pkg/pgf) also has a field "TDS Archive", which lists:

http://mirrors.ctan.org/install/graphics/pgf/base/pgf.tds.zip

which is TDS compliant. The same is the case for circuitikz and pgfplots. So, 
it safer to use

 "http://mirrors.ctan.org/"; .. data.ctan.path .. "/" .. pkg_name .. 
"tds.zip"

But, for context packages, CTAN does nto have the tds zips (I guess because the 
default zip is already TDS compliant). For example:

 https://www.ctan.org/pkg/context-filter

has the "download" link at the bottom but not the "TDS Archive" link.

In the end, since I am only installing 4-5 packages, it is simpler to input the 
URLs but hand rather than write code to automate the logic.
sure, once you know what/where it's not that much work and I admit that 
I only downloaded tikz for testing the 'loading bug' and a few fonts 
during my tex life)


btw, when I fetched tikz a few days ago I could not fetch the zip from 
the browser because it complained about some security issue but the 
command line wget worked ok


another aspect of additional files is that I like to keep my system 
uncluttered so e.g when I install fonts we just need the open type files 
that I then install in texmf-fonts/fonts/data//* instead of 
bothering about forther structure (in fact it doesn't really matter much 
where files end up as long as there is some system behind 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] Archlinux: updated BPKGBUILD for luametatex

2021-12-15 Thread Michal Vlasák via ntg-context
On Wed Dec 15, 2021 at 9:32 PM CET, Aditya Mahajan via ntg-context wrote:
> > > i never came to a 'download option' because it was ot clear where to
> > > download from .. are there zips?
> > 
> > Not sure if it's for every package, but should be just
> > 
> > "http://mirrors.ctan.org/"; .. data.ctan.path .. ".zip"
> > 
> > in scripts.ctan.details.
>
> This corresponds the "Download" link on the CTAN page of each package,
> but unfortunately, is not always in TDS format. For example, for pgf
> (which is locate at /graphics/pgf/base), we have
>
> https://mirrors.ctan.org/graphics/pgf/base.zip
>
> which lists all tex related files in base/tex sub-directory. The CTAN
> page (https://www.ctan.org/pkg/pgf) also has a field "TDS Archive",
> which lists:
>
> http://mirrors.ctan.org/install/graphics/pgf/base/pgf.tds.zip
>
> which is TDS compliant. The same is the case for circuitikz and
> pgfplots. So, it safer to use
>
> "http://mirrors.ctan.org/"; .. data.ctan.path .. "/" .. pkg_name ..
> "tds.zip"
>
> But, for context packages, CTAN does nto have the tds zips (I guess
> because the default zip is already TDS compliant). For example:
>
> https://www.ctan.org/pkg/context-filter
>
> has the "download" link at the bottom but not the "TDS Archive" link.
>
> In the end, since I am only installing 4-5 packages, it is simpler to
> input the URLs but hand rather than write code to automate the logic.

Oops, sorry, I completely forgot to mention that indeed what I mention
corresponds to the download link on the package page, which in general
"shouldn't be" in TDS format. Only packages whose authors upload their
own TDS zip have these .tds.zip files you found:

From https://www.ctan.org/help/upload-pkg:
> The CTAN team has decided that packages on the archive shall remain in
> a browsing-friendly layout, i.e. the best format is to have all the
> files inside a directory.  Very large packages – such as modern font
> distributions – are improved by a single extra layer of directories.
>
> In parallel to the main directory tree, CTAN offers possibility to
> provide a TDS-structured ZIP file. Such a file will only be accepted
> as an addition to your upload, not as a replacement.
>
> This file is not necessary at all for simple packages. Thus it should
> be omitted for instance for normal LaTeX packages. This file might be
> required when the package is complex.

Michal Vlasák
___
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] Archlinux: updated BPKGBUILD for luametatex

2021-12-15 Thread Joseph Wright via ntg-context

On 15/12/2021 20:32, Aditya Mahajan via ntg-context wrote:

This corresponds the "Download" link on the CTAN page of each package, but 
unfortunately, is not always in TDS format. For example, for pgf (which is locate at 
/graphics/pgf/base), we have

https://mirrors.ctan.org/graphics/pgf/base.zip

which lists all tex related files in base/tex sub-directory. The CTAN page 
(https://www.ctan.org/pkg/pgf) also has a field "TDS Archive", which lists:

http://mirrors.ctan.org/install/graphics/pgf/base/pgf.tds.zip

which is TDS compliant. The same is the case for circuitikz and pgfplots. So, 
it safer to use

 "http://mirrors.ctan.org/"; .. data.ctan.path .. "/" .. pkg_name .. 
"tds.zip"

But, for context packages, CTAN does nto have the tds zips (I guess because the 
default zip is already TDS compliant). For example:

 https://www.ctan.org/pkg/context-filter

has the "download" link at the bottom but not the "TDS Archive" link.

In the end, since I am only installing 4-5 packages, it is simpler to input the 
URLs but hand rather than write code to automate the logic.


If only we could convince CTAN to have a common structure - this came up 
recently with Norbert re. supporting TeX Live! (cf. CRAN for example)


Joseph
___
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] Archlinux: updated BPKGBUILD for luametatex

2021-12-15 Thread Aditya Mahajan via ntg-context
On Wed, 15 Dec 2021, Michal Vlasák via ntg-context wrote:

> On Wed Dec 15, 2021 at 7:28 PM CET, Hans Hagen via ntg-context wrote:
> > On 12/15/2021 6:22 PM, Aditya Mahajan via ntg-context wrote:
> > > Hi all,
> > > 
> > > I am changing the way modules are installed in the ArchLinux aur package 
> > > for luametatex.
> > > 
> > > https://aur.archlinux.org/packages/luametatex/
> > > 
> > > Earlier, I was just sym-linking to the modules installed by 
> > > context-minimals-git package (which I also maintain). However, some 
> > > packages there were out of date (in particular pgf/tikz). The new 
> > > PKGBUILD installs the modules directly from CTAN.
> > > 
> > > The following modules are installed by default:
> > >  filter, vim, visualcounter, pgf, pgfplots, circtuitikz
> > > 
> > > You can install other modules by adding them in the PKGBUILD.
> > > 
> > > I am not sure if anyone else actually uses this PKGBUILD to maintain an 
> > > up-to-date installation of LMTX. If someone does use it, and wishes to 
> > > add more modules to the default list, I'll be happy to do that.
> > Just curious ... we have this
> >
> > >mtxrun --script ctan --packages --pattern=tikz
> >
> > which just gives info (at the time i made that the ctan api was bugged
> > as it mixed up xml and json keys, but i'm not sure if that was fixed of
> > became bug=feature for practical reasons)
> >
> > i never came to a 'download option' because it was ot clear where to
> > download from .. are there zips?
> 
> Not sure if it's for every package, but should be just
> 
> "http://mirrors.ctan.org/"; .. data.ctan.path .. ".zip"
> 
> in scripts.ctan.details.

This corresponds the "Download" link on the CTAN page of each package, but 
unfortunately, is not always in TDS format. For example, for pgf (which is 
locate at /graphics/pgf/base), we have

https://mirrors.ctan.org/graphics/pgf/base.zip

which lists all tex related files in base/tex sub-directory. The CTAN page 
(https://www.ctan.org/pkg/pgf) also has a field "TDS Archive", which lists:

http://mirrors.ctan.org/install/graphics/pgf/base/pgf.tds.zip

which is TDS compliant. The same is the case for circuitikz and pgfplots. So, 
it safer to use 

"http://mirrors.ctan.org/"; .. data.ctan.path .. "/" .. pkg_name .. "tds.zip"

But, for context packages, CTAN does nto have the tds zips (I guess because the 
default zip is already TDS compliant). For example:

https://www.ctan.org/pkg/context-filter

has the "download" link at the bottom but not the "TDS Archive" link.

In the end, since I am only installing 4-5 packages, it is simpler to input the 
URLs but hand rather than write code to automate the logic. 

Aditya

___
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] Errors in source files return success

2021-12-15 Thread Marco Patzer via ntg-context
On Wed, 15 Dec 2021 20:48:29 +0100
Hans Hagen  wrote:

> You can check in the next upload:
> 
> - The 'failure' that you saw was actually a real lua error because I 
> hadn't adapted some fancy, a very old 'around' 2006 feature, seldom
> used as it's more 'an example of possibilities' code to luametatex
> yet ... fwiw, we still share some lua files between engines.

Thanks for looking into that. I'll check the next upload.

> - Afaiks you should now get return code 1 for other cases (say you
> give \foo without meaning). It's a it tricky as this info has to pass
> through several subsystems.

Hard TeX errors (like \undefined) already return 1.

> - The runaway error is actually kind of special (there are a few
> more) where the engine simply quits in confusion and doesn't exit
> hard as error (often because tex could somehow recover). If needed I
> can actually do a real error but it's not entirely compatible then
> (not that i care that much about compatibility in these shady areas.)

I'd vote to handle those as hard errors because

  1) Luametatex isn't focused on compatibility.
  2) The user explicitly requested error reporting (by providing --errors).
  3) No one is recovering tex runs these days.

Marco
___
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] Archlinux: updated BPKGBUILD for luametatex

2021-12-15 Thread Michal Vlasák via ntg-context
On Wed Dec 15, 2021 at 7:28 PM CET, Hans Hagen via ntg-context wrote:
> On 12/15/2021 6:22 PM, Aditya Mahajan via ntg-context wrote:
> > Hi all,
> > 
> > I am changing the way modules are installed in the ArchLinux aur package 
> > for luametatex.
> > 
> > https://aur.archlinux.org/packages/luametatex/
> > 
> > Earlier, I was just sym-linking to the modules installed by 
> > context-minimals-git package (which I also maintain). However, some 
> > packages there were out of date (in particular pgf/tikz). The new PKGBUILD 
> > installs the modules directly from CTAN.
> > 
> > The following modules are installed by default:
> >  filter, vim, visualcounter, pgf, pgfplots, circtuitikz
> > 
> > You can install other modules by adding them in the PKGBUILD.
> > 
> > I am not sure if anyone else actually uses this PKGBUILD to maintain an 
> > up-to-date installation of LMTX. If someone does use it, and wishes to add 
> > more modules to the default list, I'll be happy to do that.
> Just curious ... we have this
>
> >mtxrun --script ctan --packages --pattern=tikz
>
> which just gives info (at the time i made that the ctan api was bugged
> as it mixed up xml and json keys, but i'm not sure if that was fixed of
> became bug=feature for practical reasons)
>
> i never came to a 'download option' because it was ot clear where to
> download from .. are there zips?

Not sure if it's for every package, but should be just

"http://mirrors.ctan.org/"; .. data.ctan.path .. ".zip"

in scripts.ctan.details.

E.g. from https://ctan.org/json/2.0/pkg/lm:

ctan.path = /fonts/lm
 => zip url = http://mirrors.ctan.org/fonts/lm.zip

I think it may be better to get packages from TeX Live. They are already
"built" (although this is probably not necessary for packages that
ConTeXt is interested in) and split into documentation, sources and
runtime files.

The TeXLive database:

http://mirrors.ctan.org/systems/texlive/tlnet/tlpkg/texlive.tlpdb
or
http://mirrors.ctan.org/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz

E.g:

name lm
category Package
revision 58637
shortdesc Latin modern fonts in outline formats
relocated 1
longdesc The Latin Modern family of fonts consists of 72 text fonts and
[...]
docfiles size=657
 RELOC/doc/fonts/lm/GUST-FONT-LICENSE.TXT
 RELOC/doc/fonts/lm/MANIFEST-Latin-Modern.TXT
 [...]
runfiles size=10645
 RELOC/fonts/afm/public/lm/lmb10.afm
 RELOC/fonts/afm/public/lm/lmbo10.afm
 [...]

Then:

http://mirrors.ctan.org/systems/texlive/tlnet/archive/lm.tar.xz
http://mirrors.ctan.org/systems/texlive/tlnet/archive/lm.doc.tar.xz

Some packages also have "srcfiles" and the source files tar:
http://mirrors.ctan.org/systems/texlive/tlnet/archive/X.source.tar.xz

PS: To be frank I didn't manage to even run the mtx-ctan script, seems
like a problem with locating libs-imp-curl.lmt, although util-jsn.lua is
fine and is also "require"d.

[...]
resolvers   | libraries | locating, level '1', method 'already loaded', 
name 'util-jsn'
resolvers   | libraries | locating, level '1', method 'preload table', 
name 'util-jsn'
resolvers   | libraries | locating, level '1', method 'lua variable 
format', name 'util-jsn'
resolvers   | libraries | registered lua format path 1: .
resolvers   | libraries | registered lua format path 2: 
/home/michal/texmf/tex/context/
resolvers   | libraries | registered lua format path 3: 
/home/michal/src/context/tex/texmf-project/tex/context/
resolvers   | libraries | registered lua format path 4: 
/home/michal/src/context/tex/texmf-fonts/tex/context/
resolvers   | libraries | registered lua format path 5: 
/home/michal/src/context/tex/texmf-local/tex/context/
resolvers   | libraries | registered lua format path 6: 
/home/michal/src/context/tex/texmf-modules/tex/context/
resolvers   | libraries | registered lua format path 7: 
/home/michal/src/context-mirror/tex/context/
resolvers   | libraries | registered lua format path 8: 
/home/michal/src/context/tex/texmf-linux-64/tex/context/
resolvers   | libraries | registered lua format path 9: 
/home/michal/src/context/tex/texmf/tex/context/
resolvers   | libraries | registered lua format path 10: 
/home/michal/texmf/tex/plain/base/
resolvers   | libraries | registered lua format path 11: 
/home/michal/src/context/tex/texmf-project/tex/plain/base/
resolvers   | libraries | registered lua format path 12: 
/home/michal/src/context/tex/texmf-fonts/tex/plain/base/
resolvers   | libraries | registered lua format path 13: 
/home/michal/src/context/tex/texmf-local/tex/plain/base/
resolvers   | libraries | registered lua format path 14: 
/home/michal/src/context/tex/texmf-modules/tex/plain/base/
resolvers   | libraries | registered lua format path 15: 
/home/michal/src/context-mirror/tex/plain/base/
resolvers   | libraries | reg

Re: [NTG-context] Errors in source files return success

2021-12-15 Thread Hans Hagen via ntg-context

On 12/15/2021 4:21 PM, Marco Patzer wrote:

Hi Hans,

a followup to our conversation in the meeting: here's an MWE
demonstrating that errors aren't passed on to the runner script,
except for "logs.errors=missing characters", which in fact do return
failure, all others do return success.

%% enables logging of errors same as --errors
\enabledirectives
   [logs.errors]

\starttext

%% ### semi simple group … entered at line
\startalignment [middle]
   foo

\stoptext

You can check in the next upload:

- The 'failure' that you saw was actually a real lua error because I 
hadn't adapted some fancy, a very old 'around' 2006 feature, seldom used 
as it's more 'an example of possibilities' code to luametatex yet ... 
fwiw, we still share some lua files between engines.


- Afaiks you should now get return code 1 for other cases (say you give 
\foo without meaning). It's a it tricky as this info has to pass through 
several subsystems.


- The runaway error is actually kind of special (there are a few more) 
where the engine simply quits in confusion and doesn't exit hard as 
error (often because tex could somehow recover). If needed I can 
actually do a real error but it's not entirely compatible then (not that 
i care that much about compatibility in these shady areas.)


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] Archlinux: updated BPKGBUILD for luametatex

2021-12-15 Thread kaddour kardio via ntg-context
Great 👍 thank you again Aditya

Le mer. 15 déc. 2021 à 19:29, Hans Hagen via ntg-context 
a écrit :

> On 12/15/2021 6:22 PM, Aditya Mahajan via ntg-context wrote:
> > Hi all,
> >
> > I am changing the way modules are installed in the ArchLinux aur package
> for luametatex.
> >
> > https://aur.archlinux.org/packages/luametatex/
> >
> > Earlier, I was just sym-linking to the modules installed by
> context-minimals-git package (which I also maintain). However, some
> packages there were out of date (in particular pgf/tikz). The new PKGBUILD
> installs the modules directly from CTAN.
> >
> > The following modules are installed by default:
> >  filter, vim, visualcounter, pgf, pgfplots, circtuitikz
> >
> > You can install other modules by adding them in the PKGBUILD.
> >
> > I am not sure if anyone else actually uses this PKGBUILD to maintain an
> up-to-date installation of LMTX. If someone does use it, and wishes to add
> more modules to the default list, I'll be happy to do that.
> Just curious ... we have this
>
>  >mtxrun --script ctan --packages --pattern=tikz
>
> which just gives info (at the time i made that the ctan api was bugged
> as it mixed up xml and json keys, but i'm not sure if that was fixed of
> became bug=feature for practical reasons)
>
> i never came to a 'download option' because it was ot clear where to
> download from .. are there zips?
>
> (i actually made it when i played with identifying potential fonts)
>
> 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
___


Re: [NTG-context] Archlinux: updated BPKGBUILD for luametatex

2021-12-15 Thread Hans Hagen via ntg-context

On 12/15/2021 6:22 PM, Aditya Mahajan via ntg-context wrote:

Hi all,

I am changing the way modules are installed in the ArchLinux aur package for 
luametatex.

https://aur.archlinux.org/packages/luametatex/

Earlier, I was just sym-linking to the modules installed by 
context-minimals-git package (which I also maintain). However, some packages 
there were out of date (in particular pgf/tikz). The new PKGBUILD installs the 
modules directly from CTAN.

The following modules are installed by default:
 filter, vim, visualcounter, pgf, pgfplots, circtuitikz

You can install other modules by adding them in the PKGBUILD.

I am not sure if anyone else actually uses this PKGBUILD to maintain an 
up-to-date installation of LMTX. If someone does use it, and wishes to add more 
modules to the default list, I'll be happy to do that.

Just curious ... we have this

>mtxrun --script ctan --packages --pattern=tikz

which just gives info (at the time i made that the ctan api was bugged 
as it mixed up xml and json keys, but i'm not sure if that was fixed of 
became bug=feature for practical reasons)


i never came to a 'download option' because it was ot clear where to 
download from .. are there zips?


(i actually made it when i played with identifying potential fonts)

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] Archlinux: updated BPKGBUILD for luametatex

2021-12-15 Thread Aditya Mahajan via ntg-context
Hi all,

I am changing the way modules are installed in the ArchLinux aur package for 
luametatex. 

https://aur.archlinux.org/packages/luametatex/

Earlier, I was just sym-linking to the modules installed by 
context-minimals-git package (which I also maintain). However, some packages 
there were out of date (in particular pgf/tikz). The new PKGBUILD installs the 
modules directly from CTAN.

The following modules are installed by default:
filter, vim, visualcounter, pgf, pgfplots, circtuitikz

You can install other modules by adding them in the PKGBUILD. 

I am not sure if anyone else actually uses this PKGBUILD to maintain an 
up-to-date installation of LMTX. If someone does use it, and wishes to add more 
modules to the default list, I'll be happy to do that.

Aditya
___
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] Errors in source files return success

2021-12-15 Thread Marco Patzer via ntg-context
Hi Hans,

a followup to our conversation in the meeting: here's an MWE
demonstrating that errors aren't passed on to the runner script,
except for "logs.errors=missing characters", which in fact do return
failure, all others do return success.

%% enables logging of errors same as --errors
\enabledirectives
  [logs.errors]

\starttext

%% ### semi simple group … entered at line
\startalignment [middle]
  foo

\stoptext

Marco
___
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] how to setup path of ConTeXtLMTX for MacVim?

2021-12-15 Thread Jeong Dal via ntg-context
Dear Jan-Erik,

Thank you for sharing your code.

It will be very helpful for me.
I hope that my problem is solved soon.

Thank you again.

Best regards,

Dalyoung


___
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] how to setup path of ConTeXtLMTX for MacVim?

2021-12-15 Thread Nicola via ntg-context
On 2021-12-14, Jeong Dal via ntg-context  wrote:
> Although you have explained about the way out of my problem,
> I am still in the problem.

I am maintaining the ConTeXt plugin for Vim, and I also use MacVim: feel
free to contact me off list to help you iron out your issues (email in
the source code of the plugin).

Nicola


___
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] Syntax highlighting using LMTX

2021-12-15 Thread Christoph Reller via ntg-context
By the way: there exists a module which is capable of highlighting Java:
https://modules.contextgarden.net/cgi-bin/module.cgi/ruid=12720986/action=view/id=82

Cheers, Christoph

Henri Menke via ntg-context  schrieb am Do., 2. Dez.
2021, 19:45:

> On Thu, 2021-12-02 at 12:07 -0500, Aditya Mahajan via ntg-context
> wrote:
> > On Thu, 2 Dec 2021, Thangalin via ntg-context wrote:
> >
> > > Hi all,
> > >
> > > There are a few technical hurdles with using the t-vim module in
> > > LMTX.
> > > First, users need to install the module using externally defined
> > > shell
> > > scripts. Second, it's awkward to communicate to users how to install
> > > it,
> > > especially for Windows users. Third, it likely requires installing
> > > vim, as
> > > a separate step. Fourth, making general-purpose XML setups that
> > > optionally
> > > rely on syntax highlighting when it is an optional install is a
> > > little
> > > laborious.
> > >
> > > If installing a module was as easy as "install.sh --module=t-vim"
> > > then that
> > > would leap over most hurdles.
> >
> > You can always install manually as follows:
> >
> > cd $TEXMFHOME
> > wget
> > https://mirrors.ctan.org/macros/context/contrib/context-{filter,vim}.zip
> > unzip context-{filter,vim}.zip
> >
> > > Although there'd still be a dependency on installing vim.
> >
> > Yes, that's a trade-off that the vim module makes. But, last time I
> > used Windows (some 10 years ago), installing vim was relatively easy.
> > Download the install from vim's website, and click next a couple of
> > times.
> >
> > > How would you go about creating a syntax highlighter for Java that
> > > can work
> > > with LMTX?
> >
> > I'll let others answer that. Had I known that, I wouldn't have written
> > a module to do syntax highlighting :-) In the end, it also depends on
> > how refined a syntax highlighter you want. Writing a simple keyword
> > based highlighter is relatively easy. See, for example, scite-context-
> > lexer-cpp.lua in the distribution, which is based on the CPP lexer in
> > scite.
>
> I wrote an answer here some time ago.
>
> https://tex.stackexchange.com/questions/333508/custom-pretty-printer-in-context
>
> Cheers, Henri
>
> >
> > Aditya
> > ___
> > 
> > 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
>
> ___
>
___
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] descriptions -- symbol between head and text

2021-12-15 Thread Denis Maier via ntg-context
Thanks, Wolfgang. That helped.

Denis

Von: Wolfgang Schuster 
Gesendet: Dienstag, 14. Dezember 2021 17:05
An: mailing list for ConTeXt users ; Denis Maier via 
ntg-context 
Cc: Maier, Denis Christian (UB) 
Betreff: Re: [NTG-context] descriptions -- symbol between head and text

Denis Maier via ntg-context schrieb am 14.12.2021 um 16:44:

Hi,

is there a way to get some text between the head and the text of a description. 
Enumerations have stoppers, but I couldn't find an equivalent setting for 
descriptions:

\definedescription
  [deflist]
  [alternative=hanging,
   width=fit,
   headcommand=\groupedcommand{[BEFORE] }{ [AFTER]}]

\starttext

\startdeflist{Knuth}
\input knuth
\stopdeflist

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