[NTG-context] upload

2024-04-01 Thread Hans Hagen

Hi,

There is a new lmtx upload.

-- The svg inclusion via metapost has been upgraded and cleanup a bit, 
using some more recent metapost features. There are some new (not yet 
all documented metapost) features.


-- In the process, support for LCH colors has been added, which is 
documented in the (eg luametafun manual).


-- The math manual is not yet there because we were distracted by 
improving support for envelopes (penbased outlines) in metafun. This is 
still work in progress, some is present and discussed in the manual, and 
we'll come back to that sometime next month. Given the next item, we 
also might need to change some in the manual (different focus).


-- Because we have users who have to conform to the European 
Accessibility Act we have been wondering how to deal with that and at 
Mikaels place there are two demands: distinctive colors and tagging and 
especially math (somehow validators love to check that). Colors never 
were an issue as they can be controlled, and tagging math neither, 
especially because nothing was/is done with it anyway, but ... we are 
happy that we found a reasonable (more modern and future proof) way out.


As explained / shown in the attached document we're basically forced to 
choose a different approach with math (a pity as we worked hard to get 
the rendering right but the attached file works fine in the viewers that 
we tested).


-- We like to hear from users what other demands wrt accessibility there 
are. We're not interested in the (commercial) big money aspects (of pdf 
and tagging) nor in the politics behind it (changes over time). What are 
the demands, so that we can see how to make it work or just work around 
it (as it's kind of boring to cook uyp complex features	, esp compared 
to playing with metapost).


-- Furthermore .. the usual bits and pieces as discussed on the list and 
otherwise.


-- If you have troubles (crash) you need to wipe the cache due to a 
change in lua bytecode storage (no easy way to catch it).


Hans & Mikael

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

math-riddance.pdf
Description: Adobe PDF document
% language=us

% todo: no comma

\usemodule[scite]
\usemodule[article-basic]
\usemodule[abbreviations-logos]
\usemodule[math-goodriddance]

\setuplayout[tight]

\starttext

\subject{Good riddance}

We're done with math. After years of active development, Mikael and Hans have
decided to quit working on math, and concentrate on \METAPOST\ and handing over
to the next generation instead. We lost our user to the way more popular
alternative (frozen in stone standards). Also, we had it with suboptimal math
fonts, Unicode math not getting improved, MathML constantly being changed,
browsers dealing with math differently every few years, math archives getting
polluted with tons of useless tagged math.

There are other motivations, like the European union imposing strict rules with
respect to accessibility in educational content management systems, and Dutch
schools trying to get rid of math in favor of simple calculus, if at all. This 
is
why the next iteration of the engine will no longer have a math engine:
MathLessTeX. Of course, in the beginning \MLTX\ will be compatible with \LMTX,
because we owe that to the users and we need to prototype the new engine anyway.

In order to get an idea of how we will get rid of the disturbing formulas, you
can load the module:

\starttyping
\usemodule[math-goodriddance]
\stoptyping

Until becoming the default setting, the command \typ {\goodriddancemath} will
bring you into \MLTX\ mode while \typ {\badriddancemath} will bring you back to
the obsolete \LMTX\ mode. Like:

\startbuffer
\usemodule[math-goodriddance] \goodriddancemath

Who wants to solve the equation \m {x + 1 = 4} or deal with the function \m {x 
\mapsto
\root [3] {x}}, when we have AI around the corner to help us out with simple 
and silly
things like the Pythagorean theorem: \m {a^2 + b^2 = c^2}, or even with more 
advanced
math like geometric series: \m {\sum_{k = 0}^{+\infty} x^k = 1/(1 - x)}?

We will not support complicated nonsense stuff like:

\startplaceformula
\startformula
F__{1}{2}(a,b;b;z) = (1 - z)^{-a}
\stopformula
\stopplaceformula

When developing this Hans' Swedish improved a lot. {\language[sv] Den lilla del 
av
befolkningen som handlar på IKEA och tittar på fåniga krimserier förstår kanske 
detta:
\im {\sqrt {x + 1} = \sin(4 + y)}!}
\stopbuffer

\typebuffer[option=TEX]

Which gives us the beautifully typeset:

\startcolor[darkblue] \getbuffer \stopcolor

We hope that the highly respected Swedish Academy will consider our prose in
their upcoming evaluations. Our first submission to the leading \TEX\ journal 
was
however 

[NTG-context] upload

2024-02-14 Thread Hans Hagen

Hi,

as we're around texlive code freeze time we're also in upload mode

- i uploaded a new lmtx
- i also added linux and windows 32 bin (as it seems to have users)

- we're now using lua 5.5 which has one restriction (was already 
announced a while ago):


for i=1,10 in t do

i = 2 * i

end

should now be:

for i=1,10 in t do

local i = 2 * i

end

as one cannot change the (local constant) i which actually is not that 
different from what metapost does. The good news is that voilating this 
is reported when a lua file is loaded so one can't get it unexspectedly.


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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] upload

2024-01-24 Thread Hans Hagen

Hi,

I uploaded a new lmts:

- important fix for empty page (pdf, recently introduced)
- win32 installer fix
- bsd installer fix

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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] upload

2024-01-17 Thread Hans Hagen

Hi,

I uploaded a new version (there is some work in progress but it probably 
doesn't affect anyone).


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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] upload

2023-08-09 Thread Hans Hagen

Hi,

I uploaded a new lmtx. There are some new features that wil be revealed 
in the future (likely after the meeting) but here is one:


\starttext

\defineoverlay
  [test]
  [\color
 [blue]
 {TEST
  \inframed
[foregroundcolor=red]
{xxx}
  TEST}]

\framed
  [background=test,
   foregroundstyle=\switchtobodyfont[small]]
  {test}

\stoptext

From now on many commands accept (properly) nested [] inside commands 
that use [] as fences (like the setup commands) where it makes sense. It 
is up to the user to decide to use {} (as before) or not but it is less 
error prone.


It is now also possible to nest setups as in

\starttext

\startsetups one
\startsetups [three]
HERE
\stopsetups
\stopsetups

\startsetups two
\startsetups [three]
THERE
\stopsetups
\stopsetups

\setups[one] \setups[three]

\setups[two] \setups[three]

\stoptext

As part of the ongoing improvements on math rendering we added some 
classic lm/cm kerns (between upperacse and periods / commas) in the 
goodie files.


Some lowlevel manuals have been extended, explaining experimental 'named 
cross macro nesting parameter referencing' and 'constrained cq. retained 
assignments', but that is only relevant for those interested in 
overcoming some limitations in the traditional engines.


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

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

Hi,

I uploaded a new lmtx. Apart from the modules installer (that Hraban has 
to check) and subtle improvements in math (we're now in tweaking 
penalties mode) there are a few changes:


- The endstrut in framed got lost but is back again; there is now alao a 
location=inline option.


- Single character math as in "text $x$ text" will from now on behave 
kind of like "text~x$ text" but that ~ always felt kind of weird anyway. 
Tests on large documents with plenty math and single char cases shows 
that it works quite ok and in most cases the paragraph will have the 
same number of lines (single char moves have little impact).


- The \lastlinefit (etec) feature is now controlled by the "fit" option 
in \setupalign etc; i'm still pondering how to control the orphan 
penalty feature that has been around for a while now but never really 
configured) and if we should have a decent default for that (like 
\orphanpenalties 2 150 100 ).


- Math formula number placement (as well as alignment sinside narrower) 
has been made a bit more robust and we added some placement options that 
will be discussed in the (by now 1739 page thick) upcoming math manual.

You really don't want to know how many combinations we had to check.

In an upcoming release there might also be some new text related 
tweaking features as side effect of the math tweaks which leads to some 
experiments with the par builder (so again we got sidetracked).


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

2023-04-14 Thread Mikael Sundqvist via ntg-context
Hi,

On Fri, Apr 14, 2023 at 5:40 PM Alexandre Christe via ntg-context
 wrote:
>
> Sorry, \setupmathematics[ucgreek=normal] does the job. Nothing to do with the 
> last upload.

Yes, but I think the default has been normal (upright), and when I
test with a minimal document here, it is still upright.

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

2023-04-14 Thread Alexandre Christe via ntg-context
Sorry, \setupmathematics[ucgreek=normal] does the job. Nothing to do with the 
last upload.
Le 14 avr. 2023 à 17:16 +0200, Alexandre Christe , a 
écrit :
> Dear Hans,
>
> In the latest upload, I see that uppercase greek letters in the math 
> environment are displayed in italic. Is there a way to force them to appear 
> as upright letters instead?
>
> Thanks in advance,
> Alex
> Le 11 avr. 2023 à 23:08 +0200, Hans Hagen via ntg-context 
> , a écrit :
> > Hi,
> >
> > I just uploaded an update, the areas that were touched:
> >
> > - math (font) improvements (with mikael, roadmap stuff, fixes, compact
> > mode testing)
> > - text (font) improvements (with mikael, side track of math)
> > - experimental stuff wrt project structure (with alan, complex huge
> > files; prelude to possible partial overhaul)
> > - some language details like labels (with tomas & students, ongoing)
> > - little thingies that probably no one will notice unless it's bugged
> >
> > 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
___


Re: [NTG-context] upload

2023-04-14 Thread Alexandre Christe via ntg-context
Dear Hans,

In the latest upload, I see that uppercase greek letters in the math 
environment are displayed in italic. Is there a way to force them to appear as 
upright letters instead?

Thanks in advance,
Alex
Le 11 avr. 2023 à 23:08 +0200, Hans Hagen via ntg-context , 
a écrit :
> Hi,
>
> I just uploaded an update, the areas that were touched:
>
> - math (font) improvements (with mikael, roadmap stuff, fixes, compact
> mode testing)
> - text (font) improvements (with mikael, side track of math)
> - experimental stuff wrt project structure (with alan, complex huge
> files; prelude to possible partial overhaul)
> - some language details like labels (with tomas & students, ongoing)
> - little thingies that probably no one will notice unless it's bugged
>
> 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] upload

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

Hi,

I just uploaded an update, the areas that were touched:

- math (font) improvements (with mikael, roadmap stuff, fixes, compact 
mode testing)

- text (font) improvements (with mikael, side track of math)
- experimental stuff wrt project structure (with alan, complex huge 
files; prelude to possible partial overhaul)

- some language details like labels (with tomas & students, ongoing)
- little thingies that probably no one will notice unless it's bugged

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

2022-12-21 Thread Pablo Rodriguez via ntg-context
On 12/21/22 17:20, Hans Hagen via ntg-context wrote:
> [...] 
> Some other possible speedups are on-hold till I have better test cases.

Many thanks for the improvements in the new release, Hans.

I have some documents, but I should be reluctant to send longs, because
I’m almost confident that my code is poorly written (to say the least).

The attachment contains a log for a 72 page document with just text
(from XML sources [XHTML generated by pandoc from Markdown file]).

[Since attachments over 100KB aren’t allowed, only the last two runs are
included in the log file.]

With current latest from today, I get:

mkiv lua stats  > runtime: 2.167 seconds, 72 processed pages, 72 shipped
pages, 33.225 pages/second
mtx-context | purged files: xml-context.log, xml-context.tuc
system  | total runtime: 8.779 seconds of 8.818 seconds

Exactly the same sources with previous latest (from 2022.12.15):

mkiv lua stats  > runtime: 2.410 seconds, 72 processed pages, 72 shipped
pages, 29.877 pages/second
mtx-context | purged files: xml-context.log, xml-context.tuc
system  | total runtime: 9.310 seconds of 9.350 seconds

So, the improvement is clear in current latest.

Many thanks again for the improvement,

Pabloresolvers   | formats | executing runner 'run luametatex format': ~/context/tex/texmf-linux-64/bin/luametatex --jobname="./xml-context.xml" --fmt=~/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt --lua=~/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui  --c:currentrun=3 --c:environment="xml-context.tex" --c:fulljobname="./xml-context.xml" --c:input="./xml-context.xml" --c:kindofrun=2 --c:maxnofruns=9 --c:purgeall --c:texmfbinpath="~/context/tex/texmf-linux-64/bin"
structure   > lists > out of order sectionsblocks, maybe use \setsectionblock
structure   > lists > out of order sectionsblocks, maybe use \setsectionblock
structure   > lists > out of order sectionsblocks, maybe use \setsectionblock
structure   > lists > out of order sectionsblocks, maybe use \setsectionblock
system  > 
system  > ConTeXt  ver: 2022.12.21 17:13 LMTX  fmt: 2022.12.21  int: english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name '~/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 '~/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > 'cont-loc.mkxl' loaded
open source > level 1, order 2, name '~/context/tex/texmf-local/cont-loc.mkxl'
close source> level 1, order 2, name '~/context/tex/texmf-local/cont-loc.mkxl'
system  > files > jobname './xml-context', input './xml-context.xml', result './xml-context'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 3, name 'xml-context.tex'
open source > level 2, order 4, name '~/from-pandoc-to-context/pandoc-xhtml.tex'
close source> level 2, order 4, name '~/from-pandoc-to-context/pandoc-xhtml.tex'
colors  > 'rgb' color space is supported
colors  > 'cmyk' color space is supported
fonts   > checks > registering extra script 'auto'
fonts   > bodyfont '15pt' is defined (can better be done global)
fonts   > bodyfont '18pt' is defined (can better be done global)
close source> level 1, order 4, name 'xml-context.tex'
system  > processing as xml: ./xml-context.xml
xml > core > ignoring public entities 'html' as '-//W3C//DTD XHTML 1.0 Transitional//EN' from 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'
structures  > begin of sectionblock 'whatcomesfirst'
structures  > bookmark: [Portada]
structure   > sectioning > hiddentitle @ level 2 : 0.0 -> [Portada]
fonts   > bodyfont '25pt' is defined (can better be done global)
fonts   > bodyfont '30pt' is defined (can better be done global)
fonts   > bodyfont '20pt' is defined (can better be done global)
backend > xmp > using file '~/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1, subpage 1
pages   > flushing realpage 2, userpage 2, subpage 2
structures  > bookmark: [Título]
structure   > sectioning > hiddentitle @ level 2 : 0.0 -> [Título]
pages   > flushing realpage 3, userpage 3, subpage 3
structures  > bookmark: [Derechos de autor]
structure   > sectioning > hiddentitle @ level 2 : 0.0 -> \xmlflush {main::24}
pages   > flushing realpage 4, userpage 4, subpage 4
structures  > bookmark: [Dedicatoria]
structure   > sectioning > hiddentitle @ level 2 : 0.0 -> \xmlflush {main::29}
pages   > flushing realpage 5, userpage 5, subpage 5
pages   

[NTG-context] upload

2022-12-21 Thread Hans Hagen via ntg-context

Hi,

I uploaded a new version of lmtx. This version uses a new counter and 
dimension model deep down (\newinteger and \newdimension) which is more 
efficient in certain cases. From the user's perspective there is no 
difference between \newcount and \newdimen although there are some 
fundamental differences. I might have overlooked a few cases where it 
does make a difference in ConTeXt (easy to handle once I know).


The test suite runs 5-10 % faster depending on the load of the machine 
and the gain mostly relates to memory access (where processes fight over 
memory and cpu cache). Of course I can probably gain more but using a 
faster machien than this 5 year old one but why waste a good machine.


Some other possible speedups are on-hold till I have better test cases.

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

2022-12-09 Thread Hans Hagen via ntg-context

Hi,

A new upload:

- we had a dir node leak (in some cases), fixed
- some fun stuff that i couldn't resist adding:

% \bgroup
% \unprotect
% \catcode`< \lettercatcode
\ifnum 1  = 2 n \else y \fi
\ifnum 1  > 2 n \else y \fi
\ifnum 1  < 2 y \else n \fi
\ifnum 1 != 2 y \else n \fi
\ifnum 1 !> 2 y \else n \fi
\ifnum 1 !< 2 n \else y \fi
\ifnum 1 ≠  2 y \else n \fi
\ifnum 1 ≥  2 n \else y \fi
\ifnum 1 ≤  2 y \else n \fi
\ifnum 1 ≱  2 n \else y \fi
\ifnum 1 ≰  2 y \else n \fi
\ifnum 1 ∈  3 y \else n \fi
\ifnum 1 ∉  3 n \else y \fi
% \protect
% \egroup

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

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

Hi,

I updated lmtx ... there are a few fixes for issues reported on the 
list. In the perspective of updating math the - otherwise unchanged - 
mkiv variant has also been updated a little. No new commands, just some 
(already old) experimental font related features gone and replaced by a 
combined one inspired by what we do in lmtx. In our opinion on the 
average it should not come out worse.


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

2022-07-09 Thread Hans Hagen via ntg-context

On 7/9/2022 12:40 AM, Otared Kavian via ntg-context wrote:

I just found that \choose has been replaced with \binom (binomial coefficient):

\starttext
\meaning\choose

\meaning\binom

$\binom{n}{k}$
\stoptext

Sorry for complaining… :-)
no problem ... maybe we should have a wiki page for 'use this instead of 
that'


as you're playing with it ... there is a lot we haven't yet introduced 
but we will do that stepwise .. here's one


inline formulas like $(x + a + 2)$ will break across lines but 
traditionally \left( .. \right) doesn't which is why these \bigg things 
are there : manual solution for breaking inline math


however, in lmtx these do break across lines but there are of course 
still cases where the penalties injected will discourage it; there is 
agranular penalty system in place but current it is configured as 
traditional tex


now, when a formula doesn't break and is somehow wrapped it doesn't play 
that well with linebreaks but you can cheat: formulas can becoem liek 
glue where the inter atom stretch and shrink can play a more prominent 
role ... here's a test:


% turning small inline formulas into leaders to that we don't get overflows
% or excessive spacing

\continuewhenlmtxmode

\startbuffer[threshold-none]
\setupbodyfont[modern]
\setuppapersize[A5]
\setuplayout[tight]
\setupmathematics[threshold=none]
\dorecurse {950} {
test $\darkblue \showboxes x + #1$
test $\darkred  \showboxes x + #1 + z$
}
\stopbuffer

\startbuffer[threshold-small]
\setupbodyfont[modern]
\setuppapersize[A5]
\setuplayout[tight]
\setupmathematics[threshold=small]
\dorecurse {950} {
test $\darkblue \showboxes x + #1$
test $\darkred  \showboxes x + #1 + z$
}
\stopbuffer

\startbuffer[threshold-medium]
\setupbodyfont[modern]
\setuppapersize[A5]
\setuplayout[tight]
\setupmathematics[threshold=medium]
\dorecurse {950} {
test $\darkblue \showboxes x + #1$
test $\darkred  \showboxes x + #1 + z$
}
\stopbuffer

\startbuffer[threshold-big]
\setupbodyfont[modern]
\setuppapersize[A5]
\setuplayout[tight]
\setupmathematics[threshold=big]
\dorecurse {950} {
test $\darkblue \showboxes x + #1$
test $\darkred  \showboxes x + #1 + z$
}
\stopbuffer

\starttext
\dorecurse {10} {
\startcombination[2*2]
{\hbox to .45\textwidth{\typesetbuffer[threshold-none] 
[frame=on,width=.45\textwidth,page=#1]\hss}} {\type {threshold=none}}
{\hbox to .45\textwidth{\typesetbuffer[threshold-small] 
[frame=on,width=.45\textwidth,page=#1]\hss}} {\type {threshold=small}}
{\hbox to 
.45\textwidth{\typesetbuffer[threshold-medium][frame=on,width=.45\textwidth,page=#1]\hss}} 
{\type {threshold=medium}}
{\hbox to .45\textwidth{\typesetbuffer[threshold-big] 
[frame=on,width=.45\textwidth,page=#1]\hss}} {\type {threshold=big}}

\stopcombination
}
\stoptext

There is also a system like widows and orphans in the sense that one can 
set forward and backward penalties, as in:


\setuplayout[width=11cm]

\startbuffer
\dorecurse {50} {
test $\darkblue   a + #1 + b > 2$ %
test $\darkreda + b + #1 + c + d > 2$ %
test $\darkgreen  a + b + c + #1 + d + e + f > 2$ %
}
\stopbuffer

\setuptolerance[verytolerant,stretch]

\starttext
\start
\mathforwardpenalties  0
\mathbackwardpenalties 0
\getbuffer
\par
\stop
\page
\start
\mathforwardpenalties  2 -200 -100
\mathbackwardpenalties 2 -100  -50
\getbuffer
\par
\stop
\page
\start
\mathforwardpenalties  2  200 100
\mathbackwardpenalties 2  100  50
\getbuffer
\par
\stop
\page
\stoptext

but we currently don't have a high level interface for that; it will be 
part of the more general math penalties setup.


These are just a few of the things to play with.

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

2022-07-09 Thread Hans Hagen via ntg-context

On 7/9/2022 12:34 AM, Otared Kavian via ntg-context wrote:




On 6 Jul 2022, at 22:10, Hans Hagen via ntg-context  wrote:

Hi,

We're pleased to announce the first official release of the new math code. 
We're talking of:

[…]


Dear Hans and Mikael،

Thank you very much for the new upload and the new stuff for tyepsetting maths. 
I have been playing around with the features presented in the example file sent 
by Mikael, and I must say, among other things you have implemented, the 
constructs \bearkhere and \skiphere, and friends, are absolutely great, 
brilliant and so simple! I wonder why such a simple and elegant solution was 
not around before…


they were to some extend (in split=text mode) but never advocated but we 
added some to it as well as made it work with diferent alignments (most 
noticeably slanted) and number placement (overflow)



As a plain TeX traditionalist I am a little bit sad to let the \over construct 
be ditched, but my sadness did not last too long.


just think of the side effects:

   {a}\over{y} + z

y and z are combined so one need to add { }

  {{a}\over{y}}

thenm infleuncing styles becomes trickier too; the lot becomes an ord 
(ok, not in lmtx, where it becomes a fraction atom) and when you compare


  {{a}\over{y}}
  \frac{a}{b}

you even save two keystrokes -)

it's also not easy to control spacing etc because one cannot redefine 
over; actually fractions uses \U[..over|above|..] which takes two 
arguments (forward scanning)



It seems that the \choose construct has been ditched but I did not guess what 
has replaced it (I guess the reason is the same for ditching \over, since the 
construct used to be ${n \choose k}$ and this is not what one wants to have in 
a macro).


some of these were just old school simple things but we have better 
alternatives; and if not: just specify what you need and we will come up 
with something (configurable)


(of course one can just define the old schoose)

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

2022-07-08 Thread Otared Kavian via ntg-context
I just found that \choose has been replaced with \binom (binomial coefficient):

\starttext
\meaning\choose

\meaning\binom

$\binom{n}{k}$
\stoptext

Sorry for complaining… :-)


> On 9 Jul 2022, at 00:34, Otared Kavian  wrote:
> 
> 
> 
>> On 6 Jul 2022, at 22:10, Hans Hagen via ntg-context  
>> wrote:
>> 
>> Hi,
>> 
>> We're pleased to announce the first official release of the new math code. 
>> We're talking of:
>> 
>> […]
> 
> Dear Hans and Mikael،
> 
> Thank you very much for the new upload and the new stuff for tyepsetting 
> maths. I have been playing around with the features presented in the example 
> file sent by Mikael, and I must say, among other things you have implemented, 
> the constructs \bearkhere and \skiphere, and friends, are absolutely great, 
> brilliant and so simple! I wonder why such a simple and elegant solution was 
> not around before…
> 
> As a plain TeX traditionalist I am a little bit sad to let the \over 
> construct be ditched, but my sadness did not last too long.
> 
> It seems that the \choose construct has been ditched but I did not guess what 
> has replaced it (I guess the reason is the same for ditching \over, since the 
> construct used to be ${n \choose k}$ and this is not what one wants to have 
> in a macro).
> 
> Best regards: Otared

___
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

2022-07-08 Thread Otared Kavian via ntg-context


> On 6 Jul 2022, at 22:10, Hans Hagen via ntg-context  
> wrote:
> 
> Hi,
> 
> We're pleased to announce the first official release of the new math code. 
> We're talking of:
> 
> […]

Dear Hans and Mikael،

Thank you very much for the new upload and the new stuff for tyepsetting maths. 
I have been playing around with the features presented in the example file sent 
by Mikael, and I must say, among other things you have implemented, the 
constructs \bearkhere and \skiphere, and friends, are absolutely great, 
brilliant and so simple! I wonder why such a simple and elegant solution was 
not around before…

As a plain TeX traditionalist I am a little bit sad to let the \over construct 
be ditched, but my sadness did not last too long.

It seems that the \choose construct has been ditched but I did not guess what 
has replaced it (I guess the reason is the same for ditching \over, since the 
construct used to be ${n \choose k}$ and this is not what one wants to have in 
a macro).

Best regards: Otared 
___
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

2022-07-08 Thread Hans Hagen via ntg-context

On 7/8/2022 9:40 AM, Max Chernoff via ntg-context wrote:
This is because you need to pass a list that conforms to what the 
builder expects and the callback that you use doesn't do that for you 
(after all, it also gets hbox content).


Isn't "processors/after" the same as "pre_linebreak_filter"? I thought 
that only "hpack_filter" gets \hbox content? Anyways, my actual function 
has this guard at the very start:


     if (head.id ~= par_id and context) or -- Ensure that we were 
actually given a par

     status.output_active or -- Don't run during the output routine
     tex.nest.ptr > 1 -- Don't run inside boxes
     then
     return head
     end

so I think that I'm only processing actual top-level paragraphs here.

There is no 'callback sequence handler' for the par builder (currently 
i see no need for it, also given the extra overhead involved) but this 
what what you can do:


\startluacode
 function builders.paragraphs.constructors.methods.preroll_a(head)
 local result, info = tex.linebreak(head)
 tex.prevdepth = info.prevdepth
 tex.prevgraf = info.prevgraf
 return result
 end
 function builders.paragraphs.constructors.methods.preroll_b(head)
 local result, info = tex.linebreak(nodes.nuts.copylist(head))
 inspect(info)
 return true
 end
\stopluacode

\defineparbuilder[preroll_a]
\defineparbuilder[preroll_b]

\starttext
 \setmainparbuilder[default]   \input tufte \par \input tufte \page
 \setmainparbuilder[preroll_a] \input tufte \par \input tufte \page
 \setmainparbuilder[preroll_b] \input tufte \par \input tufte \page
\stoptext


I think that that code is for replacing the linebreaker entirely, like 
with using "linebreak_filter"? My goal isn't to replace the linebreaker; 
I just want to be able to inspect the paragraph before it is broken, 
without modifying anything.


as long as you return true the built in will do the work but you can 
still do the preroll so basically nothing gets replaced .. it's just a 
more natural hook;l keep in mind that if someone replaces the linebreak 
your code woudl fail to do its work anyway



What I'm trying to do *very* roughly looks like the following:

     paragraphs = {}
     attribute = 1234

     function pre_linebreak_filter(head)
     if head.id ~= node.id"par" then
     return head
     end

     local nat_node, nat_info = tex.linebreak(node.copylist(head))
     node.freelist(nat_node)

     local long_node, long_info = tex.linebreak(
     node.copylist(head), {looseness = 1}
     )

     if long_info.prevgraf == nat_info.prevgraf + 1 then
     table.insert(paragraphs, long_node)
     end

     return head
     end

     function post_linebreak_filter(head)
     node.setattribute(head, attribute, #paragraphs)
     node.setattribute(node.slide(head), attribute, #paragraphs)

     return head
     end

     function pre_output_filter(head)
     if tex.outputpenalty ~= tex.widowpenalty then
     return head
     end

     -- Pick a paragraph from `paragraphs` somehow

     -- Replace that paragraph on the page with the one
     -- from `paragraphs`

     -- Move the last line of the page onto the top of
     -- tex.lists.contributehead

     return head
     end

(The full implementation is in the module "lua-widow-control" on CTAN, 
TeX Live, and modules.contextgarden.net, or directly at 
"https://github.com/gucci-on-fleek/lua-widow-control/blob/master/source/lua-widow-control.lua;. 
It's pretty long though, so I'm just trying to summarize here.)


This works pretty well with Plain LuaTeX, LuaLaTeX, OpTeX, MkIV, and 
MkXL before the latest upload, but something broke with the latest 
upload in MkXL. I understand that I'm mucking around with volatile 
interfaces, and I have no problem making a bunch of changes whenever the 
engine/format changes; the problem is that I'm not too sure what changed 
in the engine, so I don't know what I need to change in my code.


the tricky part is probably to make sure that it doesn't interfere with 
what other functions hooked into the callbacks are doing because who 
knows what gets injected in those lists


On the to do is a to add a 'prepare' helper that adds the mandate 
nodes (par fillers etc) 


Maybe that's all that I need? If that's the case, I have no problem 
coding my own "prepare helper" if you think that it'll be awhile before 
you get around to it; the problem is that I'm not entirely sure what 
nodes I would need to add. These new nodes aren't added until after 
"pre_linebreak_filter", and they're gone after the linebreaker runs, so 
I can't inspect a "regular" paragraph to see where these nodes belong.


there will be (untested on what you do)

  tex.preparelinebreak(par)

that will add the additional stuff needed (and bark if something is 
there already).


btw, a par builder - even in luatex - 

Re: [NTG-context] upload

2022-07-08 Thread Max Chernoff via ntg-context
This is because you need to pass a list that conforms to what the 
builder expects and the callback that you use doesn't do that for you 
(after all, it also gets hbox content).


Isn't "processors/after" the same as "pre_linebreak_filter"? I thought 
that only "hpack_filter" gets \hbox content? Anyways, my actual function 
has this guard at the very start:


if (head.id ~= par_id and context) or -- Ensure that we were 
actually given a par

status.output_active or -- Don't run during the output routine
tex.nest.ptr > 1 -- Don't run inside boxes
then
return head
end

so I think that I'm only processing actual top-level paragraphs here.

There is no 'callback sequence handler' for the par builder (currently i 
see no need for it, also given the extra overhead involved) but this 
what what you can do:


\startluacode
 function builders.paragraphs.constructors.methods.preroll_a(head)
 local result, info = tex.linebreak(head)
 tex.prevdepth = info.prevdepth
 tex.prevgraf = info.prevgraf
 return result
 end
 function builders.paragraphs.constructors.methods.preroll_b(head)
 local result, info = tex.linebreak(nodes.nuts.copylist(head))
 inspect(info)
 return true
 end
\stopluacode

\defineparbuilder[preroll_a]
\defineparbuilder[preroll_b]

\starttext
 \setmainparbuilder[default]   \input tufte \par \input tufte \page
 \setmainparbuilder[preroll_a] \input tufte \par \input tufte \page
 \setmainparbuilder[preroll_b] \input tufte \par \input tufte \page
\stoptext


I think that that code is for replacing the linebreaker entirely, like 
with using "linebreak_filter"? My goal isn't to replace the linebreaker; 
I just want to be able to inspect the paragraph before it is broken, 
without modifying anything.


What I'm trying to do *very* roughly looks like the following:

paragraphs = {}
attribute = 1234

function pre_linebreak_filter(head)
if head.id ~= node.id"par" then
return head
end

local nat_node, nat_info = tex.linebreak(node.copylist(head))
node.freelist(nat_node)

local long_node, long_info = tex.linebreak(
node.copylist(head), {looseness = 1}
)

if long_info.prevgraf == nat_info.prevgraf + 1 then
table.insert(paragraphs, long_node)
end

return head
end

function post_linebreak_filter(head)
node.setattribute(head, attribute, #paragraphs)
node.setattribute(node.slide(head), attribute, #paragraphs)

return head
end

function pre_output_filter(head)
if tex.outputpenalty ~= tex.widowpenalty then
return head
end

-- Pick a paragraph from `paragraphs` somehow

-- Replace that paragraph on the page with the one
-- from `paragraphs`

-- Move the last line of the page onto the top of
-- tex.lists.contributehead

return head
end

(The full implementation is in the module "lua-widow-control" on CTAN, 
TeX Live, and modules.contextgarden.net, or directly at 
"https://github.com/gucci-on-fleek/lua-widow-control/blob/master/source/lua-widow-control.lua;. 
It's pretty long though, so I'm just trying to summarize here.)


This works pretty well with Plain LuaTeX, LuaLaTeX, OpTeX, MkIV, and 
MkXL before the latest upload, but something broke with the latest 
upload in MkXL. I understand that I'm mucking around with volatile 
interfaces, and I have no problem making a bunch of changes whenever the 
engine/format changes; the problem is that I'm not too sure what changed 
in the engine, so I don't know what I need to change in my code.


On the to do is a to add a 'prepare' helper that adds 
the mandate nodes (par fillers etc) 


Maybe that's all that I need? If that's the case, I have no problem 
coding my own "prepare helper" if you think that it'll be awhile before 
you get around to it; the problem is that I'm not entirely sure what 
nodes I would need to add. These new nodes aren't added until after 
"pre_linebreak_filter", and they're gone after the linebreaker runs, so 
I can't inspect a "regular" paragraph to see where these nodes belong.


but even then one has to be careful 
where linebreak hackery is applied.


Oh yes, I'm well aware :) Earlier versions of my module would silently 
eat entire paragraphs, which was very not good. Luckily that problem is 
fixed now.


And finally, thanks for all your work with LuaMetaTeX. This new engine 
is quite nice to work with and has some pretty cool new features.


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  : 

Re: [NTG-context] upload

2022-07-07 Thread Hans Hagen via ntg-context

On 7/7/2022 10:48 PM, Aditya Mahajan via ntg-context wrote:

On Wed, 6 Jul 2022, Hans Hagen via ntg-context wrote:


We're pleased to announce the first official release of the new math
code. We're talking of:

-- a reworked math engine (which happened stepwise so some already
trickled into previous uploads)

-- settling on one model for display math but with alignment variants as
well as improving inline math (e.g. wrt linebreaks)

-- redoing bit of the (sub) numbering

-- improving the alignment features (the traditional one and the
text/page mode one)

-- fixing the math font using all kind of tweaks in the goodie file

-- providing means to annotate formulas

-- we ditched support for \over simply because it is too fragile wrt
spacing (one can \usemodule[oldmath] to get it back

-- we might move some more alien stuff to m-oldmath in due time


I played around with it a bit, and everything looks really nice!


Thanks.

Btw, you can run with

\showmakeup[mathglue] % \mathspacingmode=1

to see what math atoms are 'seen' (the spacingmode also injects zero 
spaces) (there are other tracers too but this is the one we use most)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2022-07-07 Thread Aditya Mahajan via ntg-context
On Wed, 6 Jul 2022, Hans Hagen via ntg-context wrote:

> We're pleased to announce the first official release of the new math 
> code. We're talking of:
> 
> -- a reworked math engine (which happened stepwise so some already 
> trickled into previous uploads)
> 
> -- settling on one model for display math but with alignment variants as 
> well as improving inline math (e.g. wrt linebreaks)
> 
> -- redoing bit of the (sub) numbering
> 
> -- improving the alignment features (the traditional one and the 
> text/page mode one)
> 
> -- fixing the math font using all kind of tweaks in the goodie file
> 
> -- providing means to annotate formulas
> 
> -- we ditched support for \over simply because it is too fragile wrt 
> spacing (one can \usemodule[oldmath] to get it back
> 
> -- we might move some more alien stuff to m-oldmath in due time

I played around with it a bit, and everything looks really nice! 

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

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


Re: [NTG-context] upload

2022-07-07 Thread Hans Hagen via ntg-context

On 7/7/2022 3:15 AM, Max Chernoff via ntg-context wrote:

Hi,

With the latest upload, "tex.linebreak" doesn't return an "info" table.

When running this code:

     \startluacode
     function test(head)
     local new_head, info = tex.linebreak(node.copylist(head))

     print(head, type(head), info, type(info))

     if info == nil then
     print "!!! info is nil !!!"
     end

     return head
     end

     nodes.tasks.appendaction("processors", "after", "test")
     \stopluacode

     \starttext
     Hello!
     \stoptext

with the latest upload I get (also note the small typo in "rigthfill"):

     luatex warning  > linebreak: no [ leftinit | rightinit | leftfill | 
rigthfill] expected
        2353 : par vmodepar>  
userdata    nil nil

     !!! info is nil !!!
        2299 : glue userskip> 
userdata    nil nil

     !!! info is nil !!!

but with live.contextgarden.net I get:

     luatex warning  > tex: left parfill skip is gone
     Underfull \hbox (badness 1) in paragraph at lines 20--1
         929 : par vmode_par>    userdata
table: 0x39a050f7000    table
        1561 : glue userskip>    userdata
nil    nil

     !!! info is nil !!!


This is because you need to pass a list that conforms to what the 
builder expects and the callback that you use doesn't do that for you 
(after all, it also gets hbox content).


There is no 'callback sequence handler' for the par builder (currently i 
see no need for it, also given the extra overhead involved) but this 
what what you can do:


\startluacode
function builders.paragraphs.constructors.methods.preroll_a(head)
local result, info = tex.linebreak(head)
tex.prevdepth = info.prevdepth
tex.prevgraf = info.prevgraf
return result
end
function builders.paragraphs.constructors.methods.preroll_b(head)
local result, info = tex.linebreak(nodes.nuts.copylist(head))
inspect(info)
return true
end
\stopluacode

\defineparbuilder[preroll_a]
\defineparbuilder[preroll_b]

\starttext
\setmainparbuilder[default]   \input tufte \par \input tufte \page
\setmainparbuilder[preroll_a] \input tufte \par \input tufte \page
\setmainparbuilder[preroll_b] \input tufte \par \input tufte \page
\stoptext

The tex.linebreak function gets the properly prepared paragraph and can 
handle it then. On the to do is a to add a 'prepare' helper that adds 
the mandate nodes (par fillers etc) but even then one has to be careful 
where linebreak hackery is applied.


Hans




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2022-07-06 Thread Max Chernoff via ntg-context

Hi,

With the latest upload, "tex.linebreak" doesn't return an "info" table.

When running this code:

\startluacode
function test(head)
local new_head, info = tex.linebreak(node.copylist(head))

print(head, type(head), info, type(info))

if info == nil then
print "!!! info is nil !!!"
end

return head
end

nodes.tasks.appendaction("processors", "after", "test")
\stopluacode

\starttext
Hello!
\stoptext

with the latest upload I get (also note the small typo in "rigthfill"):

luatex warning  > linebreak: no [ leftinit | rightinit | leftfill | 
rigthfill] expected
   2353 : par vmodepar>  userdatanil 
nil
!!! info is nil !!!
   2299 : glue userskip> userdatanil 
nil
!!! info is nil !!!

but with live.contextgarden.net I get:

luatex warning  > tex: left parfill skip is gone
Underfull \hbox (badness 1) in paragraph at lines 20--1
929 : par vmode_par> userdata
table: 0x39a050f7000table
   1561 : glue userskip> userdatanil 
nil
!!! info is nil !!!

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

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


Re: [NTG-context] upload

2022-07-06 Thread Mikael Sundqvist via ntg-context
On Wed, Jul 6, 2022 at 10:10 PM Hans Hagen via ntg-context
 wrote:
>
> Hi,
>
> We're pleased to announce the first official release of the new math
> code. We're talking of:
>
> -- a reworked math engine (which happened stepwise so some already
> trickled into previous uploads)
>
> -- settling on one model for display math but with alignment variants as
> well as improving inline math (e.g. wrt linebreaks)
>
> -- redoing bit of the (sub) numbering
>
> -- improving the alignment features (the traditional one and the
> text/page mode one)
>
> -- fixing the math font using all kind of tweaks in the goodie file
>
> -- providing means to annotate formulas
>
> -- we ditched support for \over simply because it is too fragile wrt
> spacing (one can \usemodule[oldmath] to get it back
>
> -- we might move some more alien stuff to m-oldmath in due time
>
> We paid a lot of attention to details of positioning, sizing and spacing
> of glyphs. We do have some documents in the making that describe this
> (some are in the ontarget namespace) and the second half of this year we
> use for writing a math manual (Mikael) and updating the luametatex
> manual (Hans). For sure we will run into unforseen issues, come up with
> additional things and try to please users who have demands. There are
> 'hidden' features that will be revealed stepwise.
>
> An example of some usage will be posted next.
>
> The pragma-ade.com domain is still in transfer but the nl one should
> work fine. There is now also a https://www.luametatex.org that might be
> get some more than there is now (when i find it useful but best to have
> the domain for the ctx group).
>
> Mikael & Hans
>
> (on behalf of the CMS)

Hi,

Attached is a file with some example formulas and comments that might
be of help.

/Mikael


someformulas.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] upload

2022-07-06 Thread Hans Hagen via ntg-context

Hi,

We're pleased to announce the first official release of the new math 
code. We're talking of:


-- a reworked math engine (which happened stepwise so some already 
trickled into previous uploads)


-- settling on one model for display math but with alignment variants as 
well as improving inline math (e.g. wrt linebreaks)


-- redoing bit of the (sub) numbering

-- improving the alignment features (the traditional one and the 
text/page mode one)


-- fixing the math font using all kind of tweaks in the goodie file

-- providing means to annotate formulas

-- we ditched support for \over simply because it is too fragile wrt 
spacing (one can \usemodule[oldmath] to get it back


-- we might move some more alien stuff to m-oldmath in due time

We paid a lot of attention to details of positioning, sizing and spacing 
of glyphs. We do have some documents in the making that describe this 
(some are in the ontarget namespace) and the second half of this year we 
use for writing a math manual (Mikael) and updating the luametatex 
manual (Hans). For sure we will run into unforseen issues, come up with 
additional things and try to please users who have demands. There are 
'hidden' features that will be revealed stepwise.


An example of some usage will be posted next.

The pragma-ade.com domain is still in transfer but the nl one should 
work fine. There is now also a https://www.luametatex.org that might be 
get some more than there is now (when i find it useful but best to have 
the domain for the ctx group).


Mikael & Hans

(on behalf of the CMS)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2022-05-11 Thread Hans Hagen via ntg-context

On 5/11/2022 5:46 PM, Zhichu Chen via ntg-context wrote:

Thanks for the update. But I noticed that the XITS fonts were still the 
old ones:




zhichu@large /opt/context-lmtx/tex/texmf/fonts/opentype/public/xits $ 
fc-query -f '%{fontversion}\n' XITS-Regular.otf  | perl -E 'printf 
"%.3f\n", <>/65536.0'

1.200




According to

https://github.com/aliftype/xits/releases

the final release is version 1.302. Maybe I don't care the new changes 
since 1.200, but every time I compile my file, I get the warnings I 
don't like:




mathematics > tweak > 'XITSMath-Regular', size 6pt, math size 3, 
version 'Version 1.200' found, version 'Version 1.302' expected
mathematics > tweak > 'XITSMath-Bold', size 6pt, math size 3, 
version 'Version 1.109' found, version 'Version 1.302' expected



Do you mind get the new ones in the next beta?

i'll try but you need to check

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2022-05-11 Thread Zhichu Chen via ntg-context

Hi Hans,


Thanks for the update. But I noticed that the XITS fonts were still the 
old ones:




zhichu@large /opt/context-lmtx/tex/texmf/fonts/opentype/public/xits $ 
fc-query -f '%{fontversion}\n' XITS-Regular.otf  | perl -E 'printf 
"%.3f\n", <>/65536.0'

1.200




According to

https://github.com/aliftype/xits/releases

the final release is version 1.302. Maybe I don't care the new changes 
since 1.200, but every time I compile my file, I get the warnings I 
don't like:




mathematics > tweak > 'XITSMath-Regular', size 6pt, math size 3, 
version 'Version 1.200' found, version 'Version 1.302' expected
mathematics > tweak > 'XITSMath-Bold', size 6pt, math size 3, 
version 'Version 1.109' found, version 'Version 1.302' expected



Do you mind get the new ones in the next beta?


Best regards,

Zhichu


On 5/9/22 23:41, Hans Hagen via ntg-context wrote:

Hi,

I uploaded a new version of lmtx (also because some users have to test 
some new metapost functionality). In the next upload metafun will use 
'double' mode (and scaledfun will be the traditional one). The 
advantage is less dager for overflows and in the meantime running in 
double mode is often also faster.


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___ 

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


maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

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


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

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


Re: [NTG-context] upload

2022-05-11 Thread śrīrāma via ntg-context
On 5/9/22 9:24 PM mf via ntg-context wrote:
> I'm downloading it and I see a lot of mkii files and even some Ruby files.
> 
> It looks like some old material got into the update. Is everything right?

Hi Hans,

In addition to the above mkii files and rb files mentioned by Massi, I have 
also 
got a lot of files pertaining to 'win64' which I never had before. [I am on 
linux64].

Thanks,
  Sreeram


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

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


Re: [NTG-context] upload

2022-05-09 Thread śrīrāma via ntg-context
On 5/9/22 10:06 PM Mikael Sundqvist via ntg-context wrote:
> On Mon, May 9, 2022 at 6:16 PM Alexandre Christe via ntg-context
> 
>  wrote:
> > Sadly I have to report the bibliography is still broken. Could someone
> > else confirm? It's an unfortunate timing since I need to hand in some  
> > report really soon.
> I can confirm that there is a problem. But in the example below it
> goes away if I uncomment the \usebtxdefinitions[aps].
> 
> /Mikael
> 
> \startbuffer[bib]
> @ELECTRONIC{hh2010,
> author = {Hans Hagen},
> year = {2010},
> title = {Metafun. \CONTEXT\ mkiv},
> url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf},
> }
> \stopbuffer
> 
> \usebtxdataset[bib.buffer]
> 
> % \usebtxdefinitions[aps]
> 
> \starttext
> \cite[hh2010]
> \placelistofpublications
> \stoptext

Hi Mikael (and others),

[I have not upgraded yet; version: 2022.05.02 16:19, so I don't know if 
anything has changed in the new upload, but:]

In your example if you change the tag 'hh2010' to 'HansHagen2010' or anything 
with uppercase ASCII chars, the bibliography entries will not be correctly 
rendered even if you un-comment '\usebtxdefinitions[aps]' line. [Please see 
attached output example]

This issue seems to have originated in the version after 2022.04.15 when 'tag' 
and 'field' values in publ-ini.lua were string.lower()'ed. Removing those 
statements from the file seems to be a workaround. On the other hand, if the 
tag entries are all lower-case (as they were in your example), then there 
seems to be no issue. I had reported this earlier, please see:
  https://mailman.ntg.nl/pipermail/ntg-context/2022/105585.html

Thanks,
  Sreeram

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

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


Re: [NTG-context] upload

2022-05-09 Thread Alexandre Christe via ntg-context
Sorry for spamming again, but I've underlooked the message from śrīrāma who
mentioned a workaround: use only lowercase letters in the . Then it works.
I think this bib issue could be downgraded to a low priority.

Le lun. 9 mai 2022 à 18:17, Hans Hagen via ntg-context 
a écrit :

> On 5/9/2022 5:54 PM, mf via ntg-context wrote:
> > I'm downloading it and I see a lot of mkii files and even some Ruby
> files.
> >
> > It looks like some old material got into the update. Is everything right?
> hm, i'm on a different laptop now so maybe some program is not yet
> installed, i'll check it
>
> Hans
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2022-05-09 Thread Mikael Sundqvist via ntg-context
On Mon, May 9, 2022 at 6:16 PM Alexandre Christe via ntg-context
 wrote:
>
> Sadly I have to report the bibliography is still broken. Could someone else 
> confirm? It's an unfortunate timing since I need to hand in some report 
> really soon.
>

I can confirm that there is a problem. But in the example below it
goes away if I uncomment the \usebtxdefinitions[aps].

/Mikael

\startbuffer[bib]
@ELECTRONIC{hh2010,
author = {Hans Hagen},
year = {2010},
title = {Metafun. \CONTEXT\ mkiv},
url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf},
}
\stopbuffer

\usebtxdataset[bib.buffer]

% \usebtxdefinitions[aps]

\starttext
\cite[hh2010]
\placelistofpublications
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2022-05-09 Thread Alexandre Christe via ntg-context
Sadly I have to report the bibliography is still broken. Could someone else
confirm? It's an unfortunate timing since I need to hand in some report
really soon.

Le lun. 9 mai 2022 à 17:56, mf via ntg-context  a
écrit :

> I'm downloading it and I see a lot of mkii files and even some Ruby files.
>
> It looks like some old material got into the update. Is everything right?
>
> Massi
>
> Il 09/05/22 17:41, Hans Hagen via ntg-context ha scritto:
> > Hi,
> >
> > I uploaded a new version of lmtx (also because some users have to test
> > some new metapost functionality). In the next upload metafun will use
> > 'double' mode (and scaledfun will be the traditional one). The advantage
> > is less dager for overflows and in the meantime running in double mode
> > is often also faster.
> >
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2022-05-09 Thread Hans Hagen via ntg-context

On 5/9/2022 5:54 PM, mf via ntg-context wrote:

I'm downloading it and I see a lot of mkii files and even some Ruby files.

It looks like some old material got into the update. Is everything right?
hm, i'm on a different laptop now so maybe some program is not yet 
installed, i'll check it


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2022-05-09 Thread mf via ntg-context

I'm downloading it and I see a lot of mkii files and even some Ruby files.

It looks like some old material got into the update. Is everything right?

Massi

Il 09/05/22 17:41, Hans Hagen via ntg-context ha scritto:

Hi,

I uploaded a new version of lmtx (also because some users have to test 
some new metapost functionality). In the next upload metafun will use 
'double' mode (and scaledfun will be the traditional one). The advantage 
is less dager for overflows and in the meantime running in double mode 
is often also faster.



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

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


[NTG-context] upload

2022-05-09 Thread Hans Hagen via ntg-context

Hi,

I uploaded a new version of lmtx (also because some users have to test 
some new metapost functionality). In the next upload metafun will use 
'double' mode (and scaledfun will be the traditional one). The advantage 
is less dager for overflows and in the meantime running in double mode 
is often also faster.


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2022-03-30 Thread Otared Kavian via ntg-context
Hi Aditya and Mikael,

Indeed in some situations it is useful to number each equation appearing in 
formulas grouped with \startcases, and one can construct a structure allowing 
this, as in the example below which is not satisfactory. I am sure Hans can 
find a better solution…

Here is a working example:

% begin math-cases-numbered.tex
\definemathmatrix[alignedcases]
[align={1:right,2:left,3:left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]
\definereferenceformat[informula]  [left=(,right=),text=]
\def\eqref#1{\informula[eq:#1]} 

\starttext

Using \type{\startmathfenced} and \type{\startalign} we can number each 
equation, but the left brace is too far from the formula:
\startplaceformula
\startformula
\startmathfenced[cases]
\startalign[n=3,align={1:right,2:left,3:left}]
\NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\text{in }\; 
(0,T)\times\Omega \NR[+]
\NC u \NC = 0 \NC \quad\text{on }\; [0,T]\times\partial\Omega \NR[eq:Dirichlet]
\NC u(0,x) \NC = u_{0} \NC \quad\text{in }\; \Omega \NR[+]
\NC \partial_{t}u(0,x) \NC = v_{0} \NC \quad\text{in }\; \Omega \NR[+]
\stopalign
\stopmathfenced
\stopformula
\stopplaceformula
In some situations it is useful to number each equation, for example when we 
want to say:

Indeed we could study the above wave equation with Neumann boundary conditions, 
that is when \eqref{Dirichlet} is replaced with
\startplaceformula[eq:Neumann]
\startformula
{\partial u \over \partial {\bi n} } = 0 \quad \text{on }\; 
[0,T]\times\partial\Omega.
\stopformula
\stopplaceformula

Using \type{\startalignedcases} we cannot number each equation\dots
\startplaceformula
\startformula
\startalignedcases 
\NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\text{in }\; 
(0,T)\times\Omega \NR
\NC u \NC = 0 \NC \quad\text{in }\; [0,T]\times\partial\Omega \NR
\NC u(0,x) \NC = u_{0} \NC \quad\text{in }\; \Omega \NR
\NC \partial_{t}u(0,x) \NC = v_{0} \NC \quad\text{in }\; \Omega \NR
\stopalignedcases
\stopformula
\stopplaceformula
\stoptext
% end math-cases-numbered.tex

Best regards: Otared

> On 29 Mar 2022, at 18:08, Aditya Mahajan via ntg-context  
> wrote:
> 
> On Tue, 29 Mar 2022, Mikael Sundqvist via ntg-context wrote:
> 
>> On Tue, Mar 29, 2022 at 6:37 AM Otared Kavian  wrote:
>>> 
>>> Hi Mikael,
>> 
>> Hi Otared,
>> 
>>> 
>>> Thanks for your explanation and the example you sent about 
>>> \definemathsimplealign (I didn’t get immediately that « sesac » in the 
>>> command \startmathfenced[sesac] means « cases » in reverse or mirrored… I 
>>> guess this is a wise and humourous choice by Hans :-) ).
>> 
>> I guess so too :)
>> 
>>> 
>>> Regarding \startcases, it seems that it is still not possible to number 
>>> each equation, but I may be overlooking something. I’ll try a few examples 
>>> and will let you know, as well as Hans.
>> 
>> Hm, but a cases environment does not provide several formulas. This is
>> just one formula:
>> 
>> \startformula
>> |x|=
>> \startcases
>> \NC x \NC x>0\NR
>> \NC 0 \NC x=0\NR
>> \NC -x \NC x<0\NR
>> \stopcases
>> \stopformula
>> 
>> and as such should have (at most) one equation number, right?
> 
> However, some sub-disciplines like to number each case (for example, if you 
> want to refer to one of them in the future).
> 
>> Only Hans knows if it is (easily) doable to add the possibility to add
>> numbers to each three lines.
> 
> In the old implementation, this was tricky (the equation without the equation 
> number should be centered, and the equation number should be flush right). 
> But I think that this should be possible with the new low-level box alignment 
> macros. 
> 
> Aditya___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] upload

2022-03-29 Thread Aditya Mahajan via ntg-context
On Tue, 29 Mar 2022, Mikael Sundqvist via ntg-context wrote:

> On Tue, Mar 29, 2022 at 6:37 AM Otared Kavian  wrote:
> >
> > Hi Mikael,
> 
> Hi Otared,
> 
> >
> > Thanks for your explanation and the example you sent about 
> > \definemathsimplealign (I didn’t get immediately that « sesac » in the 
> > command \startmathfenced[sesac] means « cases » in reverse or mirrored… I 
> > guess this is a wise and humourous choice by Hans :-) ).
> 
> I guess so too :)
> 
> >
> > Regarding \startcases, it seems that it is still not possible to number 
> > each equation, but I may be overlooking something. I’ll try a few examples 
> > and will let you know, as well as Hans.
> 
> Hm, but a cases environment does not provide several formulas. This is
> just one formula:
> 
> \startformula
> |x|=
> \startcases
> \NC x \NC x>0\NR
> \NC 0 \NC x=0\NR
> \NC -x \NC x<0\NR
> \stopcases
> \stopformula
> 
> and as such should have (at most) one equation number, right?

However, some sub-disciplines like to number each case (for example, if you 
want to refer to one of them in the future).

> Only Hans knows if it is (easily) doable to add the possibility to add
> numbers to each three lines.

In the old implementation, this was tricky (the equation without the equation 
number should be centered, and the equation number should be flush right). But 
I think that this should be possible with the new low-level box alignment 
macros. 

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

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


Re: [NTG-context] upload

2022-03-29 Thread Mikael Sundqvist via ntg-context
On Tue, Mar 29, 2022 at 6:37 AM Otared Kavian  wrote:
>
> Hi Mikael,

Hi Otared,

>
> Thanks for your explanation and the example you sent about 
> \definemathsimplealign (I didn’t get immediately that « sesac » in the 
> command \startmathfenced[sesac] means « cases » in reverse or mirrored… I 
> guess this is a wise and humourous choice by Hans :-) ).

I guess so too :)

>
> Regarding \startcases, it seems that it is still not possible to number each 
> equation, but I may be overlooking something. I’ll try a few examples and 
> will let you know, as well as Hans.

Hm, but a cases environment does not provide several formulas. This is
just one formula:

\startformula
|x|=
\startcases
\NC x \NC x>0\NR
\NC 0 \NC x=0\NR
\NC -x \NC x<0\NR
\stopcases
\stopformula

and as such should have (at most) one equation number, right?

Only Hans knows if it is (easily) doable to add the possibility to add
numbers to each three lines.

By the way, thanks for testing and commenting!

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

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


Re: [NTG-context] upload

2022-03-28 Thread Otared Kavian via ntg-context
Hi Mikael,

Thanks for your explanation and the example you sent about 
\definemathsimplealign (I didn’t get immediately that « sesac » in the command 
\startmathfenced[sesac] means « cases » in reverse or mirrored… I guess this is 
a wise and humourous choice by Hans :-) ).

Regarding \startcases, it seems that it is still not possible to number each 
equation, but I may be overlooking something. I’ll try a few examples and will 
let you know, as well as Hans.

Best regards: Otared

> On 28 Mar 2022, at 23:54, Mikael Sundqvist  wrote:
> 
> On Mon, Mar 28, 2022 at 11:23 PM Otared Kavian  wrote:
>> 
>> Hi Hans,
>> 
>> Thank you for the new upload and the improvements you mention about the 
>> handling of math stuff. Thanks also to Mikael for the follow up of these 
>> matters.
>> 
>> I noticed that in math mode the command \cal does not work anymore and one 
>> has to use \mathcal.
>> However in almost all of my documents I use Lucida Bright OT, and in some 
>> occasions I replace its calligraphic letters by the slots from Asana Math 
>> with the following definitions:
>> 
>> \definefallbackfamily[myfont][math][Asana Math]
>>[range={uppercasescript,lowercasescript}]
>> 
>> % lucida font
>> \definefontfamily[myfont][serif][Lucida Bright OT]
>> \definefontfamily[myfont][math][LucidaBrightMathOT]
>> \definefontfamily[myfont][sans][LucidaSansOT]
>> \definefontfamily[myfont][mono][LucidaSansTypewriterOT]
>> 
>> \setupbodyfont[myfont,9pt]
>> 
>> It seems that with the changes made recently the above definitions must be 
>> modified in order to have Asana Math show up.
>> 
>> So, I am asking for help from Mikael in this regard…
> 
> Hi Otared,
> 
> At the moment I don't know how one can use the fallback system with
> calligraphic/script fonts. Let me explain in a few sentences what we
> changed. Now we have \mathcal and \mathscr. If the font has both a
> chancery alphabet and a roundhand alphabet, the goodie file is coded
> so that \mathcal points to chancery and \mathscr to roundhand. This is
> the case for Lucida. So, maybe you could try to do
> \setupbodyfont[lucidadk] and then try \mathscr out. Other fonts that
> have both variants are stixtwo and xits. The rest have only either
> chancery style or roundhand style, and there you will get what it has.
> About \cal I don't know.
> 
>> 
>> Also, it would be nice to have a few explanations about the new stuff in 
>> math alignments.
> 
> I think the new math alignments are still work in progress. One thing
> that happens will probably go unnoticed, and that is the spacing. Hans
> is playing a lot with the new atoms, and right now he is playing(?)
> with construction atoms, ghosts and fences. There is one new type of
> alignments, called simplealignments. We can use them for example to
> collect some equations with a brace (and give the collection one
> number).
> 
> /Mikael
> 
> \setupbodyfont[lucidadk]
> 
> \definemathsimplealign[collecteqequations][
> left={\startmathfenced[sesac]},
> right=\stopmathfenced,
> align={1:right,2:left},
> ]
> 
> \starttext
> %\showmakeup[mathglue]
> ${\mathcal ABC}$ and ${\mathscr ABC}$
> 
> \placeformula
> \startformula
> \startcollecteqequations
> \NC x \NC = r\sin\theta\cos\phi\NR
> \NC y \NC = r\sin\theta\sin\phi \NR
> \NC z \NC = r\cos\theta \NR
> \stopcollecteqequations
> \stopformula
> 
> \stoptext
> <220328-5.pdf>

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

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


Re: [NTG-context] upload

2022-03-28 Thread Mikael Sundqvist via ntg-context
On Mon, Mar 28, 2022 at 11:23 PM Otared Kavian  wrote:
>
> Hi Hans,
>
> Thank you for the new upload and the improvements you mention about the 
> handling of math stuff. Thanks also to Mikael for the follow up of these 
> matters.
>
> I noticed that in math mode the command \cal does not work anymore and one 
> has to use \mathcal.
> However in almost all of my documents I use Lucida Bright OT, and in some 
> occasions I replace its calligraphic letters by the slots from Asana Math 
> with the following definitions:
>
> \definefallbackfamily[myfont][math][Asana Math]
> [range={uppercasescript,lowercasescript}]
>
> % lucida font
> \definefontfamily[myfont][serif][Lucida Bright OT]
> \definefontfamily[myfont][math][LucidaBrightMathOT]
> \definefontfamily[myfont][sans][LucidaSansOT]
> \definefontfamily[myfont][mono][LucidaSansTypewriterOT]
>
> \setupbodyfont[myfont,9pt]
>
> It seems that with the changes made recently the above definitions must be 
> modified in order to have Asana Math show up.
>
> So, I am asking for help from Mikael in this regard…

Hi Otared,

At the moment I don't know how one can use the fallback system with
calligraphic/script fonts. Let me explain in a few sentences what we
changed. Now we have \mathcal and \mathscr. If the font has both a
chancery alphabet and a roundhand alphabet, the goodie file is coded
so that \mathcal points to chancery and \mathscr to roundhand. This is
the case for Lucida. So, maybe you could try to do
\setupbodyfont[lucidadk] and then try \mathscr out. Other fonts that
have both variants are stixtwo and xits. The rest have only either
chancery style or roundhand style, and there you will get what it has.
About \cal I don't know.

>
> Also, it would be nice to have a few explanations about the new stuff in math 
> alignments.

I think the new math alignments are still work in progress. One thing
that happens will probably go unnoticed, and that is the spacing. Hans
is playing a lot with the new atoms, and right now he is playing(?)
with construction atoms, ghosts and fences. There is one new type of
alignments, called simplealignments. We can use them for example to
collect some equations with a brace (and give the collection one
number).

/Mikael

\setupbodyfont[lucidadk]

\definemathsimplealign[collecteqequations][
left={\startmathfenced[sesac]},
right=\stopmathfenced,
align={1:right,2:left},
]

\starttext
%\showmakeup[mathglue]
${\mathcal ABC}$ and ${\mathscr ABC}$

\placeformula
\startformula
\startcollecteqequations
\NC x \NC = r\sin\theta\cos\phi\NR
\NC y \NC = r\sin\theta\sin\phi \NR
\NC z \NC = r\cos\theta \NR
\stopcollecteqequations
\stopformula

\stoptext


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

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


Re: [NTG-context] upload

2022-03-28 Thread Otared Kavian via ntg-context
Hi Hans,

Thank you for the new upload and the improvements you mention about the 
handling of math stuff. Thanks also to Mikael for the follow up of these 
matters.

I noticed that in math mode the command \cal does not work anymore and one has 
to use \mathcal.
However in almost all of my documents I use Lucida Bright OT, and in some 
occasions I replace its calligraphic letters by the slots from Asana Math with 
the following definitions:

\definefallbackfamily[myfont][math][Asana Math]
[range={uppercasescript,lowercasescript}]

% lucida font
\definefontfamily[myfont][serif][Lucida Bright OT]
\definefontfamily[myfont][math][LucidaBrightMathOT]
\definefontfamily[myfont][sans][LucidaSansOT]
\definefontfamily[myfont][mono][LucidaSansTypewriterOT]

\setupbodyfont[myfont,9pt]

It seems that with the changes made recently the above definitions must be 
modified in order to have Asana Math show up.

So, I am asking for help from Mikael in this regard…

Also, it would be nice to have a few explanations about the new stuff in math 
alignments.

Best regards: Otared K.

> On 25 Mar 2022, at 11:01, Hans Hagen via ntg-context  
> wrote:
> 
> Hi,
> 
> Last night I uploaded a new lmtx:
> 
> - fix in new strut handling
> - zint support improved
> - some more math font tweaks (mikael will enlighten *)
> - math alignment spacing nornmalized (mikael will explain *)
> - new simplealignment environmet (mikael will document *)
> 
> We're now playing a bit more with combining graphics and math (educational 
> usage)
> 
> Hans
> 
> * when asked
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] upload

2022-03-25 Thread Hans Hagen via ntg-context

Hi,

Last night I uploaded a new lmtx:

- fix in new strut handling
- zint support improved
- some more math font tweaks (mikael will enlighten *)
- math alignment spacing nornmalized (mikael will explain *)
- new simplealignment environmet (mikael will document *)

We're now playing a bit more with combining graphics and math 
(educational usage)


Hans

* when asked

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] upload

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

Hi,

I pploaded a new lmtx (no rpi 64 bins yet, one can pick these up from 
the build in a few days).


Apart from a few fixes (older side float issue, some recent special rule 
related things) the only new thing is 'low level anchoring'. More can be 
found in ontarget.pdf (ontarget-anchoring.tex). It basically boils down 
to boxes listening to source, target and anchor keys, as in:


\vbox
source 123
\bgroup
\offinterlineskip
\blackrule[width=4cm,height=2cm,depth=0cm,color=darkred]\par
\blackrule[width=4cm,height=0cm,depth=1cm,color=darkblue]\par
\setbox\scratchboxtwo\hbox
anchors "0004 "0001
  % anchor "00040001
target 123
orientation 1
{\blackrule[width=2cm,height=1cm,depth=0cm,color=darkgreen]%
 \hskip-2cm
 \blackrule[width=2cm,height=0cm,depth=1cm,color=darkyellow]}%
  %
\smash{\box\scratchboxtwo}%
\egroup

the mentioned document describes a bit higher interface (plugs into 
layers) .. all kind of experimental and meant as teaser for users who 
like low level stuff (playground).


I also made it possible to use context \frules with leaders as in:

test \leaders \frule height 6mm depth 3mm radius 1mm\hfill test

\startuseMPgraphic{demoleader}
fill
unitcircle xysized (RuleWidth,RuleHeight+RuleDepth)
withcolor RuleColor ;
\stopuseMPgraphic

test {\red \leaders \frule
height 6mm
depth  3mm
typemp
data{\includeMPgraphic{demoleader}}
\hfill} test

\startuseMPgraphic{demoleader}
drawdblarrow (0,RuleHeight) -- (RuleWidth,RuleHeight)
withpen pencircle scaled  RuleThickness
withcolor RuleColor ;
\stopuseMPgraphic

test {\red \leaders \frule
height  1mm % we need at least some dimensions
typemp
line1mm
data{\includeMPgraphic{demoleader}}
\hfill} test

(leaders can have boxes, rules and also glyphs)

In principle we can also have adaptive images (basically scaling) so I 
might make an example of that later (when i need it).


Of course I'll fix things I broke this time,

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-12-25 Thread Marco Patzer via ntg-context
On Sat, 25 Dec 2021 12:44:31 +0100
Hans Hagen  wrote:

> because these are not errors in the sense of 'quit' ... for instance 
> missing references can be resolved in a second run

Ok, but that's what the context runner is for, not? It's smart and
knows when it's hitting the last run and if there are still
unresolved issues, it could then report the correct return value to
the environment. The runner is responsible for the final return
value, not the individual context run AFAIK.

> you need to be explicit:
> 
> \enabledirectives [logs.errors={missing references,missing
> characters}]

Ok, that works, great news. So if I understand you correctly,
there's no command to enable them *all* at once? Frankly, I'd expect
\enabledirectives [logs.errors] to enable them all (including the
correct return value), but apparently it only enables the reporting
and doesn't affect the return value.

That begs the question: Which error directives are available (so I
can manually enable them)?

Side note: A missing font is not an error:

  \enabledirectives [logs.errors]
  \definefontfamily [foo] [serif] [no font here really]
  \setupbodyfont [foo]
  \starttext foo \stoptext

But I guess that's just not supported.

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

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


Re: [NTG-context] upload

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

On 12/25/2021 12:22 PM, Marco Patzer via ntg-context wrote:

On Sat, 25 Dec 2021 11:55:31 +0100
Hans Hagen  wrote:


  >mtxrun --autogenerate --script context --autopdf "oeps.tex"



mkiv lua stats  > runtime: 0.485 seconds, 1 processed pages, 1
shipped pages, 2.062 pages/second
mtx-context | fatal error: return code: 1

so ... an error ... that's the most i can do


I did some more checking. It seems to return 1 on *some* errors, but
not on all the ones supported by --errors. This example e.g.
compiles with return code 0:

%% enables logging of errors
\enabledirectives [logs.errors]

%% missing font
\definefontfamily [foo] [serif] [no font here really]
\setupbodyfont [foo]

\starttext
   %% missing characters
   풜

   %% missing figure
   \externalfigure [foo]

   %% missing references
   See \in{section}[sec:none].
\stoptext
because these are not errors in the sense of 'quit' ... for instance 
missing references can be resolved in a second run


you need to be explicit:

\enabledirectives [logs.errors={missing references,missing characters}]


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-12-25 Thread Marco Patzer via ntg-context
On Sat, 25 Dec 2021 11:55:31 +0100
Hans Hagen  wrote:

>  >mtxrun --autogenerate --script context --autopdf "oeps.tex"  
> 
> 
> 
> mkiv lua stats  > runtime: 0.485 seconds, 1 processed pages, 1
> shipped pages, 2.062 pages/second
> mtx-context | fatal error: return code: 1
> 
> so ... an error ... that's the most i can do

I did some more checking. It seems to return 1 on *some* errors, but
not on all the ones supported by --errors. This example e.g.
compiles with return code 0:

%% enables logging of errors
\enabledirectives [logs.errors]

%% missing font
\definefontfamily [foo] [serif] [no font here really]
\setupbodyfont [foo]

\starttext
  %% missing characters
  풜

  %% missing figure
  \externalfigure [foo]

  %% missing references
  See \in{section}[sec:none].
\stoptext

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

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


Re: [NTG-context] upload

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

On 12/25/2021 10:09 AM, Jeong Dal via ntg-context wrote:

Dear Hans,

I installed the new upload and compiled “helloWorld.tex” created Sanjoy Mahajan.
It runs well except  the dummy figures are not appeared in the pdf output.

However, I still got error message when try to compile “\startcolumnset … 
\stopcolumnset”.

fonts   > 'fallback modern-designsize rm 12pt' is loaded
mtx-context | fatal error: return code: 1
The terminal process "zsh '-c', 'mtxrun --autogenerate --script context --autopdf 
--purge '/Users/graph/Library/Mobile 
Documents/com~apple~CloudDocs/texMain/exit11.tex''" terminated with exit code: 1.

maybe some file access issue, i have no apple computer to test

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

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

On 12/25/2021 10:19 AM, Marco Patzer via ntg-context wrote:

On Fri, 24 Dec 2021 19:45:05 +0100
Hans Hagen via ntg-context  wrote:


When wrapping up before the weekend I uploaded a new lmtx (bottom
floats fixed afaiks


If you mean the issue I posted on 2021-11-30, then no. It still
throws an error here on my end.


exit codes more reliable


The example I posted on 2021-12-15 still returns success when it
should fail. So regarding the exit codes I see no change here.


\enabledirectives
  [logs.errors]

\starttext

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

\stoptext



>mtxrun --autogenerate --script context --autopdf "oeps.tex"



mkiv lua stats  > runtime: 0.485 seconds, 1 processed pages, 1 shipped 
pages, 2.062 pages/second

mtx-context | fatal error: return code: 1

so ... an error ... that's the most i can do

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-12-25 Thread Marco Patzer via ntg-context
On Fri, 24 Dec 2021 19:45:05 +0100
Hans Hagen via ntg-context  wrote:

> When wrapping up before the weekend I uploaded a new lmtx (bottom
> floats fixed afaiks

If you mean the issue I posted on 2021-11-30, then no. It still
throws an error here on my end.

> exit codes more reliable

The example I posted on 2021-12-15 still returns success when it
should fail. So regarding the exit codes I see no change here.

> side float coming loose from section head issue solved; ...).

That's fixed indeed. Thanks for looking into that.

Marco

LMTX 2021.12.25 00:55
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-12-25 Thread Jeong Dal via ntg-context
Dear Hans,

I installed the new upload and compiled “helloWorld.tex” created Sanjoy Mahajan.
It runs well except  the dummy figures are not appeared in the pdf output.

However, I still got error message when try to compile “\startcolumnset … 
\stopcolumnset”.

fonts   > 'fallback modern-designsize rm 12pt' is loaded
mtx-context | fatal error: return code: 1
The terminal process "zsh '-c', 'mtxrun --autogenerate --script context 
--autopdf --purge '/Users/graph/Library/Mobile 
Documents/com~apple~CloudDocs/texMain/exit11.tex''" terminated with exit code: 
1.

As you see in the log file, "return code: 11" is changed to “return code: 1”.

It might be the problem of system environment as you said.

Thank you.

Merry Christmas and Happy new year!

Best regards,

Dalyoung

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

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


Re: [NTG-context] upload

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

On 12/24/2021 11:08 PM, Jairo A. del Rio wrote:

Hi, Hans. In Ubuntu 20.04:

resolvers       > lua > loading file 
'/home/coragyps/lmtx/tex/texmf-context/tex/context/base/mkxl/node-cmp.lmt' 
succeeded


fatal error: storage cannot be marked

strange ... must be a mismatch in binary ... i'll reupload


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-12-24 Thread Rik Kabel via ntg-context

Same with W64 on W11.

On 2021-12-24 17:08, Jairo A. del Rio via ntg-context wrote:

Hi, Hans. In Ubuntu 20.04:

resolvers       > lua > loading file 
'/home/coragyps/lmtx/tex/texmf-context/tex/context/base/mkxl/node-cmp.lmt' 
succeeded


fatal error: storage cannot be marked

Jairo


El vie, 24 dic 2021 a la(s) 13:45, Hans Hagen via ntg-context 
(ntg-context@ntg.nl) escribió:


Hi,

When wrapping up before the weekend I uploaded a new lmtx (bottom
floats
fixed afaiks, but hat mechanism might see some improvements anyway
next
year; exit codes more reliable; some low level tracing; side float
coming loose from section head issue solved; ...).

I'm experimenting with some more efficient low level state info
and in
the process ran into an issue / interference with (also low level)
attributes. I'm not sure if I solved it (work in progress, i need
to run
into another border case first which may take ages) but the test
suite
runs ok so ...

Hans

-
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl
 | www.pragma-pod.nl

-

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

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

___


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

maillist :ntg-context@ntg.nl  /http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  :http://www.pragma-ade.nl  /http://context.aanhet.net
archive  :https://bitbucket.org/phg/context-mirror/commits/
wiki :http://contextgarden.net
__
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-12-24 Thread Jairo A. del Rio via ntg-context
Hi, Hans. In Ubuntu 20.04:

resolvers   > lua > loading file
'/home/coragyps/lmtx/tex/texmf-context/tex/context/base/mkxl/node-cmp.lmt'
succeeded

fatal error: storage cannot be marked

Jairo


El vie, 24 dic 2021 a la(s) 13:45, Hans Hagen via ntg-context (
ntg-context@ntg.nl) escribió:

> Hi,
>
> When wrapping up before the weekend I uploaded a new lmtx (bottom floats
> fixed afaiks, but hat mechanism might see some improvements anyway next
> year; exit codes more reliable; some low level tracing; side float
> coming loose from section head issue solved; ...).
>
> I'm experimenting with some more efficient low level state info and in
> the process ran into an issue / interference with (also low level)
> attributes. I'm not sure if I solved it (work in progress, i need to run
> into another border case first which may take ages) but the test suite
> runs ok so ...
>
> Hans
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] upload

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

Hi,

When wrapping up before the weekend I uploaded a new lmtx (bottom floats 
fixed afaiks, but hat mechanism might see some improvements anyway next 
year; exit codes more reliable; some low level tracing; side float 
coming loose from section head issue solved; ...).


I'm experimenting with some more efficient low level state info and in 
the process ran into an issue / interference with (also low level) 
attributes. I'm not sure if I solved it (work in progress, i need to run 
into another border case first which may take ages) but the test suite 
runs ok so ...


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload ... new feature

2021-12-10 Thread Pablo Rodriguez via ntg-context
On 12/10/21 6:37 PM, Hans Hagen via ntg-context wrote:
> On 12/10/2021 6:04 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> I’m afraid I’m not getting anything different.
>> [...]
>> I wonder whether there has been an LMTX update or something else that
>> I’m missing (Linux64).
>
> ownerpassword is mandate.

Everything is clear now and it works as expected.

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


Re: [NTG-context] upload ... new feature

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

On 12/10/2021 6:04 PM, Pablo Rodriguez via ntg-context wrote:

On 12/10/21 11:46 AM, Hans Hagen via ntg-context wrote:

Hi,

This time the lmtx upload has a (for some maybe) interesting new
features: runtime pdf encryption.

context
 --ownerpassword=foo
[--userpassword=bar]
[--permissions="see context --help --expert"]


Many thanks for the new feature, Hans.

I’m afraid I’m not getting anything different.

Here is the source:

   \nopdfcompression
   \starttext
   \null
   \stoptext

"context --purgeall --userpassword=foo a" outputs
https://pdf.ousia.tk/enc.pdf.

"context --purgeall a" outputs https://pdf.ousia.tk/non-enc.pdf.

MuPDF-GL version 1.19 shows no encryption at all.

I wonder whether there has been an LMTX update or something else that
I’m missing (Linux64).

Many thanks for your help,

ownerpassword is mandate

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload ... new feature

2021-12-10 Thread Pablo Rodriguez via ntg-context
On 12/10/21 11:46 AM, Hans Hagen via ntg-context wrote:
> Hi,
>
> This time the lmtx upload has a (for some maybe) interesting new
> features: runtime pdf encryption.
>
> context
> --ownerpassword=foo
>[--userpassword=bar]
>[--permissions="see context --help --expert"]

Many thanks for the new feature, Hans.

I’m afraid I’m not getting anything different.

Here is the source:

  \nopdfcompression
  \starttext
  \null
  \stoptext

"context --purgeall --userpassword=foo a" outputs
https://pdf.ousia.tk/enc.pdf.

"context --purgeall a" outputs https://pdf.ousia.tk/non-enc.pdf.

MuPDF-GL version 1.19 shows no encryption at all.

I wonder whether there has been an LMTX update or something else that
I’m missing (Linux64).

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


Re: [NTG-context] upload ... new feature

2021-12-10 Thread Taco Hoekwater via ntg-context


> On 10 Dec 2021, at 11:46, Hans Hagen via ntg-context  
> wrote:
> 
> Hi,
> 
> This time the lmtx upload has a (for some maybe) interesting new features: 
> runtime pdf encryption.
> 
> 
> I would be surprised if the native apple viewer works but I can't test that.

Apple Preview works without any problems, with a quick test.

It forces a popup dialog for “user password” on opening when that is set, and 
with 

  context .. --permissions="-print”

it shows an "owner password" dialog before allowing to print

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


[NTG-context] upload ... new feature

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

Hi,

This time the lmtx upload has a (for some maybe) interesting new 
features: runtime pdf encryption.


context
   --ownerpassword=foo
  [--userpassword=bar]
  [--permissions="see context --help --expert"]

One can also use the document banner line, like:

% ownerpassword="foo" userpassword="" permissions="print,extract,quality"

Now, this is a feature that relies on the viewer to deal properly with 
it as we only support the not depricated method (why bother with the old 
stuff).


acrobat  : it took some effort (and trial and error) to make that one 
happy but it seems to work ok


summatra : the one i use, it works ok in the latest greatest (i use 
3.3.13418)


mutool   : okay but sometimes with a warning (i have a workearound but 
not enabled it because i consider it to be a bug)


qpdf : happy but check gives a permissions warning (understandable 
as that is a real mess)


firefox  : opens ok in the latest version (pdf.js)

chrome   : can't handle the revision level we use (the rest is 
depricated so i consider it a lack of feature for now)


edge : idem

okular   : my (windows) version is too old

xpdf : not up to it yet

foxit: (i never use it, but tried ... it's code seems to be what is 
used in chrome) doesn't work with this revision


I would be surprised if the native apple viewer works but I can't test that.

Given earlier pdf threads, I wanna check with Michal Vlasák what can be 
improved.


Performance is okay, the luametatex manual takes 1% more runtime and 
that's within the runtime measurement margin that I use. I didn't test 
with external images yet but will do that so don't expection yet. It 
will probably take a few months to reach a stable state anyway. (But ... 
afaiks tikz pdf generation, which is also somewhat alien to context, 
seems to work).


Hopefully I didn't mess up the unrelated code,

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-12-05 Thread Jairo A. del Rio via ntg-context
Hi, Hans. I've got a question. Negative steps are treated as positive:

\starttext
\expandedloop 10 0 -2 {\the\currentloopiterator\ }
\stoptext

gives

0 2 4 6 8 10

Is this expected behavior? If so, it would be fine to have something more
alike to MetaPost's "for ... step ... until" loop. Thank you in advance.

Regards,

Jairo

El vie, 3 dic 2021 a la(s) 09:29, Hans Hagen via ntg-context (
ntg-context@ntg.nl) escribió:

> Hi,
>
> a new upload
>
> - some keywords renamed in the engine and therefore more split between
> mkiv and lmtx (hopefully i included all files) .. if something doesn't
> work any more it might be because i missed a rename.
>
> - i finally decied that it does make sense to have native loops at the
> primitive level (after all, metapost as macro language also has them)
> and although much is possible in macros it doesn't mean we have to do it
> the (often ugly and showing-off-by-abusing-side-effects way).
>
> We have just a constructor:
>
>\unexpandedloop  1 100 1 {.}
>
> and a fully expandable one for e.g. use in \edef:
>
>\expandedloop1 100 1 {.}
>
> plus an also fully expandable one for anywhere but with potential side
> effects (out of order local loops):
>
>\localcontrolledloop 1 100 1 {.}
>
> complemented by a few status primitives (integers, use \the or \number
> to serialize them):
>
>\currentloopiterator
>\currentloopnesting
>
> and a quitter that aborts at the next iteration:
>
>\quitloop
>
> as usual it's experimental for a while. Among the rationales are 'less
> tracing clutter', 'performance' and 'more natural primitive tex coding'
> (but that one is personal).
>
> Hans
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] upload

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

Hi,

a new upload

- some keywords renamed in the engine and therefore more split between 
mkiv and lmtx (hopefully i included all files) .. if something doesn't 
work any more it might be because i missed a rename.


- i finally decied that it does make sense to have native loops at the 
primitive level (after all, metapost as macro language also has them) 
and although much is possible in macros it doesn't mean we have to do it 
the (often ugly and showing-off-by-abusing-side-effects way).


We have just a constructor:

  \unexpandedloop  1 100 1 {.}

and a fully expandable one for e.g. use in \edef:

  \expandedloop1 100 1 {.}

plus an also fully expandable one for anywhere but with potential side 
effects (out of order local loops):


  \localcontrolledloop 1 100 1 {.}

complemented by a few status primitives (integers, use \the or \number 
to serialize them):


  \currentloopiterator
  \currentloopnesting

and a quitter that aborts at the next iteration:

  \quitloop

as usual it's experimental for a while. Among the rationales are 'less 
tracing clutter', 'performance' and 'more natural primitive tex coding' 
(but that one is personal).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-11-26 Thread Hans Hagen via ntg-context

On 11/26/2021 11:06 AM, Alain Delmotte via ntg-context wrote:

Hi,

When I run the example below with 2021.11.22 22:32 LMTX fmt: 2021.11.23 
I get errors for \Umathxscale and \setupmathsspacing The control 
sequence [...] was never \def'ed.


which normally means that you should update

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-11-26 Thread Alain Delmotte via ntg-context

  
  
Hi,
When I run the example below with 2021.11.22
  22:32 LMTX fmt: 2021.11.23 I get errors for \Umathxscale and
  \setupmathsspacing The control sequence [...] was never \def'ed.


Alain


Le 24/11/2021 à 15:29, Hans Hagen via
  ntg-context a écrit :

Hi,
  
  
  for those who keep an eye on what is new, the most recent upload
  provides this:
  
  
  \starttext
  
  
  $\Umathxscale\textstyle  800 a + b + x + d + e = f $\par
  
  $\Umathxscale\textstyle 1000 a + b + x + d + e = f $\par
  
  $\Umathxscale\textstyle 1200 a + b + x + d + e = f $\blank
  
  
  $\showboxes\setupmathspacing[narrow] a + b + x + d + e = f $\par
  
  $\showboxes\setupmathspacing[normal] a + b + x + d + e = f $\par
  
  $\showboxes\setupmathspacing[wide]   a + b + x + d + e = f $\blank
  
  
  $\showboxes\setupmathspacing[tight]  x^2_1$\quad
  
  $\showboxes\setupmathspacing[normal] x^2_1$\quad
  
  $\showboxes\setupmathspacing[loose]  x^2_1$\blank
  
  
  $\showboxes\setupmathspacing[narrow]\sqrt[2]{x+1}$\quad
  
  $\showboxes\setupmathspacing[normal]\sqrt[2]{x+1}$\quad
  
  $\showboxes\setupmathspacing[wide]  \sqrt[2]{x+1}$\blank
  
  
  $\showboxes\setupmathspacing[less]  \sqrt[2]{x+1}$\quad
  
  $\showboxes\setupmathspacing[normal]\sqrt[2]{x+1}$\quad
  
  $\showboxes\setupmathspacing[more]  \sqrt[2]{x+1}$\blank
  
  
  \stoptext
  
  
  it's still experimental so the predefined values might change
  
  
  Hans
  
  
  
  -
  
    Hans Hagen | PRAGMA ADE
  
    Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  
     tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
  
  -
  
___
  
  If your question is of interest to others as well, please add an
  entry to the Wiki!
  
  
  maillist : ntg-context@ntg.nl /
  http://www.ntg.nl/mailman/listinfo/ntg-context
  
  webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
  
  archive  : https://bitbucket.org/phg/context-mirror/commits/
  
  wiki : http://contextgarden.net
  
___
  

  

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

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


[NTG-context] upload

2021-11-24 Thread Hans Hagen via ntg-context

Hi,

for those who keep an eye on what is new, the most recent upload 
provides this:


\starttext

$\Umathxscale\textstyle  800 a + b + x + d + e = f $\par
$\Umathxscale\textstyle 1000 a + b + x + d + e = f $\par
$\Umathxscale\textstyle 1200 a + b + x + d + e = f $\blank

$\showboxes\setupmathspacing[narrow] a + b + x + d + e = f $\par
$\showboxes\setupmathspacing[normal] a + b + x + d + e = f $\par
$\showboxes\setupmathspacing[wide]   a + b + x + d + e = f $\blank

$\showboxes\setupmathspacing[tight]  x^2_1$\quad
$\showboxes\setupmathspacing[normal] x^2_1$\quad
$\showboxes\setupmathspacing[loose]  x^2_1$\blank

$\showboxes\setupmathspacing[narrow]\sqrt[2]{x+1}$\quad
$\showboxes\setupmathspacing[normal]\sqrt[2]{x+1}$\quad
$\showboxes\setupmathspacing[wide]  \sqrt[2]{x+1}$\blank

$\showboxes\setupmathspacing[less]  \sqrt[2]{x+1}$\quad
$\showboxes\setupmathspacing[normal]\sqrt[2]{x+1}$\quad
$\showboxes\setupmathspacing[more]  \sqrt[2]{x+1}$\blank

\stoptext

it's still experimental so the predefined values might change

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-10-23 Thread Mikael Sundqvist via ntg-context
On Fri, Oct 22, 2021 at 9:22 AM Hans Hagen  wrote:
>
> On 10/21/2021 10:31 PM, Mikael Sundqvist via ntg-context wrote:
>
> > It works very nicely. I played with the test file you sent me, and I
> > find that in the .lfg file, the up parameter set to 0.06 instead of
> > 0.1 looks better to me.
> there are no ssty's for the quadruple prime in that font but if you need
> primes so badly you probably shouldn't use it anyway i guess (there are
> only super-textsize ssty variants for the 1/2/3 and their reverse)
>
> anyway, as you desperately need these quads (why check otherwise),
> adding this to the lfg blob helps:
>
> local four = characters[0x2057]
> if four then
>  local one = characters[okay]
>  local owd = .75*one.width
>  local off = .6*one.height
>  four.width = 4*owd
>  four.commands = {
>  { "offset", 0, off, okay },
>  { "offset",   owd, off, okay },
>  { "offset", 2*owd, off, okay },
>  { "offset", 3*owd, off, okay },
>  }
> else
>  -- we don't add (but we could), just patch, and there's no
>  -- reverse quad either
> end
>
> and no one will notice (unless you wikify al this)
>
> 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
> -

Hi!

As I wrote, I do not use the quadruple primes (I used your file), but
I must confess that I'm impressed that you fix it so quickly. :)

In any case, a big thank you for fixing the primes in the libertinus font!!

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

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


Re: [NTG-context] upload

2021-10-22 Thread Hans Hagen via ntg-context

On 10/22/2021 5:50 PM, Michal Vlasák wrote:

Hello,

On Thu Oct 21, 2021 at 8:04 PM CEST, Hans Hagen via ntg-context wrote:

I cleaned up some more backend code. There were some mails about dates
and such and although the date field in setupinteraction works ok a more
drastic overload is doen with directives. The reason is that the fact
that we can set the date (and traler) is only because it permits
generating pdf files that can be compared. No date as a bad idea anyway.

\setupinteraction[title=My Title]
% \enabledirectives[backend.date=2034-06-07]
\enabledirectives[backend.date=no]
\enabledirectives[backend.trailerid=no]


I checked the backend code and some of the related os functions. I put
together a patch that hopefully fixes some stuff and doesn't break
anything. The changes:

1) Dates parsed by ConTeXt (function converters.totime), such as those
that are input to backend.date, now allow specifying seconds and time
zone information. If there is no timezone the datetime is presumed to be
in local time, otherwise the datetime is offset by the local / specified
time zone difference (because ConTeXt outputs these dates as local times
with local timezone). Additionally both "T" and " " are now allowed as
date/time separator characters. Thus dates output by ConTeXt can be also
fed in.


i made the parser a bit more tolerant

"1234-12-30"
"1234/12/30"
"1234-12-30 23:45"
"1234-12-30 23:45:16"
"1234-12-30  23:45:16"
"1234-12-30T23:45:16+01:00"
"1234-12-30 23:45:16-02:00"
"1234-12-30 23:45:16+05:00"
"1234-12-30 23:45:16 05:00"
"1234-12-30  23:45:16  05:00"

(I'll send you the file to check/test)


2) Fix the os.timezone function. Previously, it could be wrong around
midnight, which I discovered only by chance. The trick is lifted from
http://lua-users.org/wiki/TimeZone, which I hope is OK. The before and
after (I am at +02:00):

 os.localtime()  2021-10-22 01:44:24
 os.now()2021-10-21 23:44:24
 os.timezone(true)   -22:00


 os.localtime()  2021-10-22 01:46:23
 os.now()2021-10-21 23:46:23
 os.timezone(true)   +02:00


shouldn't we also offer a -02:00 ? (relative)


I also extended the interface of os.timezone to accommodate 1), but as
this is probably a very public interface, I am not sure if these changes
are OK. If more changes to the interface can be made, I propose to get
rid of the delta parameter, since it seems like a remnant from the past.


maybe later, i need to check other files


Some caching can also be introduced, but I again wasn't sure if this
even would be the final form of the function, so didn't do anything in
that sense, yet.


i'll adapt it to that


3) Don't use %X in time formats. It is specified to be platform
dependent and we want %H:%M:%S everywhere. Also, it would be nice if
lpdf-xmp.lmt would use the os.fulltime() function to format dates (like
back-exp.lmt does), but there are multiple dates with different formats
and purposes and it is probably too late to change now.


(probably not that harmfull on the platforms we support)

the reason for different times is that i never liked the timezone in 
regular date/time (so only the mandate one had it) but in the end i 
don't care that much about times/date i never look at (i admit that i 
never consult any of this pdf meta data)



4) I changed the os.fulltime function, that returns date + time + local
time zone to output the _local_ time instead of UTC time. This is AFAICT
the right way to do times. The PDF spec says:

 If no UT information is specified, the relationship of the specified
 time to UT shall be considered to be GMT. Regardless of whether the
 time zone is specified, the rest of the date shall be specified in
 local time.

 EXAMPLE: For example, December 23, 1998, at 7:52 PM, U.S. Pacific
 Standard Time, is represented by the string D:199812231952-08'00

A test program:


 \enabletrackers[backend.info]
 
 \enabledirectives[backend.date=1234-12-30]% 1234-12-30T00:00:00+02:00

 \enabledirectives[backend.date=1234-12-30 23:45]  % 
1234-12-30T23:45:00+02:00
 \enabledirectives[backend.date=1234-12-30 23:45:16]   % 
1234-12-30T23:45:16+02:00
 \enabledirectives[backend.date=1234-12-30T23:45:16+01:00] % 
1234-12-31T00:45:16+02:00
 \enabledirectives[backend.date=1234-12-30 23:45:16-02:00] % 
1234-12-31T03:45:16+02:00
 \enabledirectives[backend.date=1234-12-30 23:45:16+05:00] % 
1234-12-31T20:45:16+02:00
 
 \starttext

 dummy text
 
 \startluacode

 print("os.timezone(true)", os.timezone(true)) -- +02:00
 print("os.fulltime()", os.fulltime()) -- 2021-10-22 17:38:38+02:00
 print("os.localtime()", os.localtime())   -- 2021-10-22 17:38:38
 print("os.now()", os.now())   -- 2021-10-22 15:38:38
 \stopluacode
 \stoptext

I don't claim to know LPEG so please check my work. I also know nothing
about XMP, so I didn't check that at all, 

Re: [NTG-context] upload

2021-10-22 Thread Pablo Rodriguez via ntg-context
On 10/22/21 5:50 PM, Michal Vlasák via ntg-context wrote:
> [...]
> I checked the backend code and some of the related os functions. I put
> together a patch that hopefully fixes some stuff and doesn't break
> anything.
> [...]
>   \enabledirectives[backend.date=1234-12-30T23:45:16+01:00] % 
> 1234-12-31T00:45:16+02:00
>   \enabledirectives[backend.date=1234-12-30 23:45:16-02:00] % 
> 1234-12-31T03:45:16+02:00
>   \enabledirectives[backend.date=1234-12-30 23:45:16+05:00] % 
> 1234-12-31T20:45:16+02:00
> [...]
> Is the timezone stuff what you wanted, Pablo?

Hi Michal,

I haven’t found the time to check this, but this is pretty much what I
wanted: being able to set other timezones than the local one.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-10-22 Thread Michal Vlasák via ntg-context
Hello,

On Thu Oct 21, 2021 at 8:04 PM CEST, Hans Hagen via ntg-context wrote:
> I cleaned up some more backend code. There were some mails about dates
> and such and although the date field in setupinteraction works ok a more
> drastic overload is doen with directives. The reason is that the fact
> that we can set the date (and traler) is only because it permits
> generating pdf files that can be compared. No date as a bad idea anyway.
>
> \setupinteraction[title=My Title]
> % \enabledirectives[backend.date=2034-06-07]
> \enabledirectives[backend.date=no]
> \enabledirectives[backend.trailerid=no]

I checked the backend code and some of the related os functions. I put
together a patch that hopefully fixes some stuff and doesn't break
anything. The changes:

1) Dates parsed by ConTeXt (function converters.totime), such as those
that are input to backend.date, now allow specifying seconds and time
zone information. If there is no timezone the datetime is presumed to be
in local time, otherwise the datetime is offset by the local / specified
time zone difference (because ConTeXt outputs these dates as local times
with local timezone). Additionally both "T" and " " are now allowed as
date/time separator characters. Thus dates output by ConTeXt can be also
fed in.

2) Fix the os.timezone function. Previously, it could be wrong around
midnight, which I discovered only by chance. The trick is lifted from
http://lua-users.org/wiki/TimeZone, which I hope is OK. The before and
after (I am at +02:00):

os.localtime()  2021-10-22 01:44:24
os.now()2021-10-21 23:44:24
os.timezone(true)   -22:00


os.localtime()  2021-10-22 01:46:23
os.now()2021-10-21 23:46:23
os.timezone(true)   +02:00

I also extended the interface of os.timezone to accommodate 1), but as
this is probably a very public interface, I am not sure if these changes
are OK. If more changes to the interface can be made, I propose to get
rid of the delta parameter, since it seems like a remnant from the past.

Some caching can also be introduced, but I again wasn't sure if this
even would be the final form of the function, so didn't do anything in
that sense, yet.

3) Don't use %X in time formats. It is specified to be platform
dependent and we want %H:%M:%S everywhere. Also, it would be nice if
lpdf-xmp.lmt would use the os.fulltime() function to format dates (like
back-exp.lmt does), but there are multiple dates with different formats
and purposes and it is probably too late to change now.

4) I changed the os.fulltime function, that returns date + time + local
time zone to output the _local_ time instead of UTC time. This is AFAICT
the right way to do times. The PDF spec says:

If no UT information is specified, the relationship of the specified
time to UT shall be considered to be GMT. Regardless of whether the
time zone is specified, the rest of the date shall be specified in
local time.

EXAMPLE: For example, December 23, 1998, at 7:52 PM, U.S. Pacific
Standard Time, is represented by the string D:199812231952-08'00

A test program:


\enabletrackers[backend.info]

\enabledirectives[backend.date=1234-12-30]% 
1234-12-30T00:00:00+02:00
\enabledirectives[backend.date=1234-12-30 23:45]  % 
1234-12-30T23:45:00+02:00
\enabledirectives[backend.date=1234-12-30 23:45:16]   % 
1234-12-30T23:45:16+02:00
\enabledirectives[backend.date=1234-12-30T23:45:16+01:00] % 
1234-12-31T00:45:16+02:00
\enabledirectives[backend.date=1234-12-30 23:45:16-02:00] % 
1234-12-31T03:45:16+02:00
\enabledirectives[backend.date=1234-12-30 23:45:16+05:00] % 
1234-12-31T20:45:16+02:00

\starttext
dummy text

\startluacode
print("os.timezone(true)", os.timezone(true)) -- +02:00
print("os.fulltime()", os.fulltime()) -- 2021-10-22 17:38:38+02:00
print("os.localtime()", os.localtime())   -- 2021-10-22 17:38:38
print("os.now()", os.now())   -- 2021-10-22 15:38:38
\stopluacode
\stoptext

I don't claim to know LPEG so please check my work. I also know nothing
about XMP, so I didn't check that at all, sorry.

Is the timezone stuff what you wanted Pablo?

Full patch temporarily at this URL and also below:

https://github.com/contextgarden/context-mirror/compare/beta...vlasakm:dates

Michal

--- a/tex/context/base/mkiv/core-con.lua
+++ b/tex/context/base/mkiv/core-con.lua
@@ -17,7 +17,7 @@ slower but look nicer this way.
 --ldx]]--
 
 local floor = math.floor
-local osdate, ostime = os.date, os.time
+local osdate, ostime, ostimezone = os.date, os.time, os.timezone
 local concat, insert, reverse = table.concat, table.insert, table.reverse
 local lower, upper, rep, match, gsub = string.lower, string.upper, string.rep, 
string.match, string.gsub
 local utfchar, utfbyte = utf.char, utf.byte
@@ -1972,13 +1972,18 @@ implement {
 }
 
 local n = R("09")^1 / tonumber
+local sign = S("+-") / function(s) 

Re: [NTG-context] upload

2021-10-22 Thread Hans Hagen via ntg-context

On 10/21/2021 9:13 PM, Pablo Rodriguez via ntg-context wrote:

On 10/21/21 8:04 PM, Hans Hagen via ntg-context wrote:

Hi,

I cleaned up some more backend code.  There were some mails about dates
and such and although the date field in setupinteraction works ok a more
drastic overload is doen with directives. The reason is that the fact
that we can set the date (and traler) is only because it permits
generating pdf files that can be compared. No date as a bad idea anyway.

\setupinteraction[title=My Title]
% \enabledirectives[backend.date=2034-06-07]


Many thanks for the new version, Hans.

Is there a way to add time and timezone in backend.date?


Pablo : transparencies should work again (wrong alias fixed).


Many thanks for this fix too.

Sorry for insisting, but could you check what is wrong with an extra
blank space in rotated imposition
(https://mailman.ntg.nl/pipermail/ntg-context/2021/103909.html)?

.. it was not really a minimal example ...

\showframe

\starttext
\topskip4cm
\rotate[rotation=90] 
{\externalfigure[A3page.pdf][page=1,width=\textheight]}\page


\rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\page
\rotate[rotation=90] 
{\externalfigure[A3page.pdf][page=1,width=\textheight]}\page


\rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\page
\stoptext

so, you need to wrap it, like

\startpagemakeup \rotate[rotation=90] 
{\externalfigure[A3page.pdf][page=1,width=\textheight]}\stoppagemakeup
\startpagemakeup 
\rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\stoppagemakeup
\startpagemakeup \rotate[rotation=90] 
{\externalfigure[A3page.pdf][page=1,width=\textheight]}\stoppagemakeup
\startpagemakeup 
\rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\stoppagemakeup


and not make it 'sort of text that breaks or not across the page'. Now 
it is an interesting question why ... (spoiler: nice animation:)


\starttext
\topskip4cm
\dostepwiserecurse{0}{360}{1}{

\rotate[rotation=#1]{\externalfigure[A3page.pdf][page=1,width=\textheight]}
}
\stoptext

so we probably cross some threshold with some angles and because these 
are basically lines, we then get an interplay woth topskip, maxdepth etc 
(which normally goes unnoticed)


the good news is that you can play with it because rotate is normally 
configured for inline usage (so we get depth and height) you can use the 
location parameter to do otherwise:


% normal default depth fit broad high middle

\starttext
\topskip4cm
\dostepwiserecurse{0}{360}{1}{

\ruledhbox{\rotate[rotation=#1,location=high]{\externalfigure[A3page.pdf][page=1,width=\textheight]}}
}
\stoptext

irr it's actually shown somewhere in a manual but the source also has this

% \dostepwiserecurse{0}{360}{10}
%   {\startlinecorrection[blank]
%\hbox
%  {\expanded{\setuprotate[rotation=\recurselevel]}%
%   \traceboxplacementtrue
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=depth] 
{\ruledhbox{\bfb  (depth)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=fit] 
{\ruledhbox{\bfb(fit)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=broad] 
{\ruledhbox{\bfb  (broad)%
%   \hbox to 
.2\hsize{\hss\ruledhbox{\rotate[location=normal]{\ruledhbox{\bfb 
(normal)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=high] 
{\ruledhbox{\bfb   (high)}

%\stoplinecorrection}

% \def\Test{\ruledhbox{%
% \def\DemoX{\vl\kern.5\emwidth\vl}%
% \kern\emwidth\ruledhpack{\green\rotate[rotation=20] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\blue \rotate[rotation=0] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\red  \rotate[rotation=-20] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\green\rotate[rotation=200] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\blue \rotate[rotation=180] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\red 
\rotate[rotation=-200]{\ruledhpack{\DemoX}}}%

% \kern\emwidth}}

% \startTEXpage[offset=10pt,align=middle]
% \setuprotate[location=fit] \Test \par 
{\infofont\setstrut\strut fit} \par
% \setuprotate[location=depth]   \Test \par 
{\infofont\setstrut\strut depth}   \par
% \setuprotate[location=broad]   \Test \par 
{\infofont\setstrut\strut broad}   \par
% \setuprotate[location=high]\Test \par 
{\infofont\setstrut\strut high}\par
% \setuprotate[location=middle]  \Test \par 
{\infofont\setstrut\strut middle}  \par
% \setuprotate[location=default] \Test \par 
{\infofont\setstrut\strut default} \par

% \stopTEXpage

so, not a bug but a features (that code hasn't been touched for ages, 
apart from maybe some lmtx interface adaptation), and if it's not in the 
wiki .. you know what to do now


Hans

-
  Hans Hagen | PRAGMA ADE
 

Re: [NTG-context] upload

2021-10-22 Thread Hans Hagen via ntg-context

On 10/21/2021 10:31 PM, Mikael Sundqvist via ntg-context wrote:


It works very nicely. I played with the test file you sent me, and I
find that in the .lfg file, the up parameter set to 0.06 instead of
0.1 looks better to me.
there are no ssty's for the quadruple prime in that font but if you need 
primes so badly you probably shouldn't use it anyway i guess (there are 
only super-textsize ssty variants for the 1/2/3 and their reverse)


anyway, as you desperately need these quads (why check otherwise), 
adding this to the lfg blob helps:


local four = characters[0x2057]
if four then
local one = characters[okay]
local owd = .75*one.width
local off = .6*one.height
four.width = 4*owd
four.commands = {
{ "offset", 0, off, okay },
{ "offset",   owd, off, okay },
{ "offset", 2*owd, off, okay },
{ "offset", 3*owd, off, okay },
}
else
-- we don't add (but we could), just patch, and there's no
-- reverse quad either
end

and no one will notice (unless you wikify al this)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-10-21 Thread Mikael Sundqvist via ntg-context
On Thu, Oct 21, 2021 at 8:04 PM Hans Hagen via ntg-context
 wrote:
>
> Hi,
>
> I cleaned up some more backend code.  There were some mails about dates
> and such and although the date field in setupinteraction works ok a more
> drastic overload is doen with directives. The reason is that the fact
> that we can set the date (and traler) is only because it permits
> generating pdf files that can be compared. No date as a bad idea anyway.
>
> \setupinteraction[title=My Title]
> % \enabledirectives[backend.date=2034-06-07]
> \enabledirectives[backend.date=no]
> \enabledirectives[backend.trailerid=no]
> \starttext
>
> \startTEXpage
>  \blackrule[height=1cm,depth=0cm,width=4cm,color=darkred]
> \stopTEXpage
>
> (there always were command line options for it)
>
> More interesting is asome new experimental code:
>
> \starttext
>
> \dostepwiserecurse{40}{110}{2}{
>  \startTEXpage[offset=4mm,width=#1mm,align={stretch,normal,tolerant}]
>  \showmakeup[penalty]%
>  \orphanpenalties 4 4000 3000 2000 1000\relax
>  \updateparagraphpenalties
>  \samplefile{tufte}
>  \par
>  \stopTEXpage
> }
>
> \stoptext
>
> it's an addendum to the widowpenalties and clubpenalties introduced by
> etex but this time it's horizontal; the orphan penalties will be
> inserted before spaces (aka spaceskip, xspaceskip and zerospaceskip
> glue) so in this case 4000 between the last two 'words' and this
> trickery can be used to make sure that the last line is not too short
>
>  \orphanpenalties 4 4000 3000 -12000 1000\relax
>
> is also intereting
>
> it's work in progress (i need to play more with it and figure out nice
> values for context) .. there might be more such 'simple' useful tricks
>
> Mikael: you can test the math cheat (doesn't make the font nicer).
> Pablo : transparencies should work again (wrong alias fixed).
> Michal: you can check the dates (as for sure i messed up something).
>
> Hans
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___


Hi!

Thank you Hans for the very quick fix on the libertinus font!

It works very nicely. I played with the test file you sent me, and I
find that in the .lfg file, the up parameter set to 0.06 instead of
0.1 looks better to me.

/Mikael

PS I do not use them, but I noticed that the quadruple prime f
still uses small primes.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-10-21 Thread Pablo Rodriguez via ntg-context
On 10/21/21 8:04 PM, Hans Hagen via ntg-context wrote:
> Hi,
>
> I cleaned up some more backend code.  There were some mails about dates
> and such and although the date field in setupinteraction works ok a more
> drastic overload is doen with directives. The reason is that the fact
> that we can set the date (and traler) is only because it permits
> generating pdf files that can be compared. No date as a bad idea anyway.
>
> \setupinteraction[title=My Title]
> % \enabledirectives[backend.date=2034-06-07]

Many thanks for the new version, Hans.

Is there a way to add time and timezone in backend.date?

> Pablo : transparencies should work again (wrong alias fixed).

Many thanks for this fix too.

Sorry for insisting, but could you check what is wrong with an extra
blank space in rotated imposition
(https://mailman.ntg.nl/pipermail/ntg-context/2021/103909.html)?

Many thanks for your help again,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] upload

2021-10-21 Thread Hans Hagen via ntg-context

Hi,

I cleaned up some more backend code.  There were some mails about dates 
and such and although the date field in setupinteraction works ok a more 
drastic overload is doen with directives. The reason is that the fact 
that we can set the date (and traler) is only because it permits 
generating pdf files that can be compared. No date as a bad idea anyway.


\setupinteraction[title=My Title]
% \enabledirectives[backend.date=2034-06-07]
\enabledirectives[backend.date=no]
\enabledirectives[backend.trailerid=no]
\starttext

\startTEXpage
\blackrule[height=1cm,depth=0cm,width=4cm,color=darkred]
\stopTEXpage

(there always were command line options for it)

More interesting is asome new experimental code:

\starttext

\dostepwiserecurse{40}{110}{2}{
\startTEXpage[offset=4mm,width=#1mm,align={stretch,normal,tolerant}]
\showmakeup[penalty]%
\orphanpenalties 4 4000 3000 2000 1000\relax
\updateparagraphpenalties
\samplefile{tufte}
\par
\stopTEXpage
}

\stoptext

it's an addendum to the widowpenalties and clubpenalties introduced by 
etex but this time it's horizontal; the orphan penalties will be 
inserted before spaces (aka spaceskip, xspaceskip and zerospaceskip 
glue) so in this case 4000 between the last two 'words' and this 
trickery can be used to make sure that the last line is not too short


\orphanpenalties 4 4000 3000 -12000 1000\relax

is also intereting

it's work in progress (i need to play more with it and figure out nice 
values for context) .. there might be more such 'simple' useful tricks


Mikael: you can test the math cheat (doesn't make the font nicer).
Pablo : transparencies should work again (wrong alias fixed).
Michal: you can check the dates (as for sure i messed up something).

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-10-20 Thread Hans Hagen via ntg-context

On 10/19/2021 8:43 AM, Axel Kielhorn via ntg-context wrote:




Am 18.10.2021 um 23:17 schrieb Hans Hagen via ntg-context :

Hi,

I uploaded a new lmtx. This one is a little experimental because I removed so 
redundant / intermediate code still present from teh transition from mkiv to 
lmtx (mostly backend related). I might have missed something (not all is in the 
test suite) but nothing that can't be fixed easy, most has to do with the 
timing of definitions.

But I assume users save their stable trees anyway …


Of course we do, especially after Hraban recommended the 2021-10-10 tree last 
week.

Just one question:

LMTX comes with an empty texmf-modules tree.
Are we still supposed to copy the context version?

There have been updates to letter, filter and some others lately.
That means we have to update the context tree as well.

Do you plan to include this tree in the future?


at some point yes, but then we can also sync from the garden server (on 
the todo list)

 Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-10-19 Thread Pablo Rodriguez via ntg-context
On 10/18/21 11:17 PM, Hans Hagen via ntg-context wrote:
> Hi,
>
> I uploaded a new lmtx. This one is a little experimental because I
> removed so redundant / intermediate code still present from teh
> transition from mkiv to lmtx (mostly backend related). I might have
> missed something (not all is in the test suite) but nothing that can't
> be fixed easy, most has to do with the timing of definitions.
>
> But I assume users save their stable trees anyway ...

Hi Hans,

I’m afraid that viewerlayers have issues now.

I hope I’ll find some time soon to write a minimal sample.

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2021-10-19 Thread Axel Kielhorn via ntg-context


> Am 18.10.2021 um 23:17 schrieb Hans Hagen via ntg-context 
> :
> 
> Hi,
> 
> I uploaded a new lmtx. This one is a little experimental because I removed so 
> redundant / intermediate code still present from teh transition from mkiv to 
> lmtx (mostly backend related). I might have missed something (not all is in 
> the test suite) but nothing that can't be fixed easy, most has to do with the 
> timing of definitions.
> 
> But I assume users save their stable trees anyway …

Of course we do, especially after Hraban recommended the 2021-10-10 tree last 
week.

Just one question:

LMTX comes with an empty texmf-modules tree.
Are we still supposed to copy the context version?

There have been updates to letter, filter and some others lately.
That means we have to update the context tree as well.

Do you plan to include this tree in the future?

Greetings

Axel

PS: I tested one document with the new version without problems.

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

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


[NTG-context] upload

2021-10-18 Thread Hans Hagen via ntg-context

Hi,

I uploaded a new lmtx. This one is a little experimental because I 
removed so redundant / intermediate code still present from teh 
transition from mkiv to lmtx (mostly backend related). I might have 
missed something (not all is in the test suite) but nothing that can't 
be fixed easy, most has to do with the timing of definitions.


But I assume users save their stable trees anyway ...

(rpi bins should be in sync too.)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload / some new math stuff

2021-06-11 Thread Pablo Rodriguez
On 6/10/21 11:35 PM, Hans Hagen wrote:
> [...]
> I made a typescript for the 10pt regular and book (as I see no reason to
> configure 8pt).  So, assuming that one installs these fonts:
>
> \setupbodyfont[newcomputermodern-book]
> \setupbodyfont[newcomputermodern]
> [...]
> Happy testing (hopefully there are no side effects).

Many thanks for the new latest, Hans.

The following sample shows an issue with "newcmmono10-bolditalic.otf":

  \mainlanguage[agr]
  \definefontfamily[another][rm][Another]
[tf=file:newcmmono10-boldoblique.otf]
  \setupbodyfont[newcomputermodern]
  \starttext
  \tt\bi\input aristotle-grc\par
  \switchtobodyfont[another]
  \input aristotle-grc\par
  \it\input aristotle-grc
  \stoptext

I’m afraid that there is no "newcmmono10-bolditalic.otf", but
"newcmmono10-boldoblique.otf".

The following patch fixes the issue:

---
context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-newcomputermodern.mkiv
2021-06-11 16:58:53.742990586 +0200
+++ type-imp-newcomputermodern.mkiv 2021-06-11 16:51:57.861274985 +0200
@@ -46,7 +46,7 @@
 \definefontsynonym [\s!MonoItalic]
[\s!file:newcmmono10-italic.otf]
[\s!features=\s!none,\s!fallbacks=\s!MonoItalic]
-\definefontsynonym [\s!MonoBoldItalic]
[\s!file:newcmmono10-bolditalic.otf]
[\s!features=\s!none,\s!fallbacks=\s!MonoBoldItalic]
+\definefontsynonym [\s!MonoBoldItalic]
[\s!file:newcmmono10-boldoblique.otf]
[\s!features=\s!none,\s!fallbacks=\s!MonoBoldItalic]
 \stoptypescript

 \starttypescript [\s!math][newcomputermodern] [\s!name]
@@ -76,7 +76,7 @@
 \definefontsynonym [\s!MonoItalic]
[\s!file:newcmmono10-bookitalic.otf]
[\s!features=\s!none,\s!fallbacks=\s!MonoItalic]
-\definefontsynonym [\s!MonoBoldItalic]
[\s!file:newcmmono10-bolditalic.otf]
[\s!features=\s!none,\s!fallbacks=\s!MonoBoldItalic]
+\definefontsynonym [\s!MonoBoldItalic]
[\s!file:newcmmono10-boldoblique.otf]
[\s!features=\s!none,\s!fallbacks=\s!MonoBoldItalic]
 \stoptypescript

 \starttypescript [\s!math][newcomputermodern-book] [\s!name]

Many thanks for your excellent work with ConTeXt,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload / some new math stuff

2021-06-11 Thread Hans Hagen

On 6/11/2021 3:22 PM, Alan Braslau wrote:

On Thu, 10 Jun 2021 23:35:14 +0200
Hans Hagen  wrote:


So, assuming that one installs these fonts:


It looks modern (and new). Why not include it in the lmtx distribution?
Indeed it looks ok. (Years ago I had a talk at bachotex showing slightly 
boldened modern so it is already possible in context with the normal lm 
fonts .. it's how we do full-bold math).


I might but wonder why the book files are so large (it would add 
significant to the currently small lmtx distribution so maybe wait till 
a next version .. i'd not include the 8 pt anyway).


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload / some new math stuff

2021-06-11 Thread Alan Braslau
On Thu, 10 Jun 2021 23:35:14 +0200
Hans Hagen  wrote:

> So, assuming that one installs these fonts:

It looks modern (and new). Why not include it in the lmtx distribution?

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

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


Re: [NTG-context] upload / some new math stuff

2021-06-11 Thread Hans Hagen

On 6/11/2021 12:23 PM, Fabrice Couvreur wrote:

Hi Hans,
I am not a font specialist and I use pagella and modern.
I'm curious so I installed this new font 
in/home/viserion/LMTX/tex/texmf/fonts/opentype/public/newcomputermodern

I tested your file and I get the following message

fonts           > defining > unable to define 'newcm10-regular.otf' as 
'newcomputermodern-12pt-rm-tf-0--0'
fonts           > defining > font with asked name 'newcmmath-regular' is 
not found using lookup 'file'

you forgot to:

mtxrun --generate


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload / some new math stuff

2021-06-11 Thread Fabrice Couvreur
Hi Hans,
I am not a font specialist and I use pagella and modern.
I'm curious so I installed this new font in
/home/viserion/LMTX/tex/texmf/fonts/opentype/public/newcomputermodern
I tested your file and I get the following message
Thank you Fabrice

Running `lmtx' on `hans-33' with
``/home/viserion/LMTX/tex/texmf-linux-64/bin/mtxrun --autogenerate --script
context --autopdf --purgeall hans-33''

resolvers   | formats | executing runner 'run luametatex format':
/home/viserion/LMTX/tex/texmf-linux-64/bin/luametatex --jobname="hans-33"
--fmt=/home/viserion/LMTX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
--lua=/home/viserion/LMTX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
 --c:autopdf --c:currentrun=1 --c:fulljobname="./hans-33"
--c:input="./hans-33" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall
--c:texmfbinpath="/home/viserion/LMTX/tex/texmf-linux-64/bin"
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
system  >
system  > ConTeXt  ver: 2021.06.10 23:13 LMTX  fmt: 2021.6.11  int:
english/english
system  >
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name
'/home/viserion/LMTX/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/viserion/LMTX/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname 'hans-33', input './hans-33', result
'hans-33'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './hans-33.tex'
open source > level 2, order 3, name
'/home/viserion/LMTX/tex/texmf-context/tex/context/fonts/mkiv/type-imp-newcomputermodern.mkiv'
close source> level 2, order 3, name
'/home/viserion/LMTX/tex/texmf-context/tex/context/fonts/mkiv/type-imp-newcomputermodern.mkiv'
fonts   > defining > forced type 'otf' of 'newcm10-regular' not
found
fonts   > defining > unable to define 'newcm10-regular.otf' as
'newcomputermodern-12pt-rm-tf-0--0'
fonts   > defining > font with asked name 'newcmmath-regular' is
not found using lookup 'file'
fonts   > defining > unable to define 'newcmmath-regular' as
'newcomputermodern-12pt-mm-mr--3'
fonts   > defining > unable to define 'newcmmath-regular' as
'newcomputermodern-12pt-mm-mr--2'
fonts   > defining > unable to define 'newcmmath-regular' as
'newcomputermodern-12pt-mm-mr--1'
fonts   > defining > unable to define 'newcmmath-regular' as
'newcomputermodern-12pt-mm-mb--3'
fonts   > defining > unable to define 'newcmmath-regular' as
'newcomputermodern-12pt-mm-mb--2'
fonts   > defining > unable to define 'newcmmath-regular' as
'newcomputermodern-12pt-mm-mb--1'
tex error   > tex error on line 12 in file ./hans-33.tex: Math error:
parameter 'quad' in style 0 is not set

 \p_distance \endgroup \stopimath

 \p_distance \stopforceddisplaymath
\egroup \d_strc_math_number_width \wd \b_strc_formulas_number \ifcase
\mathnumberstatus \setfalse \c_strc_math_has_number \or \ifzeropt
\d_strc_math_number_width \setfalse \c_strc_math_has_number \else \settrue
\c_strc_math_has
 \p_distance \endgroup \ifcase \c_strc_formulas_mode
\Ucheckedstopdisplaymath \or \normalUstopmath \egroup
\strc_formulas_flush_content_and_number \else \expandafter \stopinnermath
\fi
\afterdisplayspace \egroup

 \p_distance \strc_formulas_place_number \strc_formulas_flush_number
\dostarttagged \t!formulacontent \empty \dotagregisterformula
\c_strc_formulas_n \csname \e!stop \formulaparameter \c!alternative
\v!formula \endcsname
\dostoptagged \dostoptagged \nonoindentati

 \stopformula

 2 % \setupbodyfont[cambria]
 3
 4 \starttext
 5
 6 \startformula
 7  x = \integral^1_2 \mathinner{\vrule height 10mm depth 10mm
width 5mm} =
 8  x = \integral^1_2 \mathinner{\vrule height 20mm depth 20mm
width 5mm} =
 9  x = \integral^1_2 \mathinner{\vrule height 30mm depth 30mm
width 5mm} =
10  x = \integral^1_2 \mathinner{x} =
11  x = \integral^1_2 x
12 >>  \stopformula
13
14 \startformula
15  x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 10mm depth
16 10mm width 5mm} =
17  x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 20mm depth
18 20mm width 5mm} =
19  x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 30mm depth
20 30mm width 5mm} =
21  x = \int\Umathadaptsize^1_2 \mathinner{x} =
22  x = \int\Umathadaptsize^1_2 x
Sorry, but I can't typeset math unless various parameters have been set.
This is
normally done by loading special math fonts into the math family slots.
Your font
set is lacking at least the parameter mentioned earlier.
mtx-context | fatal error: return code: 256

Le ven. 11 juin 

Re: [NTG-context] upload / some new math stuff

2021-06-11 Thread Mikael Sundqvist
On Thu, Jun 10, 2021 at 11:35 PM Hans Hagen  wrote:
>
> Hi,
>
> I played a bit with these newcomputermodern fonts. They are extended
> versions of latin modern and come in:
>
> - 10pt (serif, sane, mono, math)
> - book (serif, sane, mono, math)
> -  8pt (partial)
>
> I made a typescript for the 10pt regular and book (as I see no reason to
> configure 8pt).  So, assuming that one installs these fonts:
>
> \setupbodyfont[newcomputermodern-book]
> \setupbodyfont[newcomputermodern]
>
> should work ok. The book variant is quite nice. I didn't look into the
> provided math alternates (context supports that but I didn't define them
> for this font ... input from math lovers is welcome).
>
> Now, this font also implements, as cambria does, upright integrals and
> as that has comes on my radar every year when I ponder these integrals I
> decided that it was about tiem to deal with it properly. It is no big
> deal to implement them gropwing (after all one can see them as left
> delimiter) but the main issue are these super and subscripts.
>
> \setupbodyfont[newcomputermodern-book]
> % \setupbodyfont[cambria]
>
> \starttext
>
> \startformula
>  x = \integral^1_2 \mathinner{\vrule height 10mm depth 10mm width 5mm} =
>  x = \integral^1_2 \mathinner{\vrule height 20mm depth 20mm width 5mm} =
>  x = \integral^1_2 \mathinner{\vrule height 30mm depth 30mm width 5mm} =
>  x = \integral^1_2 \mathinner{x} =
>  x = \integral^1_2 x
> \stopformula
>
> \startformula
>  x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 10mm depth
> 10mm width 5mm} =
>  x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 20mm depth
> 20mm width 5mm} =
>  x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 30mm depth
> 30mm width 5mm} =
>  x = \int\Umathadaptsize^1_2 \mathinner{x} =
>  x = \int\Umathadaptsize^1_2 x
> \stopformula
>
> \def\rab{\Umathchar"1"00"007C }
>
> $
>  x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 10mm depth
> 10mm width 5mm} =
>  x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 20mm depth
> 20mm width 5mm} =
>  x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 30mm depth
> 30mm width 5mm} =
>  x = \int\Umathadaptsize^1_2 x =
>  x = \rab\Umathadaptsize^1_2^^1__2 \mathinner{\vrule height 30mm
> depth 30mm width 5mm}
> $
>
> \stoptext
>
> After playing with several solutions (delimiters, fences, radicals etc)
> I just settled for a few line extension to the engine (there was already
> plenty in place in luametatex for that anyway) and it seem to work ok.
>
> This \Umathadaptsize is a bit like the limits related suffixes (and uses
> the same scanner logic). It basically flags an operator as something
> that should grow cf what follows. I can add some fine tuning if needed
> (can also be dealt with at the macro end, as with other mechanisms, but
> this is just a first test of useability).
>
> (I might also extend another mechanism to deal with it but putting
> scripts on top or after is already handles pretty well by regular
> mechanisms, so ...)
>
> Of course only a few fonts provide these upright growing integrals
> (makes me wonder about summation and product).
>
> Concerning the newcm fonts: for some reason the book variants (otf
> files) are about twice as large (in filesize) but what we use (cached)
> is the same size (only bboxes differ) so there is something fishy in the
> otf. I can imagine that at some point we add the 10pt/book ones to the
> standard mkiv distribution and maybe only the subset to the lmtx
> distribution but for now these book ones are too big for that, but it
> all depende on them being used.
>
> Happy testing (hopefully there are no side effects).
>
> Hans
>

Hi!

The book version looks nice, indeed! (I am one of those who still use
the MetaFont version of computer modern (in LaTeX), with some
parameters set so that it becomes less thin. Looks very nice when
printed. I guess this book version will also look better, and replace
the MetaFont setup!)

Is there an option available to always get upright integrals?

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

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


[NTG-context] upload / some new math stuff

2021-06-10 Thread Hans Hagen

Hi,

I played a bit with these newcomputermodern fonts. They are extended 
versions of latin modern and come in:


- 10pt (serif, sane, mono, math)
- book (serif, sane, mono, math)
-  8pt (partial)

I made a typescript for the 10pt regular and book (as I see no reason to 
configure 8pt).  So, assuming that one installs these fonts:


\setupbodyfont[newcomputermodern-book]
\setupbodyfont[newcomputermodern]

should work ok. The book variant is quite nice. I didn't look into the 
provided math alternates (context supports that but I didn't define them 
for this font ... input from math lovers is welcome).


Now, this font also implements, as cambria does, upright integrals and 
as that has comes on my radar every year when I ponder these integrals I 
decided that it was about tiem to deal with it properly. It is no big 
deal to implement them gropwing (after all one can see them as left 
delimiter) but the main issue are these super and subscripts.


\setupbodyfont[newcomputermodern-book]
% \setupbodyfont[cambria]

\starttext

\startformula
x = \integral^1_2 \mathinner{\vrule height 10mm depth 10mm width 5mm} =
x = \integral^1_2 \mathinner{\vrule height 20mm depth 20mm width 5mm} =
x = \integral^1_2 \mathinner{\vrule height 30mm depth 30mm width 5mm} =
x = \integral^1_2 \mathinner{x} =
x = \integral^1_2 x
\stopformula

\startformula
x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 10mm depth 
10mm width 5mm} =
x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 20mm depth 
20mm width 5mm} =
x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 30mm depth 
30mm width 5mm} =

x = \int\Umathadaptsize^1_2 \mathinner{x} =
x = \int\Umathadaptsize^1_2 x
\stopformula

\def\rab{\Umathchar"1"00"007C }

$
x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 10mm depth 
10mm width 5mm} =
x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 20mm depth 
20mm width 5mm} =
x = \int\Umathadaptsize^1_2 \mathinner{\vrule height 30mm depth 
30mm width 5mm} =

x = \int\Umathadaptsize^1_2 x =
x = \rab\Umathadaptsize^1_2^^1__2 \mathinner{\vrule height 30mm 
depth 30mm width 5mm}

$

\stoptext

After playing with several solutions (delimiters, fences, radicals etc) 
I just settled for a few line extension to the engine (there was already 
plenty in place in luametatex for that anyway) and it seem to work ok.


This \Umathadaptsize is a bit like the limits related suffixes (and uses 
the same scanner logic). It basically flags an operator as something 
that should grow cf what follows. I can add some fine tuning if needed 
(can also be dealt with at the macro end, as with other mechanisms, but 
this is just a first test of useability).


(I might also extend another mechanism to deal with it but putting 
scripts on top or after is already handles pretty well by regular 
mechanisms, so ...)


Of course only a few fonts provide these upright growing integrals 
(makes me wonder about summation and product).


Concerning the newcm fonts: for some reason the book variants (otf 
files) are about twice as large (in filesize) but what we use (cached) 
is the same size (only bboxes differ) so there is something fishy in the 
otf. I can imagine that at some point we add the 10pt/book ones to the 
standard mkiv distribution and maybe only the subset to the lmtx 
distribution but for now these book ones are too big for that, but it 
all depende on them being used.


Happy testing (hopefully there are no side effects).

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload / metafun

2020-12-16 Thread Hans Hagen

On 12/15/2020 9:18 PM, Pablo Rodriguez wrote:

On 12/15/20 8:24 PM, Otared Kavian wrote:

[...]
However after running install. sh on MacOS, I still get current
version: 2020.12.10 22:26, even after removing the .tma files.> So I guess I 
have to wait a little bit for the new version to be
upoaded.

Hans,

I’m afraid I’m having the same issue as Otared.

   $ curl I http://lmtx.pragma-ade.com/install-lmtx/texmf-context.zip
 Last-Modified: Thu, 10 Dec 2020 21:30:45 GMT

   $ curl -I http://lmtx.pragma-ade.com/install-lmtx/texmf.zip
 Last-Modified: Thu, 10 Dec 2020 21:30:47 GMT

This is from some minute ago (Date: Tue, 15 Dec 2020 20:15:33 GMT).

I guess this might be the reason for an oudated brand new install.

I think there might be an issue here.

I'll check it when I've finished what I'm doing now (some more mp stuff).

Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload / metafun

2020-12-15 Thread Pablo Rodriguez
On 12/15/20 8:24 PM, Otared Kavian wrote:
> [...]
> However after running install. sh on MacOS, I still get current
> version: 2020.12.10 22:26, even after removing the .tma files.> So I guess I 
> have to wait a little bit for the new version to be
> upoaded.
Hans,

I’m afraid I’m having the same issue as Otared.

  $ curl I http://lmtx.pragma-ade.com/install-lmtx/texmf-context.zip
Last-Modified: Thu, 10 Dec 2020 21:30:45 GMT

  $ curl -I http://lmtx.pragma-ade.com/install-lmtx/texmf.zip
Last-Modified: Thu, 10 Dec 2020 21:30:47 GMT

This is from some minute ago (Date: Tue, 15 Dec 2020 20:15:33 GMT).

I guess this might be the reason for an oudated brand new install.

I think there might be an issue here.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload / metafun

2020-12-15 Thread Otared Kavian
Hi Hans,

Thanks for the new upload. 
With your comments, I understand that, following the discussion with Aditya, 
when using the new version I should not define in Metafun a new function named
dotlabel
in order to have a square dot… Actually I called it mydotlabel in order to be 
able to change the shape of the dot, so I will be on the safe side when I can 
download the new version.

However after running install. sh on MacOS, I still get current version: 
2020.12.10 22:26, even after removing the .tma files.
So I guess I have to wait a little bit for the new version to be upoaded.

Best regards: Otared



> On 15 Dec 2020, at 10:35, Hans Hagen  wrote:
> 
> Hi,
> 
> I uploaded a new lmtx. This time some work has been done at the metafun end.
> 
> At the tex end we're working on some overload protection mechanism which 
> involves tagging many macro so that will take a while (most tagging is done 
> but checking left over cases take time).
> 
> So, I wondered if we can do something similar in metapost: flag macros and 
> variables in order to issue a warnings when a dangerous overload happens.
> 
> The current lmtx has this as an experiment: primitives, permanent, immutable 
> and mutable (so far); you can look at the *.mpxl files to get an idea. If you 
> say for instance
> 
>path fullcircle;
> 
> there will be a warning
> 
>   metapost> overloading immutable 'fullcircle'
> 
> or when
> 
>   \enabledirectives[metapost.overloadmode=error]
> 
> has been given you get an error.
> 
> The implementation is rather simple and non intrusive and differs from
> the one in tex. There it is tightly integrated for all kind of reasons 
> (millions of macro definitions per run so efficiency matters). Also, in 
> metapost variables (tags) can have complex name constructions and we only 
> test the top level. When a overload happens (overloadmode internal <> 0) a 
> lua callback takes care of it.
> 
> A side effect is that we can query all hash entries and check for consistency 
> which is what i've done and am doing now. Of course that can introduce issues 
> ... just that you know.
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] upload / metafun

2020-12-15 Thread Hans Hagen

Hi,

I uploaded a new lmtx. This time some work has been done at the metafun end.

At the tex end we're working on some overload protection mechanism which 
involves tagging many macro so that will take a while (most tagging is 
done but checking left over cases take time).


So, I wondered if we can do something similar in metapost: flag macros 
and variables in order to issue a warnings when a dangerous overload 
happens.


The current lmtx has this as an experiment: primitives, permanent, 
immutable and mutable (so far); you can look at the *.mpxl files to get 
an idea. If you say for instance


path fullcircle;

there will be a warning

metapost> overloading immutable 'fullcircle'

or when

\enabledirectives[metapost.overloadmode=error]

has been given you get an error.

The implementation is rather simple and non intrusive and differs from
the one in tex. There it is tightly integrated for all kind of reasons 
(millions of macro definitions per run so efficiency matters). Also, in 
metapost variables (tags) can have complex name constructions and we 
only test the top level. When a overload happens (overloadmode internal 
<> 0) a lua callback takes care of it.


A side effect is that we can query all hash entries and check for 
consistency which is what i've done and am doing now. Of course that can 
introduce issues ... just that you know.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2020-11-23 Thread Hans Hagen

On 11/23/2020 8:21 PM, Otared Kavian wrote:

Hi Hans,

On MacOS X I obtain the same error when doing:
context --make --all
(or mtxrun --make --all).
The error is

csname overload > fatal error, protection level 4, control sequence 
'textcontrolspace', properties 'immutable', file 'enco-ini.mkxl', line 315
yes, i'll make new zip btu i also found out that the build server is n't 
running so we get the wrong binaries (i kind of assume it runs and 
didn't check)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2020-11-23 Thread Hans Hagen

On 11/23/2020 7:29 PM, Christian Prim wrote:

Hi



Do I miss something?

looks like some old files are still present

i'll fix it

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2020-11-23 Thread Otared Kavian
Hi Hans,

On MacOS X I obtain the same error when doing:
context --make --all
(or mtxrun --make --all).
The error is

csname overload > fatal error, protection level 4, control sequence 
'textcontrolspace', properties 'immutable', file 'enco-ini.mkxl', line 315


Best regards: Otared

> On 23 Nov 2020, at 19:29, Christian Prim  wrote:
> 
> Hi
> 
> on linux I get:
> csname overload > fatal error, protection level 4, control sequence 
> 'textcontrolspace', properties 'immutable', file 'enco-ini.mkxl', line 315
> 
> wiped cache; run mtxrun --generate without problems; but context --make has 
> this error.
> 
> Do I miss something?
> 
> Thanks
> Christian
> 
> Am Mo., 23. Nov. 2020 um 18:56 Uhr schrieb Hans Hagen :
> Hi,
> 
> I uploaded a next iteration of lmtx. From now on there are dedicated sub 
> directories for mklx and mpxl, which is an indication that we're on the 
> way to a full code split.
> 
> Hans
> 
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] upload

2020-11-23 Thread Christian Prim
Hi

on linux I get:
csname overload > fatal error, protection level 4, control sequence
'textcontrolspace', properties 'immutable', file 'enco-ini.mkxl', line 315

wiped cache; run mtxrun --generate without problems; but context --make has
this error.

Do I miss something?

Thanks
Christian

Am Mo., 23. Nov. 2020 um 18:56 Uhr schrieb Hans Hagen :

> Hi,
>
> I uploaded a next iteration of lmtx. From now on there are dedicated sub
> directories for mklx and mpxl, which is an indication that we're on the
> way to a full code split.
>
> Hans
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2020-11-23 Thread Pablo Rodriguez
On 11/23/20 6:55 PM, Hans Hagen wrote:
> Hi,
>
> I uploaded a next iteration of lmtx. From now on there are dedicated sub
> directories for mklx and mpxl, which is an indication that we're on the
> way to a full code split.

Hi Hans,

I’m afraid that there is an error that prevents the creation of the
format file:

loading > ConTeXt Encoding Macros / Initialization

csname overload > fatal error, protection level 4, control sequence
'textcontrolspace', properties 'immutable', file 'enco-ini.mkxl', line 315

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


  1   2   >