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
___


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
___


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   

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
___


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
___


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
___


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
___


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
___


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
___


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
___


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
___


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
___


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
___


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
___


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
___


Re: [NTG-context] upload

2020-11-18 Thread Hans Hagen

On 11/18/2020 9:29 PM, Pablo Rodriguez wrote:

On 11/17/20 3:15 PM, Hans Hagen wrote:

On 11/17/2020 2:57 PM, Pablo Rodriguez wrote:

[...]
What are we doing wrong that prevents the update of the installation?

I don't know. Nothing really changed in the installer.


It may be something unrelated, but I don’t know why the resolver
databases (I assume tex/texmf-*.tma) aren’t detected by the installer
(or it considers them outdated).

The second cuestion is that current is set to %S (but probably this is
only about not showing the right version).

   resolvers | resolving | warning: no lua configuration files found
   resolvers | resolving | no texmf paths are defined (using TEXMF)
   resolvers | resolving |
   mtxrun| the resolver databases are not present or outdated
   mtx-install   | server   : lmtx.pragma-ade.com
   mtx-install   | instance : install-lmtx
   mtx-install   | platform : linux-64
   mtx-install   | system   : unix
   mtx-install   | updating tex/texmf, 1541 files
   mtx-install   | updating tex/texmf-context, 3757 files
   mtx-install   | updating tex/texmf-linux-64, 6 files
   mtx-install   | skipping tex/texmf-linux-64/bin/context
   mtx-install   | skipping tex/texmf-linux-64/bin/mtxrun
   mtx-install   | current  : %S
   mtx-install   | target   : true
   mtx-install   | removing : mtxrun
   mtx-install   | removing : context
   mtx-install   | linked   : mtxrun
   mtx-install   | linked   : context

Just in case it might help,
it looks like lua can't load a file (no problem loading it in editors) 
so i need to hack around it (maybe something lua 5.4 that i need to 
investigate)


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-18 Thread Pablo Rodriguez
On 11/17/20 3:15 PM, Hans Hagen wrote:
> On 11/17/2020 2:57 PM, Pablo Rodriguez wrote:
>> [...]
>> What are we doing wrong that prevents the update of the installation?
> I don't know. Nothing really changed in the installer.

It may be something unrelated, but I don’t know why the resolver
databases (I assume tex/texmf-*.tma) aren’t detected by the installer
(or it considers them outdated).

The second cuestion is that current is set to %S (but probably this is
only about not showing the right version).

  resolvers | resolving | warning: no lua configuration files found
  resolvers | resolving | no texmf paths are defined (using TEXMF)
  resolvers | resolving |
  mtxrun| the resolver databases are not present or outdated
  mtx-install   | server   : lmtx.pragma-ade.com
  mtx-install   | instance : install-lmtx
  mtx-install   | platform : linux-64
  mtx-install   | system   : unix
  mtx-install   | updating tex/texmf, 1541 files
  mtx-install   | updating tex/texmf-context, 3757 files
  mtx-install   | updating tex/texmf-linux-64, 6 files
  mtx-install   | skipping tex/texmf-linux-64/bin/context
  mtx-install   | skipping tex/texmf-linux-64/bin/mtxrun
  mtx-install   | current  : %S
  mtx-install   | target   : true
  mtx-install   | removing : mtxrun
  mtx-install   | removing : context
  mtx-install   | linked   : mtxrun
  mtx-install   | linked   : context

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

2020-11-17 Thread Willi Egger
Hans,

I was looking trough your new manuals. Chapeau! Very interesting and good 
reading! — I wonder whether your day still has 24 hours ;-) — Thank you so much!

Willi

> On 17 Nov 2020, at 12:55, Hans Hagen  wrote:
> 
> Hi,
> 
> I uploaded a new version of lmtx (and mkiv). We're still in the process of 
> migrating code from mkiv to lmtx (using new features). Anyway, I also 
> uploaded a few more (preliminary) 'manuals'
> 
> http://www.pragma-ade.com/general/manuals/lowlevel-macros.pdf
> http://www.pragma-ade.com/general/manuals/lowlevel-security.pdf
> http://www.pragma-ade.com/general/manuals/lowlevel-conditionals.pdf
> http://www.pragma-ade.com/general/manuals/lowlevel-boxes.pdf
> 
> but some is work in progress. It shows a bit how things evolve(d) and what ws 
> and i are dealing with now.  More (details) in due 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
> ___

