Re: [NTG-context] new units

2023-05-07 Thread Hans Hagen via ntg-context

On 5/7/2023 4:43 AM, Michael Urban via ntg-context wrote:

If you are going to introduce new units, you should at least include the 
Potrzebie, invented by teenager Donald Knuth and published in the humor 
magazine Mad Magazine #33.  The system is based on the thickness of Mad 
Magazine #26, equal to 2.2633484517438173216473 mm.
See the Wikipedia entry for 'potrzebie' for more information, or search for 
suitable images.

Honestly, I don't know how Knuth resisted putting this in plain TeX.

Plain TeX is a format so ther it would be easy, just define

\newdimen\potrzebie  \potrzebie = 422042sp

but for a real unit you need to adapt the original engine and that will 
not happen because it's in bug fix only mode.


Anyway, you can try it in lmtx:

\startTEXpage[offset=1dk]
\number\dimexpr1dk
\stopTEXpage

As introduced in:

https://www.tug.org/TUGboat/tb42-3/tb132hagen-dk.pdf

Like the ts is makes a nice offset.

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 units

2023-05-07 Thread Mikael Sundqvist via ntg-context
Hi Michael,

On Sun, May 7, 2023 at 4:43 AM Michael Urban via ntg-context
 wrote:
>
> If you are going to introduce new units, you should at least include the 
> Potrzebie, invented by teenager Donald Knuth and published in the humor 
> magazine Mad Magazine #33.  The system is based on the thickness of Mad 
> Magazine #26, equal to 2.2633484517438173216473 mm.
> See the Wikipedia entry for 'potrzebie' for more information, or search for 
> suitable images.
>
> Honestly, I don't know how Knuth resisted putting this in plain TeX.

It is already there for a while, as dk.

/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] new units

2023-05-06 Thread Alan Braslau via ntg-context
On Sat, 06 May 2023 16:10:31 -0800
skyhorse--- via ntg-context  wrote:

> 
> 
> Hans Hagen via ntg-context  wrote:
> >..
> > Oh, so a bug, I'll fix the message. Not really a unit but then, feet
> > is also not one.
> >
> 
> That is incorrect.  Feet is an establish and proper unit of
> measurement, which consists of 12 inches.  It is used by, at least,
> several hundred million people.  It can be said that the ability to
> grok and manipulate fractions has many benefits, which the metric
> system sorely lacks.

The inch is properly defined as *exactly* 2.54cm.
So the foot is a proper unit defined as 12*2.54cm.

Manipulating fractions, I stated, is the entire point of Imperial
measurements.

Now go figure: Physical Review Letters once objected to my publishing a
graph without units on the abscissa. I satisfied the editor by adding
$[m\times m^{-1}]$ (my graph was in radians).

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
___


Re: [NTG-context] new units

2023-05-06 Thread Michael Urban via ntg-context
If you are going to introduce new units, you should at least include the 
Potrzebie, invented by teenager Donald Knuth and published in the humor 
magazine Mad Magazine #33.  The system is based on the thickness of Mad 
Magazine #26, equal to 2.2633484517438173216473 mm.
See the Wikipedia entry for 'potrzebie' for more information, or search for 
suitable images.

Honestly, I don't know how Knuth resisted putting this in plain TeX.
___
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 units

2023-05-06 Thread Hans Hagen via ntg-context

On 5/6/2023 11:53 PM, Arthur Rosendahl via ntg-context wrote:

On Thu, May 04, 2023 at 10:01:25AM +0200, Hans Hagen via ntg-context wrote:

These units can be used in the current upload. In a next upload the "19 feet
max" message that tex issues when reaching a maximum will be adapted to a
more realistic variant. (Actually, because tex has no foot unit, we could as
well replace that with a more impressive little feet unit but we forgot to
measure the smallest foot present which i guess was about 3 es so the limit
is then some 75 bare theodores.)


   I measured the theodore at 13cm, so that puts the limit at about 45
theodores, actually.
Oh, so a bug, I'll fix the message. Not really a unit but then, feet is 
also not one.


\newdimension\theodore \theodore=5es

You can also abuse the eu unit:

\eufactor50 % times ts

x\hskip1eu x


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 units

2023-05-06 Thread Arthur Rosendahl via ntg-context
On Thu, May 04, 2023 at 10:01:25AM +0200, Hans Hagen via ntg-context wrote:
> These units can be used in the current upload. In a next upload the "19 feet
> max" message that tex issues when reaching a maximum will be adapted to a
> more realistic variant. (Actually, because tex has no foot unit, we could as
> well replace that with a more impressive little feet unit but we forgot to
> measure the smallest foot present which i guess was about 3 es so the limit
> is then some 75 bare theodores.)

  I measured the theodore at 13cm, so that puts the limit at about 45
theodores, actually.

Best,

Arthur
___
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] upload

2023-05-06 Thread Hans Hagen via ntg-context

On 5/6/2023 3:33 PM, Henning Hraban Ramm via ntg-context wrote:

Am 06.05.23 um 09:46 schrieb Hans Hagen via ntg-context:

On 5/5/2023 11:21 PM, Aditya Mahajan via ntg-context wrote:

Would it make sense to add a similar script to install context 
modules from modules.contextgarden.net?
I can look into that but then I need to slightly adapt it with a 
command line argument (no big deal, i just need rain outside and/or 
new cd's).


Not sure yet how to name the script.


Why not install-module(s), or just install?

mtxrun --script install --modules=filter,simpleslides

mtxrun --script install-modules --list=filter,simpleslides

i actually decided on the second one but not finished yet

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 units

2023-05-06 Thread Hans Hagen via ntg-context

On 5/6/2023 6:45 PM, Alan Braslau wrote:

The whole point of the so-called "imperial" units is to be based on
fractions, not decimal. May I suggest that we use \sqrt2 as the basis
of our fractions, so as to push the limits of calculation and precision
(that are handled well in the new lmtx engine).

Also, on this day of coronation, post-Brexit, I believe that the ConTeXt
community should get behind the promotion of obscure Imperial units,
relegating the metric system to scientists who have no choice but to
adhere to the Système International.

Alan (who could not participate in the discussions of the committee of
four)


Well, the Polish oversight seemed to a agree and the team was awarded by 
arthur who donated cute "Let's make TeX little again" hats, but more 
about that later. The unit was applied by the main presenter when the 
big cake got cut into pieces measuring 4es ^ 2 which i admit is a bit 
less than 4in ^2.


But, if you're really into old units we can measure your feet and 
replace "max 19 feet" message by "max 20 braslaus".


Actually you can do a sqrt:

\starttext
\the\floatexpr\pfsqrt 2\relax

\the\pfsqrt 2\relax

\scratchdimen\floatexpr\pfsqrt 2\relax
\the\scratchdimen

\scratchdimen\pfsqrt 2\relax
\the\scratchdimen
\stoptext

but you already knew that.

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 units

2023-05-06 Thread Alan Braslau via ntg-context
The whole point of the so-called "imperial" units is to be based on
fractions, not decimal. May I suggest that we use \sqrt2 as the basis
of our fractions, so as to push the limits of calculation and precision
(that are handled well in the new lmtx engine).

Also, on this day of coronation, post-Brexit, I believe that the ConTeXt
community should get behind the promotion of obscure Imperial units,
relegating the metric system to scientists who have no choice but to
adhere to the Système International.

Alan (who could not participate in the discussions of the committee of
four)


On Thu, 4 May 2023 10:01:25 +0200
Hans Hagen via ntg-context  wrote:

> Hi,
> 
> We now officially have three new units. These were officially
> introducd at the 2023 BachoTeX meeting in a presentation where the
> chair of the four person strong team also did the final live
> callibration (using the edithorial callibration instrument made for
> that purpose). An upcoming article in TB will explain the details of
> the process and also a careful mathematical annalysis of how we
> reached the right value with a high precission. The actual
> implementation is the most boring part.
> 
> \starttext
> 
> \startTEXpage[offset=1ts]
>  Hello World!
> 
>  \the\dimexpr 1ts
> 
>  \the\dimexpr 1es
> 
>  \the\dimexpr 1eu
> 
>  \eufactor20
> 
>  \the\dimexpr 1eu
> \stopTEXpage
> 
> \stoptext
> 
> The es (Edith) unit replaces the inch, and the ts (Tove) is one
> tenths of than (just like we have cm and mm). The eu (European Unit)
> is an adaptive one that defaults to 10 ts == 1es and can be
> multiplied by setting the \eufactor (default 10) which makes it
> possible to define layouts that easilly scale to different output
> media (important for the mobile phone / table generation).
> 
> This means that MWE that use inches will likely no longer be
> considered valid and probably will be dealt with slower (or just
> ignored).
> 
> These units can be used in the current upload. In a next upload the
> "19 feet max" message that tex issues when reaching a maximum will be 
> adapted to a more realistic variant. (Actually, because tex has no
> foot unit, we could as well replace that with a more impressive
> little feet unit but we forgot to measure the smallest foot present
> which i guess was about 3 es so the limit is then some 75 bare
> theodores.)
> 
> Hans

___
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] How to show bibliography only for the chapter?

2023-05-06 Thread Alan Braslau via ntg-context
On Sat, 6 May 2023 12:09:10 + (UTC)
Joel via ntg-context  wrote:

> I am trying to place a bibliography at the end of the chapter, not
> the end of the whole document. I tried various code such as
> `criteria=bychapter` etc., but it will only show the entire
> bibliography for the whole document. How can I limit the list to the
> material falling within that chapter?
> 
>     \starttext
>     \startchapter[title={Robots}]
>     \input knuth    \cite[source1]
>     \placelistofpublications[criteria=bychapter]
>     \placelistofpublications[way=bychapter]
> \placelistofpublications[criteria=chapter] \stopchapter
>     \stoptext
> 
> --Joel

\placelistofpublications [criterium=chapter]

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
___


Re: [NTG-context] upload

2023-05-06 Thread Henning Hraban Ramm via ntg-context

Am 06.05.23 um 09:46 schrieb Hans Hagen via ntg-context:

On 5/5/2023 11:21 PM, Aditya Mahajan via ntg-context wrote:

Would it make sense to add a similar script to install context modules 
from modules.contextgarden.net?
I can look into that but then I need to slightly adapt it with a command 
line argument (no big deal, i just need rain outside and/or new cd's).


Not sure yet how to name the script.


Why not install-module(s), or just install?

mtxrun --script install --modules=filter,simpleslides

mtxrun --script install-modules --list=filter,simpleslides

?

Hraban
___
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] upload

2023-05-06 Thread Hans Hagen via ntg-context

On 5/5/2023 11:21 PM, Aditya Mahajan via ntg-context wrote:


Would it make sense to add a similar script to install context modules from 
modules.contextgarden.net?
I can look into that but then I need to slightly adapt it with a command 
line argument (no big deal, i just need rain outside and/or new cd's).


Not sure yet how to name the script.

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

2023-05-05 Thread Aditya Mahajan via ntg-context
On Fri, 5 May 2023, Hans Hagen via ntg-context wrote:

> Hi,
> 
> I uploaded a version that provides
> 
>   mtxrun --script install-tikz
> 
> that when run in the tex root (.../tex) will fetch some tikz stuff from ctan
> and puts is in texmf-modules. After installing it wipes the files that make no
> sense (or can interfere or might be harmful) but I didn't check that
> extensively. Finally it remakes the file dastabase. I don't know if more needs
> to be installed. It assumes curl to be present (as library or binary). It's a
> rather stupid script but (I guess) good enough for what it is supposed to do.

Works fine at my end. I also adapted the arch AUR package to use the 
install-tikz option (earlier I was installing these packages by wget as part of 
the installation process). 

> I can add more (like other modules) in which case it will be renamed.

Would it make sense to add a similar script to install context modules from 
modules.contextgarden.net? 

Thanks,
Aditya
___
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] upload

2023-05-05 Thread Hans Hagen via ntg-context

Hi,

I uploaded a version that provides

  mtxrun --script install-tikz

that when run in the tex root (.../tex) will fetch some tikz stuff from 
ctan and puts is in texmf-modules. After installing it wipes the files 
that make no sense (or can interfere or might be harmful) but I didn't 
check that extensively. Finally it remakes the file dastabase. I don't 
know if more needs to be installed. It assumes curl to be present (as 
library or binary). It's a rather stupid script but (I guess) good 
enough for what it is supposed to do.


I can add more (like other modules) in which case it will be renamed.

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
___


[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-05-05 Thread Cron Daemon via ntg-context
receiving incremental file list
 ./
 ctan.lsr
 document-2.htm
 download-1.htm
 download-2.htm
 install.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
 general/manuals/
 general/manuals/lowlevel-alignments.pdf
 general/manuals/lowlevel-boxes.pdf
 general/manuals/lowlevel-buffers.pdf
 general/manuals/lowlevel-characters.pdf
 general/manuals/lowlevel-conditionals.pdf
 general/manuals/lowlevel-expansion.pdf
 general/manuals/lowlevel-grouping.pdf
 general/manuals/lowlevel-inserts.pdf
 general/manuals/lowlevel-localboxes.pdf
 general/manuals/lowlevel-loops.pdf
 general/manuals/lowlevel-macros.pdf
 general/manuals/lowlevel-marks.pdf
 general/manuals/lowlevel-paragraphs.pdf
 general/manuals/lowlevel-registers.pdf
 general/manuals/lowlevel-scope.pdf
 general/manuals/lowlevel-security.pdf
 general/manuals/lowlevel-tokens.pdf
 general/manuals/lowlevel.pdf
 
 sent 116,090 bytes  received 24,970,324 bytes  3,344,855.20 bytes/sec
 total size is 449,288,816  speedup is 17.91


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2023-05-05.19
121136127   
/var/www/aanhet.net/context//htdocs/archives/context-2023-05-05.19/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2023-05-05.19/current
247885540   
/var/www/aanhet.net/context//htdocs/archives/context-2023-05-05.19
247885540   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] tikz + lmtx

2023-05-04 Thread Hans Hagen via ntg-context

On 5/4/2023 11:12 PM, Aditya Mahajan via ntg-context wrote:

Does that mean that these will be now included as part of the lmtx install?


no, i'm not going to bloat that one, but there will be a

mtxrun --script install-tikz


Not being a tikz user I have no preferences but we can add some test files to
the test suite if needed.


It may be good to add some basic files (e.g., the ones that I sent to you 
off-list) so that we may know if these packages break again.

yes, i already added thse

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] tikz + lmtx

2023-05-04 Thread Aditya Mahajan via ntg-context
On Thu, 4 May 2023, Hans Hagen via ntg-context wrote:

> On 4/28/2023 6:08 AM, Aditya Mahajan via ntg-context wrote:
> > Hi all,
> > 
> > For a few months now, all features of tikz have not been working with LMTX.
> > After help from Hans and a bit of trial and error, I think that figured out
> > what was going wrong with the catcodes in m-tikz: Since the texcatcodes are
> > different from what tikz expects, the catcodes have to be set inside
> > \starttikzpicture (in addition to before the loading of tikz files, which
> > was already being done).
> > 
> > I am attaching the working m-tikz.mkxl file.
> > 
> > I have tested this on my course notes, which make extensive use of simple
> > tikz block diagrams and pgfplots graphs. Perhaps others who were having
> > issues with tikz could test if this fixes everything and, if so, we can add
> > this to the distribution.
> So, what is needed from tikz?
> 
> "graphics/pgf/base/pgf.tds.zip",
> "graphics/pgf/contrib/pgfplots.tds.zip",
> "graphics/pgf/contrib/circuitikz.tds.zip",
> 
> Is there more that should be installed as reasonable basic set? 

I believe that these are the most popular ones. 

> I made a script that does fetch/installs it (and also wipes latex / plain
> /useless stuff afterwards including some shell etc scripts as we don't want
> those either - security risk etc -).

Does that mean that these will be now included as part of the lmtx install?

> Not being a tikz user I have no preferences but we can add some test files to
> the test suite if needed.

It may be good to add some basic files (e.g., the ones that I sent to you 
off-list) so that we may know if these packages break again.

Aditya
___
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] tikz + lmtx

2023-05-04 Thread Hans Hagen via ntg-context

On 4/28/2023 6:08 AM, Aditya Mahajan via ntg-context wrote:

Hi all,

For a few months now, all features of tikz have not been working with LMTX. 
After help from Hans and a bit of trial and error, I think that figured out 
what was going wrong with the catcodes in m-tikz: Since the texcatcodes are 
different from what tikz expects, the catcodes have to be set inside 
\starttikzpicture (in addition to before the loading of tikz files, which was 
already being done).

I am attaching the working m-tikz.mkxl file.

I have tested this on my course notes, which make extensive use of simple tikz 
block diagrams and pgfplots graphs. Perhaps others who were having issues with 
tikz could test if this fixes everything and, if so, we can add this to the 
distribution.

So, what is needed from tikz?

"graphics/pgf/base/pgf.tds.zip",
"graphics/pgf/contrib/pgfplots.tds.zip",
"graphics/pgf/contrib/circuitikz.tds.zip",

Is there more that should be installed as reasonable basic set? I made a 
script that does fetch/installs it (and also wipes latex / plain 
/useless stuff afterwards including some shell etc scripts as we don't 
want those either - security risk etc -).


Not being a tikz user I have no preferences but we can add some test 
files to the test suite if needed.


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] OBSD 7.3 binary locally compiled… what next?

2023-05-04 Thread Hans Hagen via ntg-context

On 5/4/2023 12:11 PM, damien thiriet via ntg-context wrote:

Hi,


I upgraded today my OBSD to 7.3 and… realized too late that texlive 
binaries were on the compile farm, but not the lmtx ones. That was the 
opportunity to learn self-install, though.

I compiled the binary, but I am stuck with the next step

What I did:

- rm -rf /usr/local/context/* (now I suspect I should have first updated 
my 7.2 installation and then, after upgrading to 7.3, compiled the 
binaries…)

- download  https://www.pragma-ade.nl/context/latest/cont-tmf.zip
- unpacked it into /usr/local/context (unzip cont-tmf.zip -d 
/usr/local/context/)

- cd /usr/local/context/source/luametatex
- ./build.sh --native

Compilation succeeded, looks like the binary lies in
/usr/local/context/source/luametatex/build/native/luametatex

What's the next step?

you should make

tex/texmf-openbsd7.3-amd64

and put 5 files there:

luametatex
context -> luametatex
mtxrun  -> luametatex
mtxrun.lua
context.lua

you can take the lua files from

tex/texmf-openbsd7.2-amd64

or you can just rename the 7.2 path to 7.3 and move luametatex there

(of course you then also need to adapt your path to the new situation)

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
___


[NTG-context] OBSD 7.3 binary locally compiled… what next?

2023-05-04 Thread damien thiriet via ntg-context

Hi,


I upgraded today my OBSD to 7.3 and… realized too late that texlive 
binaries were on the compile farm, but not the lmtx ones. That was the 
opportunity to learn self-install, though.

I compiled the binary, but I am stuck with the next step

What I did:

- rm -rf /usr/local/context/* (now I suspect I should have first updated 
my 7.2 installation and then, after upgrading to 7.3, compiled the 
binaries…)

- download  https://www.pragma-ade.nl/context/latest/cont-tmf.zip
- unpacked it into /usr/local/context (unzip cont-tmf.zip -d 
/usr/local/context/)

- cd /usr/local/context/source/luametatex
- ./build.sh --native

Compilation succeeded, looks like the binary lies in
/usr/local/context/source/luametatex/build/native/luametatex

What's the next step?

There was this message:

==
tex trees

resources like public fonts  : tex/texmf/
the context macro package: tex/texmf-context/
the luametatex binary: tex/texmf-native/bin/...
optional third party modules : tex/texmf-context/
fonts installed by the user  : tex/texmf-fonts/fonts/data/
styles made by the user  : tex/texmf-projects/tex/context/user/

binaries:

tex/texmf-/bin/luametatex : the compiled binary (some 
2-3MB)
tex/texmf-/bin/mtxrun : copy of or link to 
luametatex
tex/texmf-/bin/context: copy of or link to 
luametatex
tex/texmf-/bin/mtxrun.lua : copy of 
tex/texmf-context/scripts/context/lua/mtxrun.lua
tex/texmf-/bin/context.lua: copy of 
tex/texmf-context/scripts/context/lua/context.lua


commands:

mtxrun --generate : create file database
mtxrun --script fonts --reload: create font database
mtxrun --autogenerate context ... : run tex file (e.g. from editor)
https://www.pragma-ade.nl/context/latest/cont-tmf.zip

The tex/texmf/ folder does not exist yet.

Does this mean I have to create that part of the tree by hand (which 
means should I have unpacked the zip at /usr/local/context/tex/texmf 
rather than /usr/local/context)?I’d bet copying anything(copying mtxrun 
from

/usr/local/context/scripts/context/stubs/unix/mtxrun ?

Should I run install.sh – which I not did, assuming maybe wrongly that 
it would fail, and if so, which options?


Thank you for your time,

Damien

___
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] Units for volts and Ohms

2023-05-04 Thread Hans Hagen via ntg-context

On 5/2/2023 8:09 AM, Aditya Mahajan via ntg-context wrote:

Hi,

As I was testing circuitikz, I realized that the following don't work:

\unit{1V}
\unit{100 kΩ}

In phys-dim.lmt, we need to change line 467:

 v  = "volt",

to

 V  = "volt",

and perhaps add (not sure if lua allows utf variable names)

 Ω  = "ohm",

Ha, that's easy to test, right? So I won't answer this one.

(instead you can ["Ω"] = "ohm")

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
___


[NTG-context] new units

2023-05-04 Thread Hans Hagen via ntg-context

Hi,

We now officially have three new units. These were officially introducd 
at the 2023 BachoTeX meeting in a presentation where the chair of the 
four person strong team also did the final live callibration (using the 
edithorial callibration instrument made for that purpose). An upcoming 
article in TB will explain the details of the process and also a careful 
mathematical annalysis of how we reached the right value with a high 
precission. The actual implementation is the most boring part.


\starttext

\startTEXpage[offset=1ts]
Hello World!

\the\dimexpr 1ts

\the\dimexpr 1es

\the\dimexpr 1eu

\eufactor20

\the\dimexpr 1eu
\stopTEXpage

\stoptext

The es (Edith) unit replaces the inch, and the ts (Tove) is one tenths 
of than (just like we have cm and mm). The eu (European Unit) is an 
adaptive one that defaults to 10 ts == 1es and can be multiplied by 
setting the \eufactor (default 10) which makes it possible to define 
layouts that easilly scale to different output media (important for the 
mobile phone / table generation).


This means that MWE that use inches will likely no longer be considered 
valid and probably will be dealt with slower (or just ignored).


These units can be used in the current upload. In a next upload the "19 
feet max" message that tex issues when reaching a maximum will be 
adapted to a more realistic variant. (Actually, because tex has no foot 
unit, we could as well replace that with a more impressive little feet 
unit but we forgot to measure the smallest foot present which i guess 
was about 3 es so the limit is then some 75 bare theodores.)


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
___


[NTG-context] Units for volts and Ohms

2023-05-02 Thread Aditya Mahajan via ntg-context
Hi,

As I was testing circuitikz, I realized that the following don't work:

\unit{1V}
\unit{100 kΩ}

In phys-dim.lmt, we need to change line 467:

v  = "volt",

to

V  = "volt",

and perhaps add (not sure if lua allows utf variable names)

Ω  = "ohm",

Aditya___
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] tikz + lmtx

2023-05-01 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Aditya Mahajan via ntg-context wrote:

> On Fri, 28 Apr 2023, Ulrike Fischer via ntg-context wrote:
> 
> > Am Fri, 28 Apr 2023 01:01:23 -0400 (EDT) schrieb Aditya Mahajan via
> > ntg-context:
> > 
> > > Circuitikz still doesn't work. Even loading the module fails. 
> > 
> > It works for me on texlive 2023 with your new module file. 
> 
> Thanks for testing. I'll double check what was going wrong with my circuitikz 
> tests.

A 5 year old circuitikz module in $TEXMFHOME, which was interfering! Everything 
appears to be working now at my end as well.

@Hans, could we add the m-tikz.mkxl file that I sent to the distribution. 

Thanks,
Aditya
___
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] define math function with \, inside

2023-05-01 Thread Stefan Haller via ntg-context
Hi Mikael,

On Mon, May 01, 2023 at 05:48:40PM +0200, Mikael Sundqvist via ntg-context 
wrote:
> [...]
> This works here (but maybe there should be a simpler way):
> 
> \definemathfunction
>   [argmax]
>   [mathlimits=auto]
> 
> \setupmathlabeltext
>   [en]
>   [argmax=arg\sixperemspace max]
> [...]

That was exactly what I was looking for. It is working perfectly. Thanks
a lot!

With this knowledge finding additional information in the wiki is much
easier: :)

1. https://wiki.contextgarden.net/Command/_setuplabeltext
2. https://wiki.contextgarden.net/Command/_labeltext

Stefan
___
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] define math function with \, inside

2023-05-01 Thread Mikael Sundqvist via ntg-context
Hi,

On Mon, May 1, 2023 at 5:27 PM Stefan Haller via ntg-context
 wrote:
>
> Hi all,
>
> I wanted to define a custom math function (similar to log etc.) for
> argmax. However, I wanted to have a small space between "arg" and "max"
> and limits should work properly. I am using a up-to-date LMTX installation.
>
> Without the first constraint it's easy:
>
> > % old way:
> > \definemathcommand[argmax][limop]{\mfunction[argmax]}
> > % new way, discoverd by looking into math-def.mkxl
> > \definemathfunction[argmax]
>
> However, both methods do not work if I want to have "arg\,max" printed
> (error about \endcsname missing). With mkiv the first method works and
> can also be found in the wiki[1].
>
> What's the current way to define such a custom math function?
>
> Thanks!
> Stefan
>
> [1]: https://wiki.contextgarden.net/Math/functions

This works here (but maybe there should be a simpler way):

\definemathfunction
  [argmax]
  [mathlimits=auto]

\setupmathlabeltext
  [en]
  [argmax=arg\sixperemspace max]

\startTEXpage[offset=1ts]
\im{
  \argmax_{a\in A} f(a)
}
\blank[big]
\dm{
  \argmax_{a\in A} f(a)
}
\stopTEXpage

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


[NTG-context] define math function with \, inside

2023-05-01 Thread Stefan Haller via ntg-context
Hi all,

I wanted to define a custom math function (similar to log etc.) for
argmax. However, I wanted to have a small space between "arg" and "max"
and limits should work properly. I am using a up-to-date LMTX installation.

Without the first constraint it's easy:

> % old way:
> \definemathcommand[argmax][limop]{\mfunction[argmax]}
> % new way, discoverd by looking into math-def.mkxl
> \definemathfunction[argmax]

However, both methods do not work if I want to have "arg\,max" printed
(error about \endcsname missing). With mkiv the first method works and
can also be found in the wiki[1].

What's the current way to define such a custom math function?

Thanks!
Stefan

[1]: https://wiki.contextgarden.net/Math/functions
___
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] Linebreaking in Japanese in ConTeXt

2023-05-01 Thread Henning Hraban Ramm via ntg-context

Am 30.04.23 um 12:42 schrieb Wolfgang Schuster via ntg-context:

     \startmode [JA]
         \setscript [nihongo]
         \mainlanguage [ja]
     \stopmode


Shouldn’t that be \startmode[*ja], i.e. make it depend on the current 
language using the system mode?


Hraban

___
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] no recent message listed in the web interface

2023-05-01 Thread Pablo Rodriguez via ntg-context
On 4/30/23 23:17, Jean-Pierre Delange via ntg-context wrote:
> That’ what I trad :
> 
> *Starting:* /Sun Jan 1 10:21:44 CET 2023/
> *Ending:* /Tue Apr 11 15:13:54 CEST 2023/

Many thanks for your reply, Jean-Pierre.

Now it is clear that the web interface is missing new messages.

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] cannot generate format file with current latest

2023-05-01 Thread Pablo Rodriguez via ntg-context
On 4/30/23 20:17, Hans Hagen via ntg-context wrote:
> On 4/30/2023 3:19 PM, Pablo Rodriguez via ntg-context wrote:
>> […]
>> When I try to create the format file with "context --make --all", I get
>> the following error message:
>> […]
>> token call, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index
>> a nil value (global 'posit') stack traceback:
> 
> you're running the wrong binary

Many thanks for your reply, Hans.

I’m afraid I had to update the binaries manually.

After that, everything was fine.

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] no recent message listed in the web interface

2023-04-30 Thread Jean-Pierre Delange via ntg-context
That’ what I trad :

Starting: Sun Jan 1 10:21:44 CET 2023
Ending: Tue Apr 11 15:13:54 CEST 2023

Jean-Pierre Delange 


> Le 30 avr. 2023 à 15:48, Pablo Rodriguez via ntg-context  
> a écrit :
> 
> Dear list,
> 
> I‘m afraid that
> https://mailman.ntg.nl/pipermail/ntg-context/2023/108157.html is the
> most recent message displayed for 2023 in the web interface
> (https://mailman.ntg.nl/pipermail/ntg-context/2023/date.html#108157).
> 
> Although the list has been distributing messages to subscribers and I
> received them, I guess that the server software update might have
> something to do with this.
> 
> Just for the record, I contacted Taco privately two weeks ago. No reply,
> but I understand that obviously he is busy with other things.
> 
> Before sending him another message on the issue, I would like to ask
> whether anyone could confirm that recent messages (from this week)
> aren’nt being listed at
> https://mailman.ntg.nl/pipermail/ntg-context/2023/date.html.
> 
> 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
> ___
___
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] cannot generate format file with current latest

2023-04-30 Thread Hans Hagen via ntg-context

On 4/30/2023 3:19 PM, Pablo Rodriguez via ntg-context wrote:

Dear list,

I have just updated to current latest (2023.04.27 17:04).

I always delete cache with "mtxrun --generate" after an update.

When I try to create the format file with "context --make --all", I get
the following error message:

lua error   > lua error on line 645 in file context.mkxl:

token call, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index
a nil value (global 'posit') stack traceback:

you're running the wrong binary

-
  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] cannot generate format file with current latest

2023-04-30 Thread Pablo Rodriguez via ntg-context
On 4/30/23 16:32, Bruce Horrocks via ntg-context wrote:
>> On 30 Apr 2023, at 14:19, Pablo Rodriguez wrote:
>> I have just updated to current latest (2023.04.27 17:04).
>>
>> I always delete cache with "mtxrun --generate" after an update.
>>
>> When I try to create the format file with "context --make --all", I get
>> the following error message:
>> [...]
>> Could anyone confirm the issue?
> 
> No. Working fine for me on a Mac using that version, both before and
> after running "make all" and "generate".

Many thanks for your fast reply, Bruce.

For some strange reason, binaries weren’t updated to latest ones.

Copying them from a brand-new install fixes the issue.

I wonder whether other Linux64 users experienced this.

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] cannot generate format file with current latest

2023-04-30 Thread Bruce Horrocks via ntg-context

> On 30 Apr 2023, at 14:19, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> Dear list,
> 
> I have just updated to current latest (2023.04.27 17:04).
> 
> I always delete cache with "mtxrun --generate" after an update.
> 
> When I try to create the format file with "context --make --all", I get
> the following error message:
> 
> lua error   > lua error on line 645 in file context.mkxl:
> 
> token call, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index
> a nil value (global 'posit') stack traceback:
> ...ext/base/mkxl/cldf-pos.lmt:18: in local 'code'
> ...ext/base/mkiv/util-lua.lua:96: in field 'loadedluacode'
> ...ext/base/mkiv/luat-env.lua:108: in field 'luafilechunk'
> ...ext/base/mkxl/luat-cod.lmt:82: in function 'lua.registercode'
> [ctxlua]:1: in main chunk
> 
> A number should have been here; I inserted '0'. (If you can't figure out
> why I needed to see a number, look up 'weird error' in the index to The
> TeXbook.)
> 
> Could anyone confirm the issue?

No. Working fine for me on a Mac using that version, both before and after 
running "make all" and "generate".

—
Bruce Horrocks
Hampshire, UK

___
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] no recent message listed in the web interface

2023-04-30 Thread Pablo Rodriguez via ntg-context
Dear list,

I‘m afraid that
https://mailman.ntg.nl/pipermail/ntg-context/2023/108157.html is the
most recent message displayed for 2023 in the web interface
(https://mailman.ntg.nl/pipermail/ntg-context/2023/date.html#108157).

Although the list has been distributing messages to subscribers and I
received them, I guess that the server software update might have
something to do with this.

Just for the record, I contacted Taco privately two weeks ago. No reply,
but I understand that obviously he is busy with other things.

Before sending him another message on the issue, I would like to ask
whether anyone could confirm that recent messages (from this week)
aren’nt being listed at
https://mailman.ntg.nl/pipermail/ntg-context/2023/date.html.

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
___


[NTG-context] cannot generate format file with current latest

2023-04-30 Thread Pablo Rodriguez via ntg-context
Dear list,

I have just updated to current latest (2023.04.27 17:04).

I always delete cache with "mtxrun --generate" after an update.

When I try to create the format file with "context --make --all", I get
the following error message:

lua error   > lua error on line 645 in file context.mkxl:

token call, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index
a nil value (global 'posit') stack traceback:
...ext/base/mkxl/cldf-pos.lmt:18: in local 'code'
...ext/base/mkiv/util-lua.lua:96: in field 'loadedluacode'
...ext/base/mkiv/luat-env.lua:108: in field 'luafilechunk'
...ext/base/mkxl/luat-cod.lmt:82: in function 'lua.registercode'
[ctxlua]:1: in main chunk

A number should have been here; I inserted '0'. (If you can't figure out
why I needed to see a number, look up 'weird error' in the index to The
TeXbook.)

Could anyone confirm the issue?

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] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Wolfgang Schuster via ntg-context

Gerben Wierda via ntg-context schrieb am 30.04.2023 um 10:48:
On 30 Apr 2023, at 10:04, Wolfgang Schuster via ntg-context 
mailto:ntg-context@ntg.nl>> wrote:


 begin example
\definefontfamily [noto-jp] [rm] [Noto Serif CJK JP]
\definefontfamily [noto-jp] [ss] [Noto Sans CJK JP]
\definetypeface   [noto-jp] [mm] [math] [pagella] [default]

\setupbodyfont [noto-jp]

\mainlanguage [ja]

\setscript [nihongo]


Thank you.

How do I change that in my setup?

My setup is creating the same stuff in different languages from XML 
input (LMTX using lua and METAPOST), which means I need to adapt the 
following setup (cyrillic and greek shown as the other languages with 
different character sets I use)


\startmode[JA]
\setuplanguage[ja][patterns={ja}]\mainlanguage[ja]
\stopmode


When your document prints only text in a single language change the 
setup above to


    \startmode [JA]
        \setscript [nihongo]
        \mainlanguage [ja]
    \stopmode

but for documents which use multiple script/languages at the same time 
replace the previous setup with


    \startsetups [japanese]
        \setscript [nihongo]
    \stopsetups

    \setuplanguage [ja] [setups=japanese]

and add \language[ja] before japanese text to ensure linebreaking is 
enabled.


Wolfgang

___
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] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Gerben Wierda via ntg-context

> On 30 Apr 2023, at 10:04, Wolfgang Schuster via ntg-context 
>  wrote:
> 
>  begin example
> \definefontfamily [noto-jp] [rm] [Noto Serif CJK JP]
> \definefontfamily [noto-jp] [ss] [Noto Sans CJK JP]
> \definetypeface   [noto-jp] [mm] [math] [pagella] [default]
> 
> \setupbodyfont [noto-jp]
> 
> \mainlanguage [ja]
> 
> \setscript [nihongo]

Thank you.

How do I change that in my setup?

My setup is creating the same stuff in different languages from XML input (LMTX 
using lua and METAPOST), which means I need to adapt the following setup 
(cyrillic and greek shown as the other languages with different character sets 
I use)

\startmode[JA]
\setuplanguage[ja][patterns={ja}]\mainlanguage[ja]
\stopmode

\definefallbackfamily
  [archimate]
  [ss]
  [Helvetica]
  [preset=range:cyrillic,
   tf=style:light,
   it=style:lightoblique,
   bf=style:regular,
   bi=style:oblique,
   force=yes,
   rscale=1.0]
 \definefallbackfamily
  [archimate]
  [ss]
  [Helvetica]
  [preset=range:greek,
   tf=style:light,
   it=style:lightoblique,
   bf=style:regular,
   bi=style:oblique,
   force=yes]
\definefallbackfamily
  [archimate]
  [ss]
  [Hiragino Sans]
  [preset=range:japanese,
   tf=style:W3,
   it=style:W3,
   bf=style:W5,
   bi=style:W5,
   force=yes]
 
\definefontfamily [archimate] [ss] [Optima]

\setupbodyfont[archimate]

\starttext

lua code creates METAPOST code which creates images with embedded ConTeXt 
'vboxes' which again contain language-setting ConTeXt code for each piece of 
text.

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon 
<https://newsie.social/@gctwnl>)
R IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

___
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] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Wolfgang Schuster via ntg-context

Gerben Wierda via ntg-context schrieb am 30.04.2023 um 09:12:
I am currently testing with a Japanese translation of something I 
originally created in English using the ConTeXt engine (LMTX).


I run into the fact that Japanese has no use for whitespace, so most 
of the time TeX has no idea where to break. Is there something I can 
tell ConTeXt to solve this for me or do I have to alk with the 
translator to put whitespace in the correct places (kind of breaks the 
automatic linebreaking of TeX, though)?


Below is a example with some dummy text for a document which contains 
only japanese. The main points are


    1. to use a font which is suitable for japanese, e.g. Noto 
Serif/Sans CJK JP and


    2. enable line breaking with \setscript[nihongo].

The \mainlanguage setting is only needed to get japanese labels for 
chapter, float titles etc.


When you have a document with mixed scripts the approach below doesn't 
work because
spacing around braces and other punctuation marks is wrong for non 
japanese text,
this can be fixed but you have to include language switches in your 
document.


Wolfgang

 begin example
\definefontfamily [noto-jp] [rm] [Noto Serif CJK JP]
\definefontfamily [noto-jp] [ss] [Noto Sans CJK JP]
\definetypeface   [noto-jp] [mm] [math] [pagella] [default]

\setupbodyfont [noto-jp]

\mainlanguage [ja]

\setscript [nihongo]

\starttext

\startbuffer
打構セト読役いゆお及層大コモクカ軟毎ホアヲト極書た球87本野ぎレべ襲画売ぎ関負ら断紀チラネキ質紋キタ資私トゃふん。江コキトサ狂毎現ンづ応通サシ続36島性84界ぼゆゃが実書ちぽふず辞躍事シ世図二ハス盛堀人わレをう第紙きかイの浅69乳キメタ事争つょ社以ヨナム法例やほにル済療にしいむ。子け記多ゅくよ正役モ母憲トぞ説帝け務賞ク付打ワナ内桁ぼでクフ因倒おふフ印気地レタケマ冬4雇各裁微ひるぼ。

事ーやずお両遇ほがお職喜じきちそ経岡ウナオケ型児てきろ置実イハ隊留社びか車斉ムマ数今せぴさし都聞最へぼう康自コミニク月言ム検代捕ぶねやう。6本うげがぎ無多シワソ多転のづが加分がど臣次オモエヱ務教すそ必組テタレソ極渡げフ資聞ぽへトづ禁昔キイウニ食度地ヱ考性ユエ内生ヱセ音94党と経陸咲幼勤りだフ。83男融録ょもな氷社くにルべ害変でおけう変世7超キ減安リヌ株崎5転理済ほだをな黒府コワスソ地賢堂衛イぶにし。

広げがぴ視立ス位心もスわ止想ツクケラ産竹聞ヌ落38判境ノア賞7写カチ華供ソミワ名認ばゆずほ始色らふひも属対73写けで止突兄呂びの。策イルリヘ行十織キヘ興必む万初ゃづは勝米い館独ム感一チヒナ希8写タムシイ室情づがい焼殺つか広質トクロ毎新ソモ患関済えめね働表め白告こリあ杯困摘屈裂れ。

名テホユ稿国む生覧ヨナケヤ文6垣めこル社2市むあし保止転済ノ問判りッ集員セワ全宣コ森領で温子うラちぎ夏査せすむ来資ニ面三わぼ際6之減喰杜き。堂ヲ賞了かえー単惑イめ秋投クツ意拡平ヘタヱ時83死れる互武ぽほ拉51届ニネラヘ掲団ヨ度両議ク。状親日値ル断大示ヘニコク米界を連禁イが性正ルッ問句サルユ試片サロヤ前毎到くぜ黄雑らりえ報同ょきむ督晴岡確たごげむ。

両おぎゅら写合ル書殖だインぎ孝自氷ばぞひ事権ウノレヲ少止ヲマヨミ惑磁ぞくゅ竹月おやま手51質サム付2仏い職断年にーばざ場現ムワホ襲印講行否えうご。5帰7報ク用講ルのよす媛表サシメマ札変ナヲ案積出ソトマセ決情注モハイ際県らぶドご食績どはあだ徳増フシ断県ぼね了件親億かゆ。申府ホ線全る訪親ケヒネ芸比歳よをづう供記モケ正同とき練1紀ゅくふい割市ざ著法べちめせ客答ヤヌキオ入朗ルヌカス況写天境月郎ろたづ。

想ネシモヤ人時ワ化新リぱイこ京希っじ索視ケア風月受マカ東初ぞ月公て無速だ文保か受4香刃尿憎潔だクばづ。果テカ川程イ相安べろ方4映チ米闘ヤタレ会民クをづい治果とルせ字社かイよ新軍こ持芸ワラウケ掲三58治館壌ゃ。行びまむ快野分真タネス応住えじで半記キネト正6者理ぼあ面出ヱシレワ慎首レトアハ託展オ良育圏ーを申傷説ひよもぶ索構を持試奇拝括ぱふ。

写みを参念タ三辞よルさき想3込ぜトリ会図ロ法部じち之杉ぎば厳近ワオコ光傷治ワ整区童熊習本さはリん。一ナカヒハ経松隊整キメケト需湖モユエウ秘千そ含覧ふリさ挙言ねをク凍誉ょい利際ゃぼの織用ユリル育4緊ご選1面とし胃危雪異みのひき。竹品ハ著供うげル島該ょ城豊ぎすご腹独べじり皆5座わーう化著式サマ木陸ミレノ義軍80鯨ヒキトフ読大フニノネ読覧ロヨヤイ投時ょうす都活きっみざ。

上なラ済経ロ有実マ乳装ざなぴま武1守い掲6町ぼ禁28担惑らばんフ社策送案物んまへ。人際クょゃね験伝め念変クマヌ白馳ナツエヤ著側ッごフぞ済川さ趣載ツア挙85適クウネレ稿並ドむわの論棋ナソスヒ教伎締潤革フ。球尊話者が心三いむり達尼スか町過ミタオ上止ワカヤ正着ざぱぎぼ失成行偽ワマヘ北奮く。

済開ぼスじと力紹オア手混チコ成意コテモケ定因ド情最どいとづ写今えりめ問景ルオフチ度自す作12行トヱワ録消ひイ。縦右で後賞たじつド諸場後し面詐でばト題社のれふ年結すたぜじ下労リえたゅ高作セレテ給5山ワ任共ご京前ミレシ本写午吉活ぽし。播るせ部3席ヒ投揮ぴしんけ安図んき同更展将ごさぽ画9用サキ購21十ツヘト京締乱僕ろ。

図ラ象45韓ど考小ヌニ野初ムユイシ河止中ヤトキヒ巻女ッ除稿イ輔余た研弔カ被悪テヘ業購ヘタ詳支ルれ身日だがん出療ずー盛趣なばぐ離女放佳怖れずへ。理じかぐ討15枠制8五袋ヒク選会ソアシカ主手付みとこ猪月メ語経マオヱミ社接フセユア幌財ー香口衆ンろ著瀬なこン身個供悪射窃どスあ。切テセ重購ニホ覧権じゆむげ影文ヒヘ相断66哉ノホテフ黒植くね氏員更あきぱゆ文記ふわひ載更上ぜいひば。
\stopbuffer

\rm \getbuffer

\page

\ss \getbuffer

\stoptext
 end example

___
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] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Gerben Wierda via ntg-context


> On 30 Apr 2023, at 09:12, Gerben Wierda via ntg-context  
> wrote:
> 
> I am currently testing with a Japanese translation of something I originally 
> created in English using the ConTeXt engine (LMTX).
> 
> I run into the fact that Japanese has no use for whitespace, so most of the 
> time TeX has no idea where to break. Is there something I can tell ConTeXt to 
> solve this for me or do I have to alk with the translator to put whitespace 
> in the correct places (kind of breaks the automatic linebreaking of TeX, 
> though)?

I forgot to add. I use:

\setuplanguage[ja][patterns={ja}]\mainlanguage[ja]

G
___
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] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Gerben Wierda via ntg-context
I am currently testing with a Japanese translation of something I originally 
created in English using the ConTeXt engine (LMTX).

I run into the fact that Japanese has no use for whitespace, so most of the 
time TeX has no idea where to break. Is there something I can tell ConTeXt to 
solve this for me or do I have to alk with the translator to put whitespace in 
the correct places (kind of breaks the automatic linebreaking of TeX, though)?

Gerben Wierda (LinkedIn , Mastodon 
)
R IT Strategy  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate 

___
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] tikz + lmtx

2023-04-28 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Floris van Manen via ntg-context wrote:

> 
> 
> On 28/04/2023 16:25, Aditya Mahajan via ntg-context wrote:
> > These are already part of the distribution. Just one caveat: you need to use
> > 
> > \usemodule[tikz]
> > \usemodule[pgfplots]
> 
> 
> when running the example from contextgarden:
> https://wiki.contextgarden.net/Pgfplot
> 
> \setupcolors[state=start]
> \usemodule[tikz]
> \usemodule[pgfplots]
> \starttext
> \starttikzpicture
> \startaxis[
> xmin=0,xmax=300,
> title=http://cryogenics.nist.gov/,
> xlabel=$T$ (K),
> ylabel=$(L-L_{293})/L_{293}$,
> legend style={at={(0.95,0.05)},anchor=south east},
> width=16cm ]
> \addplot[mark=none,color=red] plot file {sapphire.dat};
> \addlegendentry{sapphire}
> \addplot[mark=none,color=green] plot file {Be.dat};
> \addlegendentry{Be}
> \addplot[mark=none,color=blue] plot file {BeCu.dat};
> \addlegendentry{BeCu}
> \addplot[mark=none,color=cyan] plot file {SS304.dat};
> \addlegendentry{SS304}
> \addplot[mark=none,color=magenta] plot file {Al6061-T6.dat};
> \addlegendentry{Al6061-T6}
> \addplot[mark=none,color=orange] plot file {nylon.dat};
> \addlegendentry{nylon}
> \stopaxis
> \stoptikzpicture
> \stoptext

Is it possible to create a standalone test that does not depend on a bunch of 
datafiles that need to be downloaded?

Thanks,
Aditya
___
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] Problem with exponent

2023-04-28 Thread Bruce Horrocks via ntg-context


> On 28 Apr 2023, at 19:21, Fabrice Couvreur via ntg-context 
>  wrote:
> 
> Hi,
> I want to write x'² . Only, I get x²'.
> Thanks
> Fabrice
> 
> \starttext
> \m{{x'}²+{y'}²}
> \stoptext

This came up before [1]. The solution is to use \primed{...}

\starttext
\m{{x'}²+{y'}²} 
\quad
\m{\primed{x}^2+\primed{y}^2} 
\stoptext


[1] <https://www.mail-archive.com/ntg-context@ntg.nl/msg103779.html>
—
Bruce Horrocks
Hampshire, UK

___
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] tikz + lmtx

2023-04-28 Thread Floris van Manen via ntg-context



On 28/04/2023 16:25, Aditya Mahajan via ntg-context wrote:

These are already part of the distribution. Just one caveat: you need to use

\usemodule[tikz]
\usemodule[pgfplots]



when running the example from contextgarden:
https://wiki.contextgarden.net/Pgfplot

\setupcolors[state=start]
\usemodule[tikz]
\usemodule[pgfplots]
\starttext
\starttikzpicture
\startaxis[
xmin=0,xmax=300,
title=http://cryogenics.nist.gov/,
xlabel=$T$ (K),
ylabel=$(L-L_{293})/L_{293}$,
legend style={at={(0.95,0.05)},anchor=south east},
width=16cm ]
\addplot[mark=none,color=red] plot file {sapphire.dat};
\addlegendentry{sapphire}
\addplot[mark=none,color=green] plot file {Be.dat};
\addlegendentry{Be}
\addplot[mark=none,color=blue] plot file {BeCu.dat};
\addlegendentry{BeCu}
\addplot[mark=none,color=cyan] plot file {SS304.dat};
\addlegendentry{SS304}
\addplot[mark=none,color=magenta] plot file {Al6061-T6.dat};
\addlegendentry{Al6061-T6}
\addplot[mark=none,color=orange] plot file {nylon.dat};
\addlegendentry{nylon}
\stopaxis
\stoptikzpicture
\stoptext




i get a fatal error:

resolvers   | globbing | confusing filename, name: 'CHANGELOG', 
lower: 'changelog', already: 'ChangeLog'


resolvers   | formats | executing runner 'run luametatex format': 
/home/vm/context/tex/texmf-linux-64/bin/luametatex --jobname="./context 
24.tex" --socket --shell-escape 
--fmt=/home/vm/luametatex-cache/context/formats/luametatex/cont-en.fmt 
--lua=/home/vm/luametatex-cache/context/formats/luametatex/cont-en.lui 
--c:currentrun=1 --c:fulljobname="./context 24.tex" --c:input="./context 
24.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall 
--c:texmfbinpath="/home/vm/context/tex/texmf-linux-64/bin"


resolvers   > globbing > confusing filename, name: 'CHANGELOG', 
lower: 'changelog', already: 'ChangeLog'

system  >
system  > ConTeXt  ver: 2023.04.27 17:04 LMTX  fmt: 2023.4.28 
int: english/english

system  >
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/home/vm/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'

system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/home/vm/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './context 24', input './context 
24.tex', result './context 24'

fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './context 24.tex'
colors  > 'rgb' color space is supported
colors  > 'cmyk' color space is supported
modules > 'tikz' is loaded
open source > level 2, order 3, name 
'/home/vm/context/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'

open source > level 3, order 4, name 'pgfutil-common.tex'
open source > level 4, order 5, name 'pgfutil-common-lists.tex'
close source> level 4, order 5, name 'pgfutil-common-lists.tex'
close source> level 3, order 5, name 'pgfutil-common.tex'
open source > level 3, order 6, name 'pgfutil-context.def'
close source> level 3, order 6, name 'pgfutil-context.def'
open source > level 3, order 7, name 'pgfrcs.code.tex'
close source> level 3, order 7, name 'pgfrcs.code.tex'
open source > level 3, order 8, name 'pgfsys.code.tex'
open source > level 4, order 9, name 'pgfkeys.code.tex'
open source > level 5, order 10, name 'pgfkeysfiltered.code.tex'
close source> level 5, order 10, name 'pgfkeysfiltered.code.tex'
close source> level 4, order 10, name 'pgfkeys.code.tex'
open source > level 4, order 11, name 'pgf.cfg'
close source> level 4, order 11, name 'pgf.cfg'
Driver file for pgf: pgfsys-pdftex.def

open source > level 4, order 12, name 'pgfsys-pdftex.def'
open source > level 5, order 13, name 'pgfsys-common-pdf.def'
close source> level 5, order 13, name 'pgfsys-common-pdf.def'
close source> level 4, order 13, name 'pgfsys-pdftex.def'
open source > level 4, order 14, name 'context.tex'
setup   > error in line 12, namespace 'fontinstanceready', 
instance 'D', key 'no,'
open source > level 5, order 15, name 
'/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-plex.mkiv'
open source > level 6, order 16, name 
'/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source> level 6, order 16, name 
'/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source> level 5, order 16, name 
'/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-plex.mkiv'

fonts   > checking > char 2 (U+00032) in font '' with id 0: missing
fonts   > checking > char 4 (U+00034) in font '' with id 0: missing
fonts  

[NTG-context] Problem with exponent

2023-04-28 Thread Fabrice Couvreur via ntg-context
Hi,
I want to write x'² . Only, I get x²'.
Thanks
Fabrice

\starttext
\m{{x'}²+{y'}²}
\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] tikz + lmtx

2023-04-28 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Ulrike Fischer via ntg-context wrote:

> Am Fri, 28 Apr 2023 01:01:23 -0400 (EDT) schrieb Aditya Mahajan via
> ntg-context:
> 
> > Circuitikz still doesn't work. Even loading the module fails. 
> 
> It works for me on texlive 2023 with your new module file. 

Thanks for testing. I'll double check what was going wrong with my circuitikz 
tests.

Aditya
___
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] tikz + lmtx

2023-04-28 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Gavin wrote:

> Hi fellow Tik-Z users,
> 
> Tik-Z, including circuitikz, is working for me after adding two files from 
> Hans to a slightly older version of ConTeXt (ver: 2023.02.07 19:06 LMTX  fmt: 
> 2023.3.14). I do not know if these files are of any use with the current 
> versions, but I am quoting a list email from January (including the files) 
> just in case it helps anyone with the present problems.
> 
> Gavin

These are already part of the distribution. Just one caveat: you need to use

\usemodule[tikz]
\usemodule[pgfplots]

Directly loading 

\usemodule[pgfplots]

will not work as the t-pgfplots module explicitly loads t-tikz, which does not 
work with LMTX.

Aditya
___
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] tikz + lmtx

2023-04-28 Thread Ulrike Fischer via ntg-context
Am Fri, 28 Apr 2023 01:01:23 -0400 (EDT) schrieb Aditya Mahajan via
ntg-context:

> Circuitikz still doesn't work. Even loading the module fails. 

It works for me on texlive 2023 with your new module file. 



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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] LuaMetaTeX doesn't find files when symlinked

2023-04-28 Thread Max Chernoff via ntg-context


Hi Lynx,

> Today, I created a separate "user command" within TeXstudio, and it
> points to "/usr/local/ConTeXt_Standalone/context-linux-64/bin/mtxrun" 
> This command generates the same log output as the example at
> https://gitlab.com/islandoftex/images/texlive/-/issues/30.

This is probably not the same issue, since the path "context-linux-
64/bin/mtxrun" suggests that that isn't a symlink. (Well, it is a
symlink mtxrun => ./luametatex, but that email is about multi-level
symlinks like /usr/bin/context => /usr/local/texlive/2023/bin/x86_64-
linux/context => ./luametatex)

To compile a document, you almost certainly want to use "context"
instead of "mtxrun". So try changing the user command to
"/usr/local/ConTeXt_Standalone/context-linux-64/bin/context".

If that doesn't fix anything, run

   $ /usr/local/ConTeXt_Standalone/context-linux-64/bin/mtxrun --generate
   $ /usr/local/ConTeXt_Standalone/context-linux-64/bin/context --make
   
and try again.

If it still doesn't work, then what do you get when you run

   $ /usr/local/ConTeXt_Standalone/context-linux-64/bin/context --nofile

-- Max

___
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] tikz + lmtx

2023-04-27 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Aditya Mahajan via ntg-context wrote:

> Hi all,
> 
> For a few months now, all features of tikz have not been working with LMTX. 
> After help from Hans and a bit of trial and error, I think that figured out 
> what was going wrong with the catcodes in m-tikz: Since the texcatcodes are 
> different from what tikz expects, the catcodes have to be set inside 
> \starttikzpicture (in addition to before the loading of tikz files, which was 
> already being done). 
> 
> I am attaching the working m-tikz.mkxl file. 
> 
> I have tested this on my course notes, which make extensive use of simple 
> tikz block diagrams and pgfplots graphs. Perhaps others who were having 
> issues with tikz could test if this fixes everything and, if so, we can add 
> this to the distribution.

Circuitikz still doesn't work. Even loading the module fails. Not sure why this 
is happening:

\usemodule[circuitikz]

gives:


tex error   > tex error on line 77 in file 
/opt/luametatex/texmf-context/tex/context/modules/mkxl/m-circuitikz.mkxl: 
Package pgfkeys Error: I do not know the key '/tikz/resistor', to which you 
passed 'american', and I am going to ignore it. Perhaps you misspelled it

 \pgfkeys@error

which is a bit strange as the key should have been '/tikz/circuitikz/resistor' 
rather than 'tikz/resistor'.

Aditya
___
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] tikz + lmtx

2023-04-27 Thread Aditya Mahajan via ntg-context
Hi all,

For a few months now, all features of tikz have not been working with LMTX. 
After help from Hans and a bit of trial and error, I think that figured out 
what was going wrong with the catcodes in m-tikz: Since the texcatcodes are 
different from what tikz expects, the catcodes have to be set inside 
\starttikzpicture (in addition to before the loading of tikz files, which was 
already being done). 

I am attaching the working m-tikz.mkxl file. 

I have tested this on my course notes, which make extensive use of simple tikz 
block diagrams and pgfplots graphs. Perhaps others who were having issues with 
tikz could test if this fixes everything and, if so, we can add this to the 
distribution.

Aditya%D \module
%D   [   file=m-tikz,
%Dversion=2021.07.12,
%D  title=\CONTEXT\ Extra Modules,
%D   subtitle=TIKZ support,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D A fixed variant of the t-tikz module distributed with tikz. For practical 
reasons
%D per 2021 we split the module for \MKIV\ and \LMTX. (Maybe some day I'll 
optimize
%D TIKZ a bit.)
%D
%D All these t-* modules in the tikz distribution make no sense as we can just 
load
%D them here which is way cleaner. There is also some mkii filename mapping 
going on
%D that is not needed on todays systems (windows has no 8.3 limitation and on 
unix
%D tds finally adopted a case insensitive approach.)

%D Just in case someone does a hard input ...

\ifdefined\pgfdefined\endinput \fi
\ifdefined\pgfcoredefined\endinput \fi

%D ... but normally we end up here:

\startmodule[tikz]

\ifdefined\pdflastxpos \else
\unprotect

\frozen\overloaded\protected\def\pdflastxpos{\numexpr\clf_lastxpos\relax}

\frozen\overloaded\protected\def\pdflastypos{\numexpr\clf_lastypos\relax}
\protect
\fi

\newcatcodetable \tikzcatcodes

\startcatcodetable \tikzcatcodes
\catcode\tabasciicode \spacecatcode
\catcode\endoflineasciicode   \endoflinecatcode
\catcode\formfeedasciicode\endoflinecatcode
\catcode\spaceasciicode   \spacecatcode
\catcode\endoffileasciicode   \ignorecatcode
\catcode\circumflexasciicode  \superscriptcatcode
\catcode\underscoreasciicode  \subscriptcatcode
\catcode\ampersandasciicode   \alignmentcatcode
\catcode\backslashasciicode   \escapecatcode
\catcode\leftbraceasciicode   \begingroupcatcode
\catcode\rightbraceasciicode  \endgroupcatcode
\catcode\dollarasciicode  \mathshiftcatcode
\catcode\hashasciicode\parametercatcode
\catcode\commentasciicode \commentcatcode
\catcode\atsignasciicode  \lettercatcode
\catcode\exclamationmarkasciicode \othercatcode
\catcode\questionmarkasciicode\lettercatcode
\catcode\tildeasciicode   \activecatcode
\catcode\barasciicode \othercatcode
\stopcatcodetable

\permanent\protected\def\starttikzinput
  {\pushoverloadmode
   \pushcatcodetable
   \setcatcodetable\tikzcatcodes
   \pushmacro\meaning
   \let\meaning\meaningless
   \autoparagraphmode\zerocount}

\permanent\protected\def\stoptikzinput
  {\autoparagraphmode\plusone
   \popcatcodetable
   \popmacro\meaning
   \popoverloadmode}

\permanent\protected\def\tikzinputfile#1%
  {\starttikzinput
   \input{#1}\relax
   \stoptikzinput}

\permanent\protected\def\tikzerrormessage#1#2#3%
  {\writestatus{#1}{#2}}

% For now we need this but we need to educate the user to wrap settings in the
% wrappers. So some day the next line will go. I need to check what commands are
% possible outside a picture.

\overloadmode\zerocount

\newtoks\everytikzpicture

% \appendtoks
% \resetcharacterspacing
% \to \everytikzpicture

\permanent\protected\def\starttikzsettings
  {\pushoverloadmode
   \pushmacro\meaning
   \let\meaning\meaningless
   \autoparagraphmode\zerocount}

\permanent\protected\def\stoptikzsettings
  {\autoparagraphmode\plusone
   \popmacro\meaning
   \popoverloadmode}

\permanent\protected\def\starttikzpicture
  {\dontleavehmode
   \hcontainer\bgroup
   \setcatcodetable\tikzcatcodes
   \the\everytikzpicture
   \autoparagraphmode\zerocount
   \pushmacro\meaning
   \let\meaning\meaningless
 % \pushoverloadmode
   \ifdefined\PackageError\else \let\PackageError\tikzerrormessage \fi
   \tikzpicture}

\permanent\protected\def\stoptikzpicture
  {\endtikzpicture
 % \popoverloadmode
   \popmacro\meaning
   \egroup}

\let\pgfdefined\relax
\let\pgfcoredefined\relax

\tikzinputfile{pgfutil-common.tex}
\tikzinputfile{pgfutil-context.def}
\tikzinputfile{pgfrcs.code.tex}
\tikzinputfile{pgfsys.code.tex}
\tikzinputfile{pgfkeys.code.tex}
\tikzinputfile{pgfsyssoftpath.code.tex}
\tikzinputfile{pgfsysprotocol.code.tex}

[NTG-context] LuaMetaTeX doesn't find files when symlinked

2023-04-27 Thread Max Chernoff via ntg-context
Hi Hans,

With the LuaMetaTeX-based ConTeXt wrapper, it's not generally possible
to run ConTeXt from a symlinked binary in another directory. This shows
up if someone makes symlinks in "/usr/bin" so that they can avoid adding
anything to their $PATH.

If you make run a symlink to the LuaMetaTeX-based ConTeXt wrapper, it
looks for texmfcnf.lua relative to the symlink location, not the symlink
target. With the old LuaTeX/kpse-based wrapper, the script would look
for texmfcnf.lua relative to the symlink target.

I know that my description above is terrible, so here's a demo:

   $ bin=$(mtxrun --expand-var TEXMFOS | head -1)/*
   $ cd $(mktemp -d)
   $ ln -s $bin/luatex $bin/luametatex $bin/context $bin/context.lua 
$bin/mtxrun $bin/mtxrun.lua .
   $ ./context --nofile
   $ ./context --luatex --nofile
   
Running the above commands used to work with the old LuaTeX/kpse-based
wrapper, but it doesn't work any more. I was able to ""fix"" this by
adding the lines

   if os.selfpath then
   environment.ownbin = lfs.symlinktarget(os.selfpath .. io.fileseparator 
.. os.selfname)
   environment.ownpath = environment.ownbin:match("^.*" .. io.fileseparator)
   else
   environment.ownpath = kpse.new("luatex"):var_value("SELFAUTOLOC")
   environment.ownbin = environment.ownpath .. io.fileseparator .. (arg[-2] 
or arg[-1] or arg[0] or "luatex"):match("[^" .. io.fileseparator .. "]*$")
   end
   
to mtxrun.lua, right below the line

   package.loaded["data-ini"] = package.loaded["data-ini"] or true
   
but this is obviously not a very good fix.

There are some threads with more details at:

   https://tug.org/pipermail/tex-live/2023-March/049028.html
   https://gitlab.com/islandoftex/images/texlive/-/issues/30
   
Those links only discuss TL, but I get the same issue if I make a symlink
to the standalone ConTeXt files. 

Thanks,
-- Max
___
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] update

2023-04-27 Thread Max Chernoff via ntg-context
Hi Lynx,

> * How can I be sure that the standalone version is the one being
> implemented?

It depends on what your $PATH is set to. On Linux/macOS, you can run

   $ type -ap context

to list all the ConTeXts in your $PTAH. The first one in that list is
the one that will be ran by default.

If you want to always run the standalone version, then you'll need to
make sure that your ConTeXt directory comes before your TL directory in
your PATH. On Linux/macOS, you'd add something like

   export PATH="/path/to/context/bin/:$PATH"
   
to your ~/.profile; on Windows, you can use the "setx" command. Googling
something like "add location to path" will get you more specific
instructions for your OS/shell.

> * How do I update the standalone version

Just run the installer again. On my system, I run

   $ cd /opt/context
   $ sudo sh ./install.sh

> (I assume that, as of today,
> it is already the most up-to-date version

Correct.

> if and when it is
> required or desired to do so?

You only need to update ConTeXt if a new update fixes a bug that affects
you or adds a new feature that you want. Most updates are announced on
the list, so you could just update whenever you see a new update. Or you
could just try updating once per week. You could also just never update.
Up to you.

The general recommendation is to save an old copy of the ConTeXt folder
before you update in case something breaks. I've never done this before
though since I can usually patch the bugs myself, and I can always fall
back on the version in TL if something is really broken.

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

2023-04-27 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 100,908 bytes  received 21,237,423 bytes  4,741,851.33 bytes/sec
 total size is 448,578,693  speedup is 21.02


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2023-04-27.18
120744599   
/var/www/aanhet.net/context//htdocs/archives/context-2023-04-27.18/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2023-04-27.18/current
247494012   
/var/www/aanhet.net/context//htdocs/archives/context-2023-04-27.18
247494012   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
___


[NTG-context] upload

2023-04-27 Thread Hans Hagen via ntg-context

Hi,

I uploaded the last of series 2.10.07 as prelude for bachotex. That one 
also can do this:


\newfloat \MyFloat
\MyFloat \pfsin \floatexpr 1.25 * \pfpi \relax
\the\MyFloat

\the \pfsin \floatexpr 1.25 * \pfpi \relax

The syntax is like \numexpr and \dimexpr but the \pfsin (and other 
functions) are (as usual with these things) not real primitives but 
(\untraced) luacalls.


Of course it is all still somewhat experimental but likely to stay ...

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] update

2023-04-27 Thread Max Chernoff via ntg-context

Hi Hans,

> I actually dont' know the rules for updating texlive but there are
> definitely updates.

The rules are:

 - Packages and formats are updated about 24 hours after a new version
   is uploaded to CTAN.
   
 - Binaries are only updated once-per-year.

But there are also some special cases:

 - The luatex binary will be updated shortly for "reasons" (details to 
   be made public later).
   
 - The luametatex binary is allowed to be updated whenever.

  https://tug.org/pipermail/tex-live/2023-March/049058.html

 - I have no idea how ConTeXt is added to TL, but it doesn't appear to 
   be through the usual automatic CTAN sync. 
   
> Basically tex live is the yearly snapshot.

Because you're allowed to update luametatex at will and luatex hardly
changes, you could update the ConTeXt in TL more than once per year.
There's no need for it to get as many updates as the standalone
distribution, but it would be nice to get an update every 3 months or
so. (I have no idea how much work this is for you+Mojca, so it's maybe
not worth the effort).

> But you can just install the lmtx installation alongside (it's small
> compared to tex live) and have the best of both worlds. The lmtx
> installation also has mkiv. It also comes with the fonts that match
> what we expect in context (as fonts get updated or changed). 

Lynx, I'll second this recommendation. The standalone lmtx distribution
is updated weekly-ish, uses less than 400MB disk space when installed,
and coexists happily with TL. The only downside is that it doesn't have
a friendly installation GUI like TL does. Even then, I personally find
it easier to install than TL.

Installation instructions:

   https://wiki.contextgarden.net/Installation
   
Thanks,
-- Max
___
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

2023-04-27 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 100,914 bytes  received 20,433,917 bytes  3,159,204.77 bytes/sec
 total size is 448,578,496  speedup is 21.84


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2023-04-27.10
120743612   
/var/www/aanhet.net/context//htdocs/archives/context-2023-04-27.10/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2023-04-27.10/current
247493025   
/var/www/aanhet.net/context//htdocs/archives/context-2023-04-27.10
247493025   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] update

2023-04-27 Thread Hans Hagen via ntg-context

On 4/27/2023 7:11 AM, Max Chernoff via ntg-context wrote:

Hi Lynx, Aditya,



New to conTeXt, have not performed a specific update prior to this.

My conTeXt installation is part of TeXlive-2023 (under Linux OS). Will
the updates to ConTeXt be handled by tlmgr ?


No. Usually, texlive updates context once a year.


This is correct in general, but this specific update *will* end up in
TL2023 due to the engine changes that Hans mentioned. It's not in TL
yet, but we're actively working on it, so it should show up within a
week or so (hopefully).
Correction: Luigi and I are still discussing how to make it work because 
there is some init order issue and we want to be sure that context (and 
its scripts) keep working. It would be sort of weird if context (where 
luatex originates) would stop working as expected. Keep in mind that 
luatex is also a lua engine. and I assume that the texlive team also has 
some tests to perform (apart from getting all platforms updated which 
for some is more work, like apple signing).


The issue (disabling socket by default) is not that pressing as socket 
has been with us for right fromn the start) and security wise there are 
plenty ways tex can mess up your system if someone wants.


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] update

2023-04-27 Thread Hans Hagen via ntg-context

On 4/27/2023 1:54 AM, Jairo A. del Rio via ntg-context wrote:

Hi, Hans. The following happens with the last update:

loading         > ConTeXt Node Macros / Page Building
resolvers       > lua > unknown file 'node-pag.lua'

error loading file: node-pag.lua (aborting)

Indeed, the file is missing in the distribution (there's only 
node-pag.mkxl). Regards

fixed

-
  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] update

2023-04-27 Thread Hans Hagen via ntg-context

On 4/27/2023 2:50 AM, lynx--- via ntg-context wrote:

Re: performing update(s)

New to conTeXt, have not performed a specific update prior to this.

My conTeXt installation is part of TeXlive-2023 (under Linux OS). Will 
the updates to ConTeXt be handled by tlmgr ?
Basically tex live is the yearly snapshot. I actually dont' know the 
rules for updating texlive but there are definitely updates. But as much 
relates there (like engines shared between macro packages) it can be 
that only macros get updated and not engines (also relates to multiple 
platforms) so fundamental changes to luatex as engine .. hard to predict.


But you can just install the lmtx installation alongside (it's small 
compared to tex live) and have the best of both worlds. The lmtx 
installation also has mkiv. It also comes with the fonts that match what 
we expect in context (as fonts get updated or changed).


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] update

2023-04-26 Thread Max Chernoff via ntg-context
Hi Lynx, Aditya,


> > New to conTeXt, have not performed a specific update prior to this. 
> > 
> > My conTeXt installation is part of TeXlive-2023 (under Linux OS). Will
> > the updates to ConTeXt be handled by tlmgr ? 
> 
> No. Usually, texlive updates context once a year. 

This is correct in general, but this specific update *will* end up in
TL2023 due to the engine changes that Hans mentioned. It's not in TL
yet, but we're actively working on it, so it should show up within a
week or so (hopefully).

Thanks,
-- Max
___
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] update

2023-04-26 Thread Jairo A. del Rio via ntg-context
This is weird, but documents compile just fine if I comment the following
line in node-pag.mkxl:

\registerctxlua{node-pag}{}

Maybe leftovers from some experiment here?

Best regards.

El mié, 26 abr 2023 a la(s) 21:25, Rik Kabel via ntg-context (
ntg-context@ntg.nl) escribió:

>
> On 2023-04-26 19:54, Jairo A. del Rio via ntg-context wrote:
> > Hi, Hans. The following happens with the last update:
> >
> > loading > ConTeXt Node Macros / Page Building
> > resolvers   > lua > unknown file 'node-pag.lua'
> >
> > error loading file: node-pag.lua (aborting)
> >
> > Indeed, the file is missing in the distribution (there's only
> > node-pag.mkxl). Regards
>
>
> Same here, Windows 11 x64.
>
> --
> Rik
>
>
> ___
> 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
___


Re: [NTG-context] update

2023-04-26 Thread Rik Kabel via ntg-context


On 2023-04-26 19:54, Jairo A. del Rio via ntg-context wrote:

Hi, Hans. The following happens with the last update:

loading         > ConTeXt Node Macros / Page Building
resolvers       > lua > unknown file 'node-pag.lua'

error loading file: node-pag.lua (aborting)

Indeed, the file is missing in the distribution (there's only 
node-pag.mkxl). Regards



Same here, Windows 11 x64.

--
Rik

___
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] update

2023-04-26 Thread Aditya Mahajan via ntg-context
On Wed, 26 Apr 2023, lynx--- via ntg-context wrote:

> Re: performing update(s) 
> 
> New to conTeXt, have not performed a specific update prior to this. 
> 
> My conTeXt installation is part of TeXlive-2023 (under Linux OS). Will
> the updates to ConTeXt be handled by tlmgr ? 

No. Usually, texlive updates context once a year. 

Aditya
___
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] update

2023-04-26 Thread Jairo A. del Rio via ntg-context
Hi, Hans. The following happens with the last update:

loading > ConTeXt Node Macros / Page Building
resolvers   > lua > unknown file 'node-pag.lua'

error loading file: node-pag.lua (aborting)

Indeed, the file is missing in the distribution (there's only
node-pag.mkxl). Regards

El mié, 26 abr 2023 a la(s) 16:56, Hans Hagen via ntg-context (
ntg-context@ntg.nl) escribió:

> Hi,
>
> I uploaded a new version with some new features discussed at the end of
> this mail.
>
> - A next version of luatex will break context (format making etc) but
> the change is unavoidable because of other macro package demands wrt
> security (context does that differently). The low level start up command
> has been adapted so unless you update indepdently thinsg should work ok.
>   Of course this has no consequences for lmtx.
>
> - I've done a bit of callback cleanup (like getting rid of some mkiv
> luatex left-overs). It should have no effect on regular usage.
>
> - There again a few improvements wrt math (this time dealing with
> accents artifacts in some fonts). We check all the free math fonts for
> potential issues and then try to fix it (read: deal with it). It's a lot
> of work but we're getting there.
>
> - A few reported buglets have been fixed.
>
> - The biggest addition is however a new number model. In metapost one
> can now use 'posit' (positfun instance) as number mode which will use
> (currently 32 bit but at some point 64 bit) posit unums. It's also bit
> of a playground because 32 bit posits are not more accurate than 64 bit
> doubles. It anyhow exposed some potential issues that we'll look into.
>
> - There's also a (again currently 32 bit) posit library at the Lua end
> as playground.
>
> - However, 32 bit posits come in handy at the tex end because they pack
> better accuracy in 32 bits than floats and it makes it possible to have
> native floats, so we have:
>
> \newfloat  (uses \floatdef, register like \dimendef is used in \newdimen)
>
> \newposit  (uses \positdef, like \dimensiondef etc)
>
> \floatexpr (like \numexpr)
>
> \iffloat   (like \ifnum) (also \ifabsfloat and i'll add the others too)
>
> Actually it adds an extra range of registers so it bumps memory usage a
> bit. I'm considering lowering the number of registers (currently 64K per
> category) because after all, if 64K is not enough then we can as well
> stick to 32K or 16K (for some even less). There's always Lua for
> unlimited storage of quantities.
>
> So,
>
> \newfloat\fooA
>
> \scratchdimen=123.456pt\relax[\type{dim:}
> \the\scratchdimen==123.456pt]\par
> \fooA=123.456\relax  [\type{pos:} \the\fooA
> ==123.456]  \par
> \fooA=\scratchdimen\relax[\type{pos:} \the\fooA
> ==123.456]  \par
> \scratchdimen=\fooA\relax[\type{dim:}
> \the\scratchdimen==123.456pt]\par
> \scratchdimen\dimexpr\fooA+10pt\relax[\type{dim:}
> \the\scratchdimen==133.456pt]\par
>
> produces
>
> [dim: 123.456pt==123.456pt]
> [pos: 123.45600128173828==123.456]
> [pos: 123.45599365234375==123.456]
> [dim: 123.456pt==123.456pt]
> [dim: 133.456pt==133.456pt]
>
> As you can see dimens will get mapped onto floats not as integers
> (scaled points) but in pt units. Counts stay numbers. I need to handle
> glue too (not yet done).
>
> In the future I might use this for fractions but there might be some
> rough ends so for now it's experimental.
>
> 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
>
> ___
>
___
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

2023-04-26 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 100,680 bytes  received 22,125,091 bytes  3,419,349.38 bytes/sec
 total size is 448,578,908  speedup is 20.18


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2023-04-27.00
120742673   
/var/www/aanhet.net/context//htdocs/archives/context-2023-04-27.00/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2023-04-27.00/current
247492086   
/var/www/aanhet.net/context//htdocs/archives/context-2023-04-27.00
247492086   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] Font error in PDF using ConTeXt and Kepler typeface

2023-04-26 Thread Werner Schmidt via ntg-context
Hi all,

thanks for your ideas!

Could figure out the following:
- font files are found in the correct path  and cached & loaded properly (no 
second copies, no name clashes) 
- issue occurs under Linux as well as Windows
- issue is related only to some particular font files of the font family (not 
all) 

On April 25, 2023 9:21:57 PM UTC, Bruce Horrocks via ntg-context 
 wrote:
>Another check you can do is to run
>
>  $ mtxrun --script font --list --name '--pattern=*kepler*'
>
>and see if the file for keplerstd-light is the one you are expecting and not a 
>second copy somewhere that is upsetting things.
>
>
>> On 25 Apr 2023, at 21:40, lynx--- via ntg-context  wrote:
>> 
>> Werner:
>> This is the one that I think will help the most (taken from the Fonts out of 
>> Context manual, pp 147 - 148
>> "If you want to use Lucida, all you have to do when you have bought the 
>> fonts, is to put
>> the OpenType files in a place where they can be found, for instance:
>> 
>> tex/texmf-fonts/fonts/data/lucida
>> 
>> Of course you need to run mtxrun --generate afterwards so that the files can 
>> be found.
>> 
>> 
>> 
>> On 2023-04-25 12:34, lynx--- via ntg-context wrote:
>>> Hello, Werner:
>>> Have you tried some diagnostic tests, such as trying to get the PDF output 
>>> via DVIPS? I suspect that you are, in fact, more knowledgeable and 
>>> experience with ConTeXt than I am, but for what it is worth you may want to 
>>> look at:
>>> • \setupoutput[dvips,acrobat] (see: Context-The Manual (Hans Hagen; 
>>> English, page 24))
>>> • \showbodyfont[Options] (see: Not-so-short Intro to ConTeXt (J. 
>>> Ataz-Lopez;English, page 114))
>>> • $ mtxrun  (mtxrun  is the ConTeXt TDS Runner Tool) command from a 
>>> terminal window it has has a large number of options for finding the fonts 
>>> installed, and for querying their characteristics (see: Fonts out of 
>>> ConTeXt (Hans Hagen, pg 52 and ff))
>>> Em
>>> 
>>> On 2023-04-25 08:50, Werner Schmidt via ntg-context wrote:
>>> Hi conTeXt folks,
>>> 
>>> may I ask again. How could I debug the font typesetting of PDF files with 
>>> conTeXt?
>>> 
>>> Any help is highly appreciated.
>>> 
>>> Best Werner
>>> 
>>> On April 21, 2023 1:29:18 PM UTC, Werner Schmidt via ntg-context 
>>>  wrote: Hi all,
>>> 
>>> I'd like to use the commercial Adobe Kepler typeface (Kepler Std - version 
>>> 2.020) in conTeXt (v2023-04-15) as text (serif) font. Although the font 
>>> files are loaded correctly (see log below), the generated PDF is unreadable 
>>> (see attached image).
>>> 
>>> Notes:
>>> - Only serif font (keplerstd-light.otf) is not working. It's not embedded 
>>> in the generated PDF.
>>> - italics and bold fonts are embedded and are rendered well
>>> - Can't provide font files because Kepler is a commercial typeface
>>> 
>>> Do you have any ideas how to debug this issue?
>>> 
>>> Thanks Werner
>>> 
>>> log file:
>>> mkiv lua stats > loaded fonts: 10 files: fontawesome6freesolid900.otf, 
>>> frutigernextpro-bold.otf, frutigernextpro-regular.otf, 
>>> iosevka-term-ss09-light.ttf, keplerstd-light.otf, keplerstd-lightcapt.otf, 
>>> keplerstd-lightit.otf, keplerstd-semibold.otf, latinmodern-math.otf, 
>>> lmroman10-regular.otf
>>> mkiv lua stats > font engine: otf 3.133, afm 1.513, tfm 1.000, 30 
>>> instances, 18 shared in backend, 3 common vectors, 15 common hashes, load 
>>> time 0.449 seconds
>>> Example:
>>> 
>>> This text can't be read in PDF.par
>>> {it However, italics are working.}par
>>> {bold Also Bold and bfem BoldItalics!}par
>>> input{zapf} 
>
>> 
>
>—
>Bruce Horrocks
>Hampshire, UK
>
>___
>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] update

2023-04-26 Thread Hans Hagen via ntg-context

Hi,

I uploaded a new version with some new features discussed at the end of 
this mail.


- A next version of luatex will break context (format making etc) but 
the change is unavoidable because of other macro package demands wrt 
security (context does that differently). The low level start up command
has been adapted so unless you update indepdently thinsg should work ok. 
 Of course this has no consequences for lmtx.


- I've done a bit of callback cleanup (like getting rid of some mkiv 
luatex left-overs). It should have no effect on regular usage.


- There again a few improvements wrt math (this time dealing with 
accents artifacts in some fonts). We check all the free math fonts for 
potential issues and then try to fix it (read: deal with it). It's a lot 
of work but we're getting there.


- A few reported buglets have been fixed.

- The biggest addition is however a new number model. In metapost one 
can now use 'posit' (positfun instance) as number mode which will use 
(currently 32 bit but at some point 64 bit) posit unums. It's also bit 
of a playground because 32 bit posits are not more accurate than 64 bit 
doubles. It anyhow exposed some potential issues that we'll look into.


- There's also a (again currently 32 bit) posit library at the Lua end 
as playground.


- However, 32 bit posits come in handy at the tex end because they pack 
better accuracy in 32 bits than floats and it makes it possible to have 
native floats, so we have:


\newfloat  (uses \floatdef, register like \dimendef is used in \newdimen)

\newposit  (uses \positdef, like \dimensiondef etc)

\floatexpr (like \numexpr)

\iffloat   (like \ifnum) (also \ifabsfloat and i'll add the others too)

Actually it adds an extra range of registers so it bumps memory usage a 
bit. I'm considering lowering the number of registers (currently 64K per 
category) because after all, if 64K is not enough then we can as well 
stick to 32K or 16K (for some even less). There's always Lua for 
unlimited storage of quantities.


So,

\newfloat\fooA

\scratchdimen=123.456pt\relax[\type{dim:} 
\the\scratchdimen==123.456pt]\par
\fooA=123.456\relax  [\type{pos:} \the\fooA 
==123.456]  \par
\fooA=\scratchdimen\relax[\type{pos:} \the\fooA 
==123.456]  \par
\scratchdimen=\fooA\relax[\type{dim:} 
\the\scratchdimen==123.456pt]\par
\scratchdimen\dimexpr\fooA+10pt\relax[\type{dim:} 
\the\scratchdimen==133.456pt]\par


produces

[dim: 123.456pt==123.456pt]
[pos: 123.45600128173828==123.456]
[pos: 123.45599365234375==123.456]
[dim: 123.456pt==123.456pt]
[dim: 133.456pt==133.456pt]

As you can see dimens will get mapped onto floats not as integers 
(scaled points) but in pt units. Counts stay numbers. I need to handle 
glue too (not yet done).


In the future I might use this for fractions but there might be some 
rough ends so for now it's experimental.


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] Filter Module with Openscad

2023-04-26 Thread Aditya Mahajan via ntg-context
On Wed, 26 Apr 2023, Jeroen via ntg-context wrote:

> I am using OpenSCAD to create drawings with the filter module with the
> following MWE:
> 
> \usemodule[filter]
> \defineexternalfilter[openscad]
>   [filtercommand={/context/openscad/openscad -o \externalfilteroutputfile},
>output={\externalfilterbasefile.png},
>cache=force,
>readcommand=\ReadImage]
> \define[1]\ReadImage{\externalfigure[#1]}
> 
> \starttext
> \startopenscad
>   square(4,2);
> \stopopenscad
> \stoptext
> 
> This works fine. I now want to use the following options added to the
> command line: --view axes,edges,scales --viewall
> 
> When I create an Openscad file test.scad, I can run it fine with the
> following command line at a CLI window:
> 
> openscad.com test.scad -o test.png --view axes,edges,scales --viewall
> 
> When I add this to the filtercommand as following
> 
> [filtercommand={/context/openscad/openscad -o
> \externalfilteroutputfile --view axes,edges,scales --viewall}
> 
> I cannot get it to run. Is there anything I am missing?

My guess is that you need:

[filtercommand={/context/openscad/openscad -o \externalfilteroutputfile\space 
--view axes,edges,scales --viewall}

this is because any macro \something gobbles the space after that. 

Aditya
___
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] Numbered Itemlist With Interruption

2023-04-25 Thread Michael Urban via ntg-context



> On Apr 25, 2023, at 8:30 PM, jbf via ntg-context  wrote:
> 
> 
> \startitemize[continue]% THIS SHOULD DO WHAT YOU WANT


Wow, thanks.  I must have read that 'Enumerations' contextgarden wiki page a 
half dozen times and missed it anyway.

Mike

___
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] Numbered Itemlist With Interruption

2023-04-25 Thread Michael Urban via ntg-context
I am trying to have two numbered itemizations, with a paragraph in between, 
such that the second list starts where the first left off, without having to 
manually calculate the new start point.  The following does not work, and I do 
not understand why.

Mike


\starttext
\definecounter[mynumber][]
\startitemize[n]
\item The first item.
\item The second item
\item Item number \currentitemnumber{}, the last one.
\setcounter[mynumber][\currentitemnumber]
\stopitemize

The \type{\getnumber[mynumber]} value is \getnumber[mynumber].
\incrementcounter[mynumber]

And now the big finish, start at \getnumber[mynumber]:
\startitemize[n][start=\getnumber[mynumber]] % WHY DOES THIS FAIL? 
\item Picking up where we left off.

\item And all is well.
\stopitemize
Done!
\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] Font error in PDF using ConTeXt and Kepler typeface

2023-04-25 Thread Bruce Horrocks via ntg-context
Another check you can do is to run

  $ mtxrun --script font --list --name '--pattern=*kepler*'

and see if the file for keplerstd-light is the one you are expecting and not a 
second copy somewhere that is upsetting things.


> On 25 Apr 2023, at 21:40, lynx--- via ntg-context  wrote:
> 
> Werner:
> This is the one that I think will help the most (taken from the Fonts out of 
> Context manual, pp 147 - 148
> "If you want to use Lucida, all you have to do when you have bought the 
> fonts, is to put
> the OpenType files in a place where they can be found, for instance:
> 
> tex/texmf-fonts/fonts/data/lucida
> 
> Of course you need to run mtxrun --generate afterwards so that the files can 
> be found.
> 
> 
> 
> On 2023-04-25 12:34, lynx--- via ntg-context wrote:
>> Hello, Werner:
>> Have you tried some diagnostic tests, such as trying to get the PDF output 
>> via DVIPS? I suspect that you are, in fact, more knowledgeable and 
>> experience with ConTeXt than I am, but for what it is worth you may want to 
>> look at:
>> • \setupoutput[dvips,acrobat] (see: Context-The Manual (Hans Hagen; 
>> English, page 24))
>> • \showbodyfont[Options] (see: Not-so-short Intro to ConTeXt (J. 
>> Ataz-Lopez;English, page 114))
>> • $ mtxrun  (mtxrun  is the ConTeXt TDS Runner Tool) command from a 
>> terminal window it has has a large number of options for finding the fonts 
>> installed, and for querying their characteristics (see: Fonts out of ConTeXt 
>> (Hans Hagen, pg 52 and ff))
>> Em
>> 
>> On 2023-04-25 08:50, Werner Schmidt via ntg-context wrote:
>> Hi conTeXt folks,
>> 
>> may I ask again. How could I debug the font typesetting of PDF files with 
>> conTeXt?
>> 
>> Any help is highly appreciated.
>> 
>> Best Werner
>> 
>> On April 21, 2023 1:29:18 PM UTC, Werner Schmidt via ntg-context 
>>  wrote: Hi all,
>> 
>> I'd like to use the commercial Adobe Kepler typeface (Kepler Std - version 
>> 2.020) in conTeXt (v2023-04-15) as text (serif) font. Although the font 
>> files are loaded correctly (see log below), the generated PDF is unreadable 
>> (see attached image).
>> 
>> Notes:
>> - Only serif font (keplerstd-light.otf) is not working. It's not embedded in 
>> the generated PDF.
>> - italics and bold fonts are embedded and are rendered well
>> - Can't provide font files because Kepler is a commercial typeface
>> 
>> Do you have any ideas how to debug this issue?
>> 
>> Thanks Werner
>> 
>> log file:
>> mkiv lua stats > loaded fonts: 10 files: fontawesome6freesolid900.otf, 
>> frutigernextpro-bold.otf, frutigernextpro-regular.otf, 
>> iosevka-term-ss09-light.ttf, keplerstd-light.otf, keplerstd-lightcapt.otf, 
>> keplerstd-lightit.otf, keplerstd-semibold.otf, latinmodern-math.otf, 
>> lmroman10-regular.otf
>> mkiv lua stats > font engine: otf 3.133, afm 1.513, tfm 1.000, 30 instances, 
>> 18 shared in backend, 3 common vectors, 15 common hashes, load time 0.449 
>> seconds
>> Example:
>> 
>> This text can't be read in PDF.par
>> {it However, italics are working.}par
>> {bold Also Bold and bfem BoldItalics!}par
>> input{zapf} 

> 

—
Bruce Horrocks
Hampshire, UK

___
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] Font error in PDF using ConTeXt and Kepler typeface

2023-04-25 Thread Werner Schmidt via ntg-context
Hi conTeXt folks,

may I ask again. How could I debug the font typesetting of PDF files with 
conTeXt?

Any help is highly appreciated.

Best Werner

On April 21, 2023 1:29:18 PM UTC, Werner Schmidt via ntg-context 
 wrote:
>Hi all,
>
>I'd like to use the commercial Adobe Kepler typeface (Kepler Std - version 
>2.020) in conTeXt (v2023-04-15) as text (serif) font. Although the font files 
>are loaded correctly (see log below), the generated PDF is unreadable (see 
>attached image).
>
>Notes:
> - Only serif font (keplerstd-light.otf) is not working. It's not embedded in 
> the generated PDF.
> - italics and bold fonts are embedded and are rendered well
> - Can't provide font files because Kepler is a commercial typeface
>
>Do you have any ideas how to debug this issue?
>
>Thanks Werner
>
>log file:
>mkiv lua stats > loaded fonts: 10 files: fontawesome6freesolid900.otf, 
>frutigernextpro-bold.otf, frutigernextpro-regular.otf, 
>iosevka-term-ss09-light.ttf, keplerstd-light.otf, keplerstd-lightcapt.otf, 
>keplerstd-lightit.otf, keplerstd-semibold.otf, latinmodern-math.otf, 
>lmroman10-regular.otf
>mkiv lua stats > font engine: otf 3.133, afm 1.513, tfm 1.000, 30 instances, 
>18 shared in backend, 3 common vectors, 15 common hashes, load time 0.449 
>seconds
>Example:
>
>This text can't be read in PDF.par
>{it However, italics are working.}par
>{bold Also Bold and bfem BoldItalics!}par
>input{zapf}
___
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] Idea for a shared repository.

2023-04-25 Thread Henning Hraban Ramm via ntg-context

Am 25.04.23 um 17:13 schrieb Aditya Mahajan via ntg-context:

On Tue, 25 Apr 2023, Pawel Urbanski via ntg-context wrote:


What about creating a repository called: 'templates' or 'resources' - we can
figure out the exact name later.


Why not use the wiki for such documents? For fonts, there is already a wiki 
page collecting typescripts:

https://wiki.contextgarden.net/Typescripts_examples

There are also a collection of templates which are already on the wiki:

https://wiki.contextgarden.net/Category:Sample_documents



It is not about duplicating the Context garden site but to collect code in a
place where we could gradually fix possible errors or introduce improvements.


This can be done on the wiki as well.


I agree that it makes most sense to keep examples and (font) setups in 
the wiki.


Projects with several files, like modules, should have their own (git) 
repositories. (The scripts at modules.contextgarden.net can pull 
releases directly from a repository.)


I think it’s better to have (and manage) your own account somewhere and 
link to it from the wiki than to use the “official” account for stuff 
that is not part of ConTeXt proper.


My stuff is at https://codeberg.org/fiee/; some of that would also make 
(more) sense in the wiki.


Hraban

___
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] Idea for a shared repository.

2023-04-25 Thread Aditya Mahajan via ntg-context
On Tue, 25 Apr 2023, Pawel Urbanski via ntg-context wrote:

> What about creating a repository called: 'templates' or 'resources' - we can
> figure out the exact name later.

Why not use the wiki for such documents? For fonts, there is already a wiki 
page collecting typescripts:

https://wiki.contextgarden.net/Typescripts_examples

There are also a collection of templates which are already on the wiki:

https://wiki.contextgarden.net/Category:Sample_documents


> It is not about duplicating the Context garden site but to collect code in a
> place where we could gradually fix possible errors or introduce improvements.

This can be done on the wiki as well.

Aditya
___
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] Idea for a shared repository.

2023-04-25 Thread Pawel Urbanski via ntg-context

Dear Everyone,

We currently have the Context Garden site, wiki and htis list for 
documentation and resources.



There is a Github contextgarden organization that can host repositories.


What about creating a repository called: 'templates' or 'resources' - we 
can figure out the exact name later.



The idea behind it is to collect templates and examples that are 
scattered all over the web or in the list threads. The first example 
that comes to my mind is the type definition for a Roboto font I needed 
and other type scripts that can be useful for the community. Then there 
are templates for books, slides or documents. The Repository has a wiki 
where we could add some notes about more complex items.



It is not about duplicating the Context garden site but to collect code 
in a place where we could gradually fix possible errors or introduce 
improvements.



All the best,

Pawel

___
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] fallbacks

2023-04-24 Thread Sylvain Hubert via ntg-context
I believe it's a bug.

https://github.com/contextgarden/context/blob/d025bcdf995be6951f69fed6869048ab22491b9e/tex/context/base/mkxl/font-col.lmt#L278

the newchar[] table, which should contain all chars supported by the
fallback termes font if I'm not mistaken, turns out to have only 392 chars
within 0x20-0x30C, far away from 0x2329-0x232A.

On Sun, 23 Apr 2023 at 03:26, Thomas A. Schmitz via ntg-context <
ntg-context@ntg.nl> wrote:

> Thank you, Pablo, but that doesn't help. I know how to use fallback
> fonts. I was wondering if the check key is working as it should.
>
> Thomas
>
> On 4/22/23 20:33, Pablo Rodriguez via ntg-context wrote:
> > Hi Thomas,
> >
> > I don’t know what check does (maybe just check?), but the standard
> > behaviour with \definefallbackfamily is only to fall back when the
> > character is missing from the main font.
> >
> > To force all characters from the range in the fallback font, "force=yes"
> > is required.
> >
> > Here you have a minimal sample (which doesn‘t use "preset=range:greek"),
> > adding "force=yes" gets all Greek glyphs from GFS Heraklit:
> >
> >\definefallbackfamily [presentation] [serif] [GFSHeraklit]
> >[range={greekandcoptic, greekextended}]
> >\definefontfamily [presentation] [serif] [TeXGyrePagella]
> >\setupbodyfont [presentation,12pt]
> >
> >\starttext
> >Pπμᾷσδ
> >\stoptext
> >
> > Just in case it might help,
>
> --
> Prof. Dr. Thomas A. Schmitz
> Institut für Klassische und Romanische Philologie
> Universität Bonn
> Am Hof 1e
> 53113 Bonn
> http://www.philologie.uni-bonn.de/de/personal/schmitz
>
>
> ___
> 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
___


Re: [NTG-context] adjustment to my local footnotes problem

2023-04-24 Thread Henning Hraban Ramm via ntg-context

Am 24.04.23 um 11:21 schrieb jbf via ntg-context:
Well, Hraban, you say that \directsetup makes no sense any more in LMTX, 
but in this case  (I use LMTX, not MKIV) I tried it without 
\directsetup, it did not work and furthermore I got an error. That is 
why I commented that I did not understand what \directsetup really does 
(or doesn't do as you are suggesting).


For now the immediate problem is resolved, and I am happy about that, 
but I don't understand why it works with \directsetup but not without it 
in LMTX (my version December last year)


Sorry, that was what Hans told me.
Maybe I misunderstood.
Seems like \directsetup is still necessary in this case, so I must fix 
my documentation.


Hraban
___
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] adjustment to my local footnotes problem

2023-04-24 Thread Henning Hraban Ramm via ntg-context

Am 23.04.23 um 23:36 schrieb jbf via ntg-context:
I tried all those Hraban, unsuccessfully, but finally 'happened' upon a 
solution by trying whitespace instead in the setups. Except that I had 
read somewhere in the mailing list (Pablo I think) that I would need to 
use \directsetup. I don't actually understand why, have never been sure 
about what \directsetup does, but there's no doubt it works in this 
case! So the following has done what I needed:


I’m sorry, I didn’t test my suggestion.

In MkIV, \directsetup or \fastsetup are a bit faster than \setup. They 
can load only one setup and catch less errors. In LMTX, they don’t make 
sense any more.


Hraban
___
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] adjustment to my local footnotes problem

2023-04-23 Thread Henning Hraban Ramm via ntg-context

Am 23.04.23 um 09:21 schrieb jbf via ntg-context:
I realise that I should have been talking about the space between local 
footnotes, rather than interlinespace (previous email on this issue), 
but my basic problem still stands. My efforts to influence the space 
between footnotes placed locally is to no avail so far.


I assume it is \setupnote (rather than \setupnotation, my earlier 
mistake) where I would need to somehow influence distance between 
footnotes which is currently too large. I have tried 
\setupnote[before={\blank[small]}, after={\blank[small]}]. It appears to 
be reducing the space before the entire block of local footnotes but not 
between the footnotes themselves, which is what I am trying to do.


Did you try "inbetween" or "distance"? (I’d assume the latter is for the 
distance between number and text, but inbetween is usually vertically.)


https://wiki.contextgarden.net/Command/setupnote

Am I correct in assuming that the \setupnote should influence my 
\placelocalfootnotes? Or is there something else I should do in the case 
of local footnotes as distinct from general footnotes (my document 
contains ONLY local footnotes, however).


I was wondering if \setupnote[localfootnote][…] makes sense, but I can’t 
find in the sources if local footnotes are setup differently from 
general one.


Hraban

___
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] current Unicode blocks

2023-04-23 Thread Henning Hraban Ramm via ntg-context

Am 22.04.23 um 21:34 schrieb Hans Hagen via ntg-context:

On 4/22/2023 5:49 PM, Henning Hraban Ramm via ntg-context wrote:

This is probably for Hans:

The list of Unicode blocks in char-ini.lua is not complete, compared 
with ftp://www.unicode.org/Public/UNIDATA/Blocks.txt

(I was looking for Kaktovik numerals, of course ;))


hm, here i have

     ["kaktoviknumerals"]    = { first = 
0x1D2C0, last = 0x1D2DF,  description = "Kaktovik Numerals" },


Oh, sorry, I was just looking at the source browser. Garden isn’t current.


I’d offer to make an updated list, but maybe you already have a script 
for that?
yes, (of course) i have a script that i run when there is an update 
which then tells me what to add to the tables (not that much work, 
mostly emoiji and soem rare scripts nowadays)


Thought so.

maybe nice for a demo at the ctx meeting (generate new files, visually 
diff them so get the picture and then merge)


Sure!

Hraban
___
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] current Unicode blocks

2023-04-22 Thread Hans Hagen via ntg-context

On 4/22/2023 5:49 PM, Henning Hraban Ramm via ntg-context wrote:

This is probably for Hans:

The list of Unicode blocks in char-ini.lua is not complete, compared 
with ftp://www.unicode.org/Public/UNIDATA/Blocks.txt

(I was looking for Kaktovik numerals, of course ;))


hm, here i have

["kaktoviknumerals"]= { first = 
0x1D2C0, last = 0x1D2DF,  description = "Kaktovik Numerals" },


I’d offer to make an updated list, but maybe you already have a script 
for that?
yes, (of course) i have a script that i run when there is an update 
which then tells me what to add to the tables (not that much work, 
mostly emoiji and soem rare scripts nowadays)


maybe nice for a demo at the ctx meeting (generate new files, visually 
diff them so get the picture and then merge)


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] fallbacks

2023-04-22 Thread Thomas A. Schmitz via ntg-context
Thank you, Pablo, but that doesn't help. I know how to use fallback 
fonts. I was wondering if the check key is working as it should.


Thomas

On 4/22/23 20:33, Pablo Rodriguez via ntg-context wrote:

Hi Thomas,

I don’t know what check does (maybe just check?), but the standard
behaviour with \definefallbackfamily is only to fall back when the
character is missing from the main font.

To force all characters from the range in the fallback font, "force=yes"
is required.

Here you have a minimal sample (which doesn‘t use "preset=range:greek"),
adding "force=yes" gets all Greek glyphs from GFS Heraklit:

   \definefallbackfamily [presentation] [serif] [GFSHeraklit]
   [range={greekandcoptic, greekextended}]
   \definefontfamily [presentation] [serif] [TeXGyrePagella]
   \setupbodyfont [presentation,12pt]

   \starttext
   Pπμᾷσδ
   \stoptext

Just in case it might help,


--
Prof. Dr. Thomas A. Schmitz
Institut für Klassische und Romanische Philologie
Universität Bonn
Am Hof 1e
53113 Bonn
http://www.philologie.uni-bonn.de/de/personal/schmitz

___
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] fallbacks

2023-04-22 Thread Pablo Rodriguez via ntg-context
On 4/22/23 18:05, Thomas A. Schmitz via ntg-context wrote:
> Hi all,
> 
> today, I was struggling with a fallback font I had defined, and I 
> discovered that the key "check" doesn't work as I expected.
> [...] 
> If I have "check=no," the characters are taken from termes and replaced. 
> I was under the impression that "check" should, well, check if the 
> characters are not in the main font and fall back to the fallback font
> if they are not, but this doesn't appear to be the case.

Hi Thomas,

I don’t know what check does (maybe just check?), but the standard
behaviour with \definefallbackfamily is only to fall back when the
character is missing from the main font.

To force all characters from the range in the fallback font, "force=yes"
is required.

Here you have a minimal sample (which doesn‘t use "preset=range:greek"),
adding "force=yes" gets all Greek glyphs from GFS Heraklit:

  \definefallbackfamily [presentation] [serif] [GFSHeraklit]
  [range={greekandcoptic, greekextended}]
  \definefontfamily [presentation] [serif] [TeXGyrePagella]
  \setupbodyfont [presentation,12pt]

  \starttext
  Pπμᾷσδ
  \stoptext

Just in case it might 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
___


[NTG-context] fallbacks

2023-04-22 Thread Thomas A. Schmitz via ntg-context

Hi all,

today, I was struggling with a fallback font I had defined, and I 
discovered that the key "check" doesn't work as I expected. Here's a 
small example:


\definefallbackfamily [presentation] [serif] [TeXGyreTermes] 
[range=0x2329-0x232A,check=yes]

\definefontfamily [presentation] [serif] [AntykwaTorunska]
\setupbodyfont [presentation,12pt]

\starttext

(〈P〉)

\stoptext

With this input, the two characters 〈 and 〉 are not typeset; in the log, 
I find


fonts   > checking > char 〈 (U+02329) in font 
'AntykwaTorunska-Regular' with id 1: missing
fonts   > checking > char 〉 (U+0232A) in font 
'AntykwaTorunska-Regular' with id 1: missing


If I have "check=no," the characters are taken from termes and replaced. 
I was under the impression that "check" should, well, check if the 
characters are not in the main font and fall back to the fallback font 
if they are not, but this doesn't appear to be the case. So what does 
"check" do? Or is this a bug?


Have a great weekend

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] current Unicode blocks

2023-04-22 Thread Henning Hraban Ramm via ntg-context

This is probably for Hans:

The list of Unicode blocks in char-ini.lua is not complete, compared 
with ftp://www.unicode.org/Public/UNIDATA/Blocks.txt

(I was looking for Kaktovik numerals, of course ;))

I’d offer to make an updated list, but maybe you already have a script 
for that?


Hraban
___
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] Table of contents not appearing.

2023-04-21 Thread Fabrice Couvreur via ntg-context
An extra parenthesis in a section title seems to be the problem but I'm not
sure. I compiled the file line by line and it works now.
Thanks
Fabrice

Le ven. 21 avr. 2023 à 14:37, Hans Hagen via ntg-context 
a écrit :

> On 4/21/2023 5:05 PM, Fabrice Couvreur via ntg-context wrote:
> > It's chapter_5 that's the problem, but how do you know what's causing
> > the table of contents not to appear ?
> depends on the error : the toc comes from the tuc file so if that one is
> not made ...
>
> -
>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
>
> ___
>
___
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] Table of contents not appearing.

2023-04-21 Thread Hans Hagen via ntg-context

On 4/21/2023 5:05 PM, Fabrice Couvreur via ntg-context wrote:
It's chapter_5 that's the problem, but how do you know what's causing 
the table of contents not to appear ?
depends on the error : the toc comes from the tuc file so if that one is 
not made ...


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


[NTG-context] Font error in PDF using ConTeXt and Kepler typeface

2023-04-21 Thread Werner Schmidt via ntg-context
Hi all,

I'd like to use the commercial Adobe Kepler typeface (Kepler Std - version 
2.020) in conTeXt (v2023-04-15) as text (serif) font. Although the font files 
are loaded correctly (see log below), the generated PDF is unreadable (see 
attached image).

Notes:
 - Only serif font (keplerstd-light.otf) is not working. It's not embedded in 
the generated PDF.
 - italics and bold fonts are embedded and are rendered well
 - Can't provide font files because Kepler is a commercial typeface

Do you have any ideas how to debug this issue?

Thanks Werner

log file:
mkiv lua stats > loaded fonts: 10 files: fontawesome6freesolid900.otf, 
frutigernextpro-bold.otf, frutigernextpro-regular.otf, 
iosevka-term-ss09-light.ttf, keplerstd-light.otf, keplerstd-lightcapt.otf, 
keplerstd-lightit.otf, keplerstd-semibold.otf, latinmodern-math.otf, 
lmroman10-regular.otf
mkiv lua stats > font engine: otf 3.133, afm 1.513, tfm 1.000, 30 instances, 18 
shared in backend, 3 common vectors, 15 common hashes, load time 0.449 seconds
Example:

This text can't be read in PDF.par
{it However, italics are working.}par
{bold Also Bold and bfem BoldItalics!}par
input{zapf}
___
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] Table of contents not appearing.

2023-04-21 Thread Fabrice Couvreur via ntg-context
It's chapter_5 that's the problem, but how do you know what's causing the
table of contents not to appear ?

Le ven. 21 avr. 2023 à 14:42, Fabrice Couvreur 
a écrit :

> Hi Hans,
> Alright, I'll compile by integrating one component at a time to figure out
> which one is causing the problem.
> Thanks.
> Fabrice
>
> Le jeu. 20 avr. 2023 à 15:52, Hans Hagen via ntg-context <
> ntg-context@ntg.nl> a écrit :
>
>> On 4/20/2023 6:59 PM, Fabrice Couvreur via ntg-context wrote:
>> > Hi,
>> > I don't see why the table of contents does not appear. On the other
>> > hand, the 12 chapters are present.
>>
>> \startproduct[terminale-manual]
>>
>>  \startfrontmatter
>>  \starttitle[title=Table des matières]
>>  \placelist
>> [chapter,section,subsection,subsubsection]
>> [criterium=all,
>> interaction=all,
>>  alternative=c]
>>  \stoptitle
>>  \stopfrontmatter
>>
>>  \startbodymatter
>>  \chapter{xxx}
>>  \stopbodymatter
>>
>> \stopproduct
>>
>> shows a table of contents so it must be something in your components
>>
>> > Fabrice
>> >
>> >
>> > \startproduct[terminale-manual]
>> >
>> >\project[terminale-environment]
>> >\startfrontmatter
>> >
>> >  \setuppagenumbering
>> > [location=]
>> >
>> >  \definefont
>> >[ChapterTextStyle]
>> >[SansBold*default sa 2.2]
>> >
>> >  \setuphead
>> >[title]
>> >[style=ChapterTextStyle,
>> > align=flushright]
>> >
>> >  \setuplist
>> > [chapter]
>> > [style=bold,
>> >  alternative=b,
>> >  width=1em]
>> >
>> >  \setuplist
>> > [section]
>> > [margin=1em,
>> >  width=1.75em]
>> >
>> >  \setuplist
>> > [subsection]
>> > [margin=2.75em,
>> >  width=2.25em,
>> > distance=\spaceamount]
>> >
>> >
>> >  \starttitle[title=Table des matières]
>> >
>> >   \placelist
>> > [chapter,section,subsection,subsubsection]
>> > [criterium=all,
>> > interaction=all,
>> >  alternative=c]
>> >
>> >\stoptitle
>> >
>> >  \stopfrontmatter
>> >
>> >  \startbodymatter
>> >\component[chapitre_1]
>> >\component[chapitre_2]
>> >\component[chapitre_3]
>> >\component[chapitre_4]
>> >\component[chapitre_5]
>> >\component[chapitre_6]
>> >\component[chapitre_7]
>> >\component[chapitre_8]
>> >\component[chapitre_9]
>> >\component[chapitre_10]
>> >\component[chapitre_11]
>> >\component[chapitre_12]
>> >  \stopbodymatter
>> >
>> > \stopproduct
>> >
>> >
>> >
>> ___
>> > 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
>> >
>> ___
>>
>> --
>>
>> -
>>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
>>
>> ___
>>
>
___
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] Table of contents not appearing.

2023-04-21 Thread Fabrice Couvreur via ntg-context
Hi Hans,
Alright, I'll compile by integrating one component at a time to figure out
which one is causing the problem.
Thanks.
Fabrice

Le jeu. 20 avr. 2023 à 15:52, Hans Hagen via ntg-context 
a écrit :

> On 4/20/2023 6:59 PM, Fabrice Couvreur via ntg-context wrote:
> > Hi,
> > I don't see why the table of contents does not appear. On the other
> > hand, the 12 chapters are present.
>
> \startproduct[terminale-manual]
>
>  \startfrontmatter
>  \starttitle[title=Table des matières]
>  \placelist
> [chapter,section,subsection,subsubsection]
> [criterium=all,
> interaction=all,
>  alternative=c]
>  \stoptitle
>  \stopfrontmatter
>
>  \startbodymatter
>  \chapter{xxx}
>  \stopbodymatter
>
> \stopproduct
>
> shows a table of contents so it must be something in your components
>
> > Fabrice
> >
> >
> > \startproduct[terminale-manual]
> >
> >\project[terminale-environment]
> >\startfrontmatter
> >
> >  \setuppagenumbering
> > [location=]
> >
> >  \definefont
> >[ChapterTextStyle]
> >[SansBold*default sa 2.2]
> >
> >  \setuphead
> >[title]
> >[style=ChapterTextStyle,
> > align=flushright]
> >
> >  \setuplist
> > [chapter]
> > [style=bold,
> >  alternative=b,
> >  width=1em]
> >
> >  \setuplist
> > [section]
> > [margin=1em,
> >  width=1.75em]
> >
> >  \setuplist
> > [subsection]
> > [margin=2.75em,
> >  width=2.25em,
> > distance=\spaceamount]
> >
> >
> >  \starttitle[title=Table des matières]
> >
> >   \placelist
> > [chapter,section,subsection,subsubsection]
> > [criterium=all,
> > interaction=all,
> >  alternative=c]
> >
> >\stoptitle
> >
> >  \stopfrontmatter
> >
> >  \startbodymatter
> >\component[chapitre_1]
> >\component[chapitre_2]
> >\component[chapitre_3]
> >\component[chapitre_4]
> >\component[chapitre_5]
> >\component[chapitre_6]
> >\component[chapitre_7]
> >\component[chapitre_8]
> >\component[chapitre_9]
> >\component[chapitre_10]
> >\component[chapitre_11]
> >\component[chapitre_12]
> >  \stopbodymatter
> >
> > \stopproduct
> >
> >
> >
> ___
> > 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
> >
> ___
>
> --
>
> -
>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
>
> ___
>
___
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] missing xml call

2023-04-21 Thread Hans van der Meer via ntg-context
\xmlatt{}{} has a counterpart \xmlattribute{}{LPATH}{} where one can start the 
search for the attribute at LPATH.
for \xmlchainatt{}{} I am missing such a counterpart 
\xmlchainattribute{}{LPATH}{} where one can do the same.

The problem now is that \xmlchainatt{#1}{att} always finds attribute att when 
it is defined on the node itself.
But consider the case where att="true" exists with the intention to trigger a 
search higher up in the call chain for that same attribute att.
Of course \xmlattribute{#1}{..}{att} is not exactly the same as 
\xmlchainattribute{#1}{..}{att} would be .

yours sincerely
dr. Hans van der Meer



___
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] Non-standard font alternatives

2023-04-20 Thread Pawel Urbanski via ntg-context

I've found the following Github repository with the typscripts definitions:

https://github.com/r3n4ud/roboto-context


When I use this type-imp-roboto.mkiv file fonts are used and embedded 
when using Roboto in thes \setupbodyfont[].



When I use ebgaramond as the body font but use:

\switchtobodyfont[roboto,20pt] in the \setuphead[] call the font is not 
embedded and seems to be not used.



I am more optimistic but still confused what can be wrong.



___
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] Kaktovik numerals

2023-04-20 Thread Willi Egger via ntg-context
Hans thank you very much for this update. Indeed now automatic conversion comes 
out correctly.

Willi

> On 19 Apr 2023, at 23:41, Hans Hagen via ntg-context  
> wrote:
> 
> On 4/19/2023 10:45 PM, Willi Egger via ntg-context wrote:
>> Hello Gavin,
>> thank you so much for your input. — Indeed you are right. Please find 
>> attached the corrected version.
>> Willi
>>> On 19 Apr 2023, at 20:58, Gavin via ntg-context  wrote:
>>> 
>>> Hi Willi,
>>> 
>>> What fun! I think I found a couple math items to correct.
>>> 
>>> 1) The second line of the tables at the top of page 2 should be:
>>>1000' 100, 10, 1; 8000, 400, 20, 1
>>> 
>>> 2) For the year conversion: 2023 = 5x20^2 + 1x20 + 3. (Your 0 should be my 
>>> 1). This will give a three digit Kaktovik numeral. You have 4 digit 
>>> Kaktovik numerals for 2023, with both a 0 and a 1.
> je kunt direct dat nummer converteren maar blijkbaar gaf ik de verkeerde 
> volgorde uit:
> 
> \useMPlibrary[kaktovik] % de officiele manier
> 
> \definefontfeature
>  [default]
>  [default]
>  [metapost=kaktovik]
> 
> \setupbodyfont[dejavu]
> 
> \starttext
> 2023 \kaktoviknumerals{5}\kaktoviknumerals{1}\kaktoviknumerals{3}
> 
> \kaktoviknumerals{2023} % deze split dus voor je, order fixed
> 
> \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 / 
> 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
___


Re: [NTG-context] Table of contents not appearing.

2023-04-20 Thread Hans Hagen via ntg-context

On 4/20/2023 6:59 PM, Fabrice Couvreur via ntg-context wrote:

Hi,
I don't see why the table of contents does not appear. On the other 
hand, the 12 chapters are present.


\startproduct[terminale-manual]

\startfrontmatter
\starttitle[title=Table des matières]
\placelist
   [chapter,section,subsection,subsubsection]
   [criterium=all,
   interaction=all,
alternative=c]
\stoptitle
\stopfrontmatter

\startbodymatter
\chapter{xxx}
\stopbodymatter

\stopproduct

shows a table of contents so it must be something in your components


Fabrice


\startproduct[terminale-manual]

   \project[terminale-environment]
   \startfrontmatter

     \setuppagenumbering
        [location=]

     \definefont
       [ChapterTextStyle]
       [SansBold*default sa 2.2]

     \setuphead
       [title]
       [style=ChapterTextStyle,
        align=flushright]

     \setuplist
        [chapter]
        [style=bold,
         alternative=b,
         width=1em]

     \setuplist
        [section]
        [margin=1em,
         width=1.75em]

     \setuplist
        [subsection]
        [margin=2.75em,
         width=2.25em,
        distance=\spaceamount]


     \starttitle[title=Table des matières]

          \placelist
            [chapter,section,subsection,subsubsection]
            [criterium=all,
            interaction=all,
             alternative=c]

       \stoptitle

     \stopfrontmatter

     \startbodymatter
       \component[chapitre_1]
       \component[chapitre_2]
       \component[chapitre_3]
       \component[chapitre_4]
       \component[chapitre_5]
       \component[chapitre_6]
       \component[chapitre_7]
       \component[chapitre_8]
       \component[chapitre_9]
       \component[chapitre_10]
       \component[chapitre_11]
       \component[chapitre_12]
     \stopbodymatter

\stopproduct


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


--

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


[NTG-context] Table of contents not appearing.

2023-04-20 Thread Fabrice Couvreur via ntg-context
Hi,
I don't see why the table of contents does not appear. On the other hand,
the 12 chapters are present.
Thanks
Fabrice


\startproduct[terminale-manual]

  \project[terminale-environment]
  \startfrontmatter

\setuppagenumbering
   [location=]

\definefont
  [ChapterTextStyle]
  [SansBold*default sa 2.2]

\setuphead
  [title]
  [style=ChapterTextStyle,
   align=flushright]

\setuplist
   [chapter]
   [style=bold,
alternative=b,
width=1em]

\setuplist
   [section]
   [margin=1em,
width=1.75em]

\setuplist
   [subsection]
   [margin=2.75em,
width=2.25em,
   distance=\spaceamount]


\starttitle[title=Table des matières]

 \placelist
   [chapter,section,subsection,subsubsection]
   [criterium=all,
   interaction=all,
alternative=c]

  \stoptitle

\stopfrontmatter

\startbodymatter
  \component[chapitre_1]
  \component[chapitre_2]
  \component[chapitre_3]
  \component[chapitre_4]
  \component[chapitre_5]
  \component[chapitre_6]
  \component[chapitre_7]
  \component[chapitre_8]
  \component[chapitre_9]
  \component[chapitre_10]
  \component[chapitre_11]
  \component[chapitre_12]
\stopbodymatter

\stopproduct
___
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] About \blackrule

2023-04-20 Thread Fabrice Couvreur via ntg-context
Hi Wolfgang,
Thanks a lot.
Fabrice

Le mer. 19 avr. 2023 à 15:05, Wolfgang Schuster via ntg-context <
ntg-context@ntg.nl> a écrit :

> Fabrice Couvreur via ntg-context schrieb am 19.04.2023 um 17:01:
>
> Hi,
> The idea is to have a black square whose height is that of the number 3.
> Thanks
> Fabrice
>
> \setupbodyfont[12pt,pagella]
> \starttext
>  \blackrule[width=0.71em,height=0.71em]37254H
>
>
> \blackrule[width=\wdofstring{3},height=\htofstring{3},depth=\dpofstring{3}]
>
> Wolfgang
>
> ___
> 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
___


Re: [NTG-context] Non-standard font alternatives

2023-04-19 Thread Pawel Urbanski via ntg-context

Dear Hraban,

No, it does not. I am attaching hte type file and the short test document.


Here are the links where one can download the fonts:

https://github.com/googlefonts/roboto/releases

https://fonts.google.com/specimen/Roboto+Slab

 I am wondering if 'hinted' or 'unhinted' release of Roboto found at 
Github matters.



Trust me, that your time ahd help if very much appriciated. I know how 
much time it may take to debug such issue - just for rewriting the files 
with small changes.




\usetypescriptfile[ebgaramond]
\usetypescriptfile[roboto]
\usebodyfont[roboto]
\setupbodyfont[roboto]

\setuphead[chapter]
[style={\switchtobodyfont[roboto,20pt]\ss}]

\starttext

     \startchapter[title=Whatever is the best title]
         \input tufte
     \stopchapter
\startchapter[title={Just a second title}]

Some random text.

\stopchapter

\stoptext
\definefontfeature[robotofeatures][
  mode=node,
  ccmp=yes, % character composition
  liga=yes, tlig=yes, % ligatures
  pnum=yes,
  cpsp=yes, % capital spacing
  kern=yes,
  language=dflt,
  protrusion=quality,
  expansion=quality,
]

\definefontfeature[smallcaps][ % use with \addff
  smcp=yes, % smallcaps
  % c2sc=yes, % caps to smallcaps
]

\starttypescript[sans][roboto,robotosans]
  \definefontsynonym[Roboto-Regular][name:robotoregular]
  \definefontsynonym[Roboto-Black][name:robotoblack]
  \definefontsynonym[Roboto-BlackItalic][name:robotoblackitalic]
  \definefontsynonym[Roboto-Bold][name:robotobold]
  \definefontsynonym[Roboto-BoldItalic][name:robotobolditalic]
  \definefontsynonym[Roboto-Italic][name:robotoitalic]
  \definefontsynonym[Roboto-Light][name:robotolight]
  \definefontsynonym[Roboto-LightItalic][name:robotolightitalic]
  \definefontsynonym[Roboto-Medium][name:robotomedium]
  \definefontsynonym[Roboto-MediumItalic][name:robotomediumitalic]
  \definefontsynonym[Roboto-Italic][name:robotoitalic]
%  \definefontsynonym[Roboto-Regular][name:robotoregular]
  \definefontsynonym[Roboto-Thin][name:robotothin]
  \definefontsynonym[Roboto-ThinItalic][name:robotothinitalic]
\stoptypescript

\starttypescript[sans][roboto,robotosans][name]
  \definefontsynonym [SansThin]         [Roboto-Thin]        
[features=robotofeatures]
  \definefontsynonym [SansThinItalic]   [Roboto-ThinItalic]  
[features=robotofeatures]
  \definefontsynonym [SansThinSlanted]  [Roboto-ThinItalic]  
[features=robotofeatures]
  \definefontsynonym [SansLight]        [Roboto-Light]       
[features=robotofeatures]
  \definefontsynonym [SansLightItalic]  [Roboto-LightItalic] 
[features=robotofeatures]
  \definefontsynonym [SansLightSlanted] [Roboto-LightItalic] 
[features=robotofeatures]
  \definefontsynonym [Sans]             [Roboto-Regular]     
[features=robotofeatures]
  \definefontsynonym [SansItalic]       [Roboto-Italic]      
[features=robotofeatures]
  \definefontsynonym [SansSlanted]      [Roboto-Italic]      
[features=robotofeatures]
  \definefontsynonym [SansCaps]         [Roboto-Regular]     
[features={robotofeatures,smallcaps}]
  \definefontsynonym [SansMedium]       [Roboto-Medium]      
[features=robotofeatures]
  \definefontsynonym [SansMediumItalic] 
[Roboto-MediumItalic][features=robotofeatures]
  \definefontsynonym 
[SansMediumSlanted][Roboto-MediumItalic][features=robotofeatures]
  \definefontsynonym [SansBold]         [Roboto-Bold]        
[features=robotofeatures]
  \definefontsynonym [SansBoldItalic]   [Roboto-BoldItalic]  
[features=robotofeatures]
  \definefontsynonym [SansBoldSlanted]  [Roboto-BoldItalic]  
[features=robotofeatures]
  \definefontsynonym [SansBlack]        [Roboto-Black]       
[features=robotofeatures]
  \definefontsynonym [SansBlackItalic]  [Roboto-BlackItalic] 
[features=robotofeatures]
  \definefontsynonym [SansBlackSlanted] [Roboto-BlackItalic] 
[features=robotofeatures]
\stoptypescript

\starttypescript[sans][roboto-light][name]
  \definefontsynonym [Sans]             [Roboto-Light]         
[features=robotofeatures]
  \definefontsynonym [SansItalic]       [Roboto-LightItalic]   
[features=robotofeatures]
  \definefontsynonym [SansSlanted]      [Roboto-LightItalic]   
[features=robotofeatures]
  \definefontsynonym [SansCaps]         [Roboto-Light]         
[features={robotofeatures,smallcaps}]
  \definefontsynonym [SansBold]         [Roboto-Medium]        
[features=robotofeatures]
  \definefontsynonym [SansBoldItalic]   [Roboto-MediumItalic]  
[features=robotofeatures]
  \definefontsynonym [SansBoldSlanted]  [Roboto-MediumItalic]  
[features=robotofeatures]
\stoptypescript

\starttypescript[sans][roboto-medium][name]
  \definefontsynonym [Sans]             [Roboto-Medium]     
[features=robotofeatures]
  \definefontsynonym [SansItalic]       [Roboto-MediumItalic]      
[features=robotofeatures]
  \definefontsynonym [SansSlanted]      [Roboto-MediumItalic]      
[features=robotofeatures]
  \definefontsynonym [SansCaps]         [Roboto-Medium]     
[features={robotofeatures,smallcaps}]
  \definefontsynonym [SansBold]         

Re: [NTG-context] Kaktovik numerals

2023-04-19 Thread Hans Hagen via ntg-context

On 4/19/2023 10:45 PM, Willi Egger via ntg-context wrote:

Hello Gavin,

thank you so much for your input. — Indeed you are right. Please find attached 
the corrected version.



Willi


On 19 Apr 2023, at 20:58, Gavin via ntg-context  wrote:

Hi Willi,

What fun! I think I found a couple math items to correct.

1) The second line of the tables at the top of page 2 should be:
1000' 100, 10, 1; 8000, 400, 20, 1

2) For the year conversion: 2023 = 5x20^2 + 1x20 + 3. (Your 0 should be my 1). 
This will give a three digit Kaktovik numeral. You have 4 digit Kaktovik 
numerals for 2023, with both a 0 and a 1.
je kunt direct dat nummer converteren maar blijkbaar gaf ik de verkeerde 
volgorde uit:


\useMPlibrary[kaktovik] % de officiele manier

\definefontfeature
  [default]
  [default]
  [metapost=kaktovik]

\setupbodyfont[dejavu]

\starttext
 2023 \kaktoviknumerals{5}\kaktoviknumerals{1}\kaktoviknumerals{3}

\kaktoviknumerals{2023} % deze split dus voor je, order fixed

\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
-
%D \module
%D   [   file=meta-imp-kaktovik,
%Dversion=2023.04.18,
%D  title=\METAPOST\ Graphics,
%D   subtitle=Kaktovik Numbers,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D Just a quick hack for Hraban (after a post on the mailing list).

\startMPcalculation{simplefun}

path kaktovik_glyphs[] ;

def InitializeKaktovik =

save p, d, u ;

pair p[] ; numeric d ; d := .1 ; numeric u ; u := .15 ;

  % d := getparameterdefault "mpsfont" "d" .10 ;
  % u := getparameterdefault "mpsfont" "u" .15 ;

p[0] := (0,1) ;
p[1] := (1,0) ;
p[2] := (2,1 -  d) ;
p[3] := (3,0) ;
p[4] := (4,1 - 2d) ;

p[5] := (4,1 +  u) ;
p[6] := (0,1 + 2u) ;
p[7] := (4,1 + 4u) ;

kaktovik_glyphs[0] := (1,1)  { right } .. { left } (2,1/2) { left } .. 
{ right } (3,1);

for i= 1 upto 4 :
kaktovik_glyphs[i] := p[0] for j=1 upto i : -- p[j] endfor ;
endfor ;

kaktovik_glyphs[ 5] := p[5] -- p[0] ;for i= 6 upto  9 : 
kaktovik_glyphs[i] := p[5] -- kaktovik_glyphs[i-5] ; endfor ;
kaktovik_glyphs[10] := p[6] -- kaktovik_glyphs[ 5] ; for i=11 upto 14 : 
kaktovik_glyphs[i] := p[6] -- kaktovik_glyphs[i-5] ; endfor ;
kaktovik_glyphs[15] := p[7] -- kaktovik_glyphs[10] ; for i=16 upto 19 : 
kaktovik_glyphs[i] := p[7] -- kaktovik_glyphs[i-5] ; endfor ;

enddef ;

vardef Kaktovik(expr i) =
draw image (
draw kaktovik_glyphs[i]
xscaled (10/20 -1/20)
yscaled (25/20 -2/20)
withpen (pencircle xscaled 1/20 yscaled 5/20) rotated -(2*20)
  % withpen (pencircle xscaled 1/40 yscaled 5/40) rotated -(2*20)
  % withpen (pencircle xscaled 2.5/40 yscaled 5/40) rotated -(2*20)
;
) shifted (2/20,2/20)
enddef ;

lmt_registerglyphs [
name = "kaktovik",
units= 2,
usecolor = true,
width= 2,
height   = 2,
depth= 0,
preamble = "InitializeKaktovik"
] ;

for i=0 upto 19 :
lmt_registerglyph [
category = "kaktovik",
unicode  = 119488 + i, % "0x1D2C0"
code = "Kaktovik(" & decimal i & ")"
] ;
endfor ;

\stopMPcalculation

\startluacode
interfaces.implement {
name  = "kaktoviknumerals",
arguments = "integer",
actions   = function(n)
local digits = { }
local count  = 1
while true do
digits[count] = utf.char(0x1D2C0 + (n % 20))
n = n // 20
if n == 0 then
break;
end
count = count + 1
end
table.reverse(digits)
context("%t",digits)
end
}
\stopluacode

\unprotect

\permanent\def\kaktoviknumerals#1{\clf_kaktoviknumerals\numexpr#1\relax}

\defineconversion [kaktoviknumerals] [\kaktoviknumerals]
\defineconversion [K][\kaktoviknumerals]

\definefontfeature
  [kaktovik]
  [metapost=kaktovik]

\protect

\continueifinputfile{meta-imp-kaktovik.mkxl}

\definefontfeature
  [default]
  [default]
  [metapost=kaktovik]
% [metapost={category=kaktovik,u

Re: [NTG-context] Kaktovik numerals

2023-04-19 Thread Willi Egger via ntg-context
Hello Gavin,

thank you so much for your input. — Indeed you are right. Please find attached 
the corrected version.



kaktovik-numerals-info.pdf
Description: Adobe PDF document


kaktovik-numerals-info.tex
Description: Binary data

Willi

> On 19 Apr 2023, at 20:58, Gavin via ntg-context  wrote:
> 
> Hi Willi,
> 
> What fun! I think I found a couple math items to correct.
> 
> 1) The second line of the tables at the top of page 2 should be:
>1000' 100, 10, 1; 8000, 400, 20, 1
> 
> 2) For the year conversion: 2023 = 5x20^2 + 1x20 + 3. (Your 0 should be my 
> 1). This will give a three digit Kaktovik numeral. You have 4 digit Kaktovik 
> numerals for 2023, with both a 0 and a 1.
> 
> Gavin
> 
> 
>> On Apr 19, 2023, at 12:36 PM, Willi Egger via ntg-context 
>>  wrote:
>> 
>> Hi all,
>> 
>> after playing around and watching YouTube the attached  composition is made…
>> 
>> Willi
>> 
>> 
>>> On 18 Apr 2023, at 10:57, Henning Hraban Ramm via ntg-context 
>>>  wrote:
>>> 
>>> I just came across this thread about the base-20 system of the Inuit people 
>>> and the numerals invented for it in the 1990s:
>>> https://mathstodon.xyz/@johncarlosbaez/110215432175491555
>>> 
>>> This makes simple calculations just beautiful.
>>> 
>>> Hraban
>>> ___
>>> 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
>> ___
> 
> ___
> 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
___


<    4   5   6   7   8   9   10   11   12   13   >