___
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-17 Thread Hans Hagen

On 11/17/2020 2:57 PM, Pablo Rodriguez wrote:

On 11/17/20 12:55 PM, Hans Hagen wrote:

Hi,

I uploaded a new version of lmtx (and mkiv). We're still in the process
of migrating code from mkiv to lmtx (using new features).


Hans,

many thanks for the new upload.

As I reported before, I’m afraid I’m not able to update LMTX unless I
remove the three tex/texmf-*.tma files (in both Windows and Linux).

Other users have reported that this is the only method to get the update
done. But this downloads all the files, overloading your servers (after
all, this isn’t an update, just a complete install over an already
installed system).

This used to work before LMTX from 2020.09.20.

In Linux, tex/install.sh from both versions (2020.11.17 and 2020.11.15)
are exactly the same. I used a diff tool to allow no error.

What are we doing wrong that prevents the update of the installation?

I don't know. Nothing really changed in the installer.

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-17 Thread Pablo Rodriguez
On 11/17/20 12:55 PM, Hans Hagen wrote:
> Hi,
>
> I uploaded a new version of lmtx (and mkiv). We're still in the process
> of migrating code from mkiv to lmtx (using new features).

Hans,

many thanks for the new upload.

As I reported before, I’m afraid I’m not able to update LMTX unless I
remove the three tex/texmf-*.tma files (in both Windows and Linux).

Other users have reported that this is the only method to get the update
done. But this downloads all the files, overloading your servers (after
all, this isn’t an update, just a complete install over an already
installed system).

This used to work before LMTX from 2020.09.20.

In Linux, tex/install.sh from both versions (2020.11.17 and 2020.11.15)
are exactly the same. I used a diff tool to allow no error.

What are we doing wrong that prevents the update of the installation?

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

2020-07-28 Thread Hans Hagen

On 7/28/2020 10:58 AM, Fabrice Couvreur wrote:

Hi Hans,
I updated the version of lmtx and wanted to test the following code

\useMPlibrary[dum]
\starttext
\placefigure[right]{}{\externalfigure[dummy]}
\input ward\par
\placefigure[right]{}{\externalfigure[dummy]}
{\bf \input ward} \par


add a space after ward


\stoptext

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

maillist : ntg-context@ntg.nl / 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-07-28 Thread Fabrice Couvreur
Hi Hans,
I updated the version of lmtx and wanted to test the following code

\useMPlibrary[dum]
\starttext
\placefigure[right]{}{\externalfigure[dummy]}
\input ward\par
\placefigure[right]{}{\externalfigure[dummy]}
{\bf \input ward} \par
\stoptext

This returns the error message

runtime error : input file 'ward}.tex' is not found, quitting
mtx-context | fatal error: return code: 256

TeX Output exited abnormally with code 1 at Tue Jul 28 10:57:55

Thank you
Fabrice

Le lun. 27 juil. 2020 à 16:42, Hans Hagen  a écrit :

> Hi,
>
> Normally we don't report on successive loe level improvements in the
> engine or the core of context (we do so in articles and wrapups), and
> much goes unnoticed anyway (which is good). But ... the last couple of
> weeks we have been playing with some adapted functionality in lmtx and
> some of the experimental low level code has now made it in core.
> Normally users will not notice this but who knows.
>
> There are already features in lmtx that are not (and are unlikely to be)
> in mkiv (most significant in the metapost related part). When possible
> new macros and additions to mechanism will be in both mkiv and lmtx, but
> lmtx users will be better off in the end. We're mostly talking of the
> more tricky mechanisms here, those that currently have limitations due
> to all kind of possible interferences. To summarize:
>
> mkii : frozen (seldom patches)
> lmtx : cutting edge
> mkiv : when possible following lmtx, otherwise frozen
>
> Because we develop lmtx and luametatex alongside it is no problem if we
> have experimental (and even temporary imperfect) code in the engine:
> context knows about it and especially with experiments, we try to make
> sure it doesn't hit users (who we don't expect to use those, often
> undocumented, new tricks anyway). It's sometimes the only way to go
> forward (stepwise testing).
>
> So, here is an example of where lmtx can do better than mkiv:
>
> \placefigure[left]{}{}  \input ward  \par
> \placefigure[left]{}{} {\bf \input ward} \par
>
> Another area is in using footnotes. As a first step to more robust
> handling of deeply nested notes, lmtx now defaults to (the more than a
> decade optional in mkiv) \automigrateinserts, but with less overhead
> (for performance reasons, it was never enabled in mkiv, apart from
> occasional side effects). It is features like these that will stepwise
> be improved, at least that is what we hope for.
>
> So, the current upload has some new stuff, hopefully without too many
> side effects, but if so, we'll deal with it as usual. As a result, the
> latest lmtx could be a little slower, but I wonder if someone will
> notice it in practice.
>
> 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-02-17 Thread mf
if you fetch from the web site you need to use /latest as we no longer 
have lpha, beta current ... maybe somthing got messed up in the git 
sync, i don't know



The git mirror is in sync again.
Thanks to anybody working on it.

Best wishes,
Massi
___
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-02-13 Thread Hans Hagen

On 2/13/2020 11:28 AM, mf wrote:

Il 11/02/20 17:00, Hans Hagen ha scritto:

Hi,

I uploaded a fresh lmtx. There is some new stuff in there:



I'm a little bit confused about versions.

1) GIT MIRROR

The last commit in the branch "beta" is 2020-01-26 18:37:00.

I've seen no update since your "upload" message (the one i'm replying to).

(Hans, I know it's not you updating it)

2) CONTEXT MKIV

I've just updated the "latest" ConTeXt MkIV, i mean the one you update 
with first-setup.sh ...


Once updated, this is the output of "context --version":

mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file: 
/home/massi/context/latest/tex/texmf-context/tex/context/base/mkiv/context.mkiv 


mtx-context | current version: 2020.01.30 14:13
mtx-context | main context file: 
/home/massi/context/latest/tex/texmf-context/tex/context/base/mkiv/context.mkxl 


mtx-context | current version: 2020.01.30 14:13

3) LMTX

After ./install.sh and setting the PATH, "context --version" gives:

mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file: 
/home/massi/context/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv 


mtx-context | current version: 2019.07.24 11:31
mtx-context | main context file: 
/home/massi/context/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkxl 


mtx-context | current version: 2020.02.11 16:41

"2020.02.11 16:41" for MKXL looks right to me, since it's the version 
you are talking of in your message.


But what about "2019.07.24 11:31" for MKIV? It's even older than the one 
you get with first-setup.sh.


Maybe it's the version when MKXL and MKIV split, and "2020.01.30 14:13" 
is the latest version of MKIV with the backporting of some of the 
enhancements that took place in MKXL. Is it like that?
if you fetch from the web site you need to use /latest as we no longer 
have lpha, beta current ... maybe somthing got messed up in the git 
sync, i don't know


it occasionally can be that there is some difference with lmtx but not 
that large


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-02-13 Thread mf

Il 11/02/20 17:00, Hans Hagen ha scritto:

Hi,

I uploaded a fresh lmtx. There is some new stuff in there:



I'm a little bit confused about versions.

1) GIT MIRROR

The last commit in the branch "beta" is 2020-01-26 18:37:00.

I've seen no update since your "upload" message (the one i'm replying to).

(Hans, I know it's not you updating it)

2) CONTEXT MKIV

I've just updated the "latest" ConTeXt MkIV, i mean the one you update 
with first-setup.sh ...


Once updated, this is the output of "context --version":

mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file: 
/home/massi/context/latest/tex/texmf-context/tex/context/base/mkiv/context.mkiv

mtx-context | current version: 2020.01.30 14:13
mtx-context | main context file: 
/home/massi/context/latest/tex/texmf-context/tex/context/base/mkiv/context.mkxl

mtx-context | current version: 2020.01.30 14:13

3) LMTX

After ./install.sh and setting the PATH, "context --version" gives:

mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file: 
/home/massi/context/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv

mtx-context | current version: 2019.07.24 11:31
mtx-context | main context file: 
/home/massi/context/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkxl

mtx-context | current version: 2020.02.11 16:41

"2020.02.11 16:41" for MKXL looks right to me, since it's the version 
you are talking of in your message.


But what about "2019.07.24 11:31" for MKIV? It's even older than the one 
you get with first-setup.sh.


Maybe it's the version when MKXL and MKIV split, and "2020.01.30 14:13" 
is the latest version of MKIV with the backporting of some of the 
enhancements that took place in MKXL. Is it like that?


Best greetings,
Massi
___
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-02-11 Thread Richard Mahoney | Indica et Buddhica

With the latest just uploaded I'm running into the following on Linux,
after trying all these:

mtxrun --script cache --erase --make

mtxrun --generate

context --make

I've also tried manually deleting the cache but the result is the
same.


Does anyone know what might be wrong?


I'm attaching the log.


Best, Richard




-- 
Richard Mahoney | Indica et Buddhica
 
Littledene  Bay Road  Oxford  NZ 
T: +6433121699  M: +64210640216 
r.maho...@indica-et-buddhica.org 

https://indica-et-buddhica.org/ 

-Original Message-
From: Hans Hagen 
Reply-To: mailing list for ConTeXt users 
To: mailing list for ConTeXt users , Floris van 
Manen 
Subject: Re: [NTG-context] upload
Date: Tue, 11 Feb 2020 20:07:39 +0100
Mailer: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) 
Gecko/20100101
 Thunderbird/68.4.2

On 2/11/2020 5:18 PM, Floris van Manen wrote:
> 
> On 11-02-2020 17:00, Hans Hagen wrote:
> > - support for ecmascript for those who think thayt javascript is
> > better
> > than lua (of course only to find out at some point that it's not
> > true in
> > the perspective of context but it migh tmake a transition easier).
> > For
> > the impatient:
> > 
> > http://www.pragma-ade.com/general/manuals/ecmascript-mkiv.pdf
> 
> to (further) promote the usage of lua, it might help if the examples
> given in the pdf documentation will also include the (better) lua
> version...
sure but actually it can be that users have (or find) javascript code 
someplace that can help them do something without conversion (and 
introducing errors) ... of course assuming proper ecmascript

the interface in lmtx provides a way to pipe into tex (with catcode 
support) as well as access to files in the tex ecosystem (controlled)
so 
it just provides the few interfaces needed on top of a basic engine 
conforming the 'standard'

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
__
_
mtx-context | warning: no format found, forcing remake (commandline driven)
resolvers   | resolving | configuration files already identified
resolvers   | resolving | loading configuration file 'selfautoparent:/texmf/web2c/texmfcnf.lua'
resolvers   | resolving |
resolvers   | resolving | locating list of 'home:texmf' (runtime) (tree:///home:texmf)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 'tree', argument 'tree:///home:texmf'
resolvers   | trees | locator 'home:texmf' not found
resolvers   | resolving | locating list of 'selfautoparent:texmf-project' (cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 'file', argument 'selfautoparent:texmf-project'
resolvers   | files | file locator 'selfautoparent:texmf-project' found as '/home/rbm49/lmtx/tex/texmf-project'
resolvers   | resolving | locating list of 'selfautoparent:texmf-fonts' (cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 'file', argument 'selfautoparent:texmf-fonts'
resolvers   | files | file locator 'selfautoparent:texmf-fonts' found as '/home/rbm49/lmtx/tex/texmf-fonts'
resolvers   | resolving | locating list of 'selfautoparent:texmf-local' (cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 'file', argument 'selfautoparent:texmf-local'
resolvers   | files | file locator 'selfautoparent:texmf-local' found as '/home/rbm49/lmtx/tex/texmf-local'
resolvers   | resolving | locating list of 'selfautoparent:texmf-modules' (cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 'file', argument 'selfautoparent:texmf-modules'
resolvers   | files | file locator 'selfautoparent:texmf-modules' found as '/home/rbm49/lmtx/tex/texmf-modules'
resolvers   | resolving | locating list of 'selfautoparent:texmf-context' (cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 'file', argument 'selfautoparent:texmf-context'
resolvers   | files | file locator 'selfautoparent:texmf-context' found as '/home/rbm49/lmtx/tex/texmf-context'
resolvers   | resolving | locating list of 'selfautoparent:texmf-linux-64' (cached)
reso

Re: [NTG-context] upload

2020-02-11 Thread Hans Hagen

On 2/11/2020 5:18 PM, Floris van Manen wrote:



On 11-02-2020 17:00, Hans Hagen wrote:


- support for ecmascript for those who think thayt javascript is better
than lua (of course only to find out at some point that it's not true in
the perspective of context but it migh tmake a transition easier). For
the impatient:

http://www.pragma-ade.com/general/manuals/ecmascript-mkiv.pdf


to (further) promote the usage of lua, it might help if the examples
given in the pdf documentation will also include the (better) lua version...
sure but actually it can be that users have (or find) javascript code 
someplace that can help them do something without conversion (and 
introducing errors) ... of course assuming proper ecmascript


the interface in lmtx provides a way to pipe into tex (with catcode 
support) as well as access to files in the tex ecosystem (controlled) so 
it just provides the few interfaces needed on top of a basic engine 
conforming the 'standard'


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-02-11 Thread Floris van Manen


On 11-02-2020 17:00, Hans Hagen wrote:
> 
> - support for ecmascript for those who think thayt javascript is better
> than lua (of course only to find out at some point that it's not true in
> the perspective of context but it migh tmake a transition easier). For
> the impatient:
> 
> http://www.pragma-ade.com/general/manuals/ecmascript-mkiv.pdf

to (further) promote the usage of lua, it might help if the examples
given in the pdf documentation will also include the (better) lua version...

.F


pEpkey.asc
Description: application/pgp-keys
___
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

2013-03-05 Thread Thomas A. Schmitz

On 03/05/2013 07:18 PM, Hans Hagen wrote:

Hi,

I uploaded a 0.75 matching beta. I also

new / updated:

http://www.pragma-ade.com/general/manuals/sql-mkiv.pdf
http://www.pragma-ade.com/general/manuals/lua-mkiv.pdf
http://www.pragma-ade.com/general/manuals/templates-mkiv.pdf
http://www.pragma-ade.com/general/manuals/cld-mkiv.pdf

Unfortunately I haven't finished the new detailed font manual yet.

Hans


Had already seen templates-mkiv.pdf on the website: so we're talking 
mkix and mkxi now, eh? One day you will regret having used roman 
numerals, when we reach mkcccil or something like that.


All best

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] upload

2012-07-04 Thread Hongwen Qiu

On 07/04/2012 04:56 PM, Hans Hagen wrote:

Hi,

I uploaded a beta. There has been the usual amount of renamings going 
on so there might be problems.


Hans 

This is broken:

! Undefined control sequence.

system   tex  error on line 4 in file test.tex: Undefined 
control sequence ...


1 \starttext
2 \startformula
3 a
4   \stopformula
5 \stoptext
6

argument vspacing(\p_spaceafter
   )
\ctxcommand #1-\directlua \zerocount {commands.#1
  }
\spac_vspacing_yes_indeed ...mand {vspacing(#1)}
  \fi
\afterdisplayspace ...else \blank [\p_spaceafter ]
  \fi
\stopdisplaymath ...ath $$\par \afterdisplayspace
  \par \egroup
\strc_formulas_stop_formula ...native \v!formula }
  \dostoptagged 
\dostoptagge...

l.4 \stopformula
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] upload

2012-07-04 Thread Hans Hagen

On 4-7-2012 12:40, Hongwen Qiu wrote:

On 07/04/2012 04:56 PM, Hans Hagen wrote:

Hi,

I uploaded a beta. There has been the usual amount of renamings going
on so there might be problems.

Hans

This is broken:

! Undefined control sequence.

system   tex  error on line 4 in file test.tex: Undefined
control sequence ...


in strc-mat.mkiv patch

\unexpanded\def\afterdisplayspace
  {\edef\p_spaceafter{\formulaparameter\c!spaceafter}%
   \ifx\p_spaceafter\v!none \else
 \blank[\p_spaceafter]%
   \fi}

fixed in next beta

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] upload

2012-07-04 Thread Philipp Gesang
···date: 2012-07-04, Wednesday···from: Hans Hagen···

 Hi,
 
 I uploaded a beta. There has been the usual amount of renamings
 going on so there might be problems.

syst-aux.mkiv, line 2449:

-\def\syst_helpers_seventupleempty_four_yes#1#2#3#4[#5]%
+\def\syst_helpers_seventuple_empty_four_yes#1#2#3#4[#5]%

Philipp

 
 Hans
 
 
 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpwJsgCxQmSY.pgp
Description: PGP signature
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] upload

2012-06-22 Thread Marco
On 2012-06-22 Hans Hagen pra...@wxs.nl wrote:

 I uploaded a new beta (still no current). Some more core modules have 
 been cleaned up (so Wolfgang cum suis have to do more checking).

This fails:

\setupinteraction [state=start, focus=standard]
\starttext
  \startchapter [title=First, reference=sec:first]
  \stopchapter
\stoptext

with

!LuaTeX error: 1 unmatched \pdfsave after page shipout


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] upload

2012-06-22 Thread Hans Hagen

On 22-6-2012 12:10, Marco wrote:

On 2012-06-22 Hans Hagen pra...@wxs.nl wrote:


I uploaded a new beta (still no current). Some more core modules have
been cleaned up (so Wolfgang cum suis have to do more checking).


This fails:

\setupinteraction [state=start, focus=standard]
\starttext
   \startchapter [title=First, reference=sec:first]
   \stopchapter
\stoptext

with

!LuaTeX error: 1 unmatched \pdfsave after page shipout


fixed (uploading now)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] upload

2012-06-22 Thread Marco
On 2012-06-22 Hans Hagen pra...@wxs.nl wrote:

  !LuaTeX error: 1 unmatched \pdfsave after page shipout
 
 fixed (uploading now)

Works. And I see you also fixed the reference anchor position, which
was always underneath the reference text instead of above. Very
good!

Have a nice Midsommarafton!

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] upload

2012-06-20 Thread Hans Hagen

On 20-6-2012 05:28, Hongwen Qiu wrote:

On 06/20/2012 04:40 AM, Hans Hagen wrote:

I uploaded a version that has the bTABLE mechanism reorganized
(different low level names etc). Hopefully nothing got broken in the
process.

Unfortunately it is broken. Minimal example:


\starttext

\bTABLE
   \bTR\bTD[nc=2] r1c1 \eTD\eTR
   \bTR\bTD r2c1 \eTD\bTD r2c2 \eTD\eTR
\eTABLE


fixed in next upload

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] upload

2012-06-19 Thread Hongwen Qiu

On 06/20/2012 04:40 AM, Hans Hagen wrote:
I uploaded a version that has the bTABLE mechanism reorganized 
(different low level names etc). Hopefully nothing got broken in the 
process. 

Unfortunately it is broken. Minimal example:


\starttext

\bTABLE
  \bTR\bTD[nc=2] r1c1 \eTD\eTR
  \bTR\bTD r2c1 \eTD\bTD r2c2 \eTD\eTR
\eTABLE

\stoptext

Error message:

! Missing number, treated as zero.

system   tex  error on line 6 in file test.tex: Missing 
number, treated as zero ...


1 \starttext
2
3 \bTABLE
4   \bTR\bTD[nc=2] r1c1 \eTD\eTR
5   \bTR\bTD r2c1 \eTD\bTD r2c2 \eTD\eTR
6   \eTABLE
7
8 \stoptext
9

to be read again
   \relax
\21 ...l_ntb_get_dis \scratchcounter \fi \relax
  \advance 
\scratchcounter \...

\redorecurse -\expandrecursecontent
 \dodorecurse
to be read again
   {
inserted text
2
\dodorecurse ... \expandafter {\the \innerrecurse
  }{#2}
...
l.6 \eTABLE

?
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___