Re: [NTG-context] installer

2023-05-07 Thread Otared Kavian via ntg-context
Hi Alex,

You are right ! I have an alias for the mtxrun in the 
/context-osx-arm64/tex/texmf-osx-64/bin/
folder, but the alias is in an old bashrc file, while I was issuing the command 
in zsh…

Thanks for the help !

Best regards: Otared

> On 7 May 2023, at 17:11, Alexandre Christe  wrote:
> 
> Hi Otared,
> 
> I encountered the same issue the other day. Could it be that you run mtxrun 
> from the /bin folder instead of /tex/texmf-YOUR_ARCH/bin/ ? Somehow they seem 
> to be different.
> 
> Best regards,
> Alex
> Le 7 mai 2023 à 17:07 +0200, Otared Kavian via ntg-context 
> , a écrit :
>> Hi Hans,
>> 
>> Updating to current version: 2023.05.07 16:33 and issuing
>> 
>> mtxrun --script install-modules
>> 
>> I get:
>> 
>> mtxrun | unknown script 'install-modules.lua' or 'mtx-install-modules.lua’
>> 
>> 
>> Best regards: Otared
>> 
>>> On 7 May 2023, at 16:59, Hans Hagen via ntg-context  
>>> wrote:
>>> 
>>> On 5/7/2023 4:43 PM, Floris van Manen via ntg-context wrote:
>>>> $ mtxrun --script install-modules --list
>>>> resolvers | globbing | confusing filename, name: 'CHANGELOG', lower: 
>>>> 'changelog', already: 'ChangeLog'
>>>> mtxrun | unknown script 'install-modules.lua' or 'mtx-install-modules.lua'
>>> hm, it should be in the zip, adn therefore installed, so can others confirm 
>>> 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 / 
>>> 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
>>> ___
>> 
>> Otared Kavian
>> e-mail: ota...@gmail.com
>> Phone: +33 6 88 26 70 95
>> 
>> 
>> 
>> 
>> ___
>> 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
>> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




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

2023-05-07 Thread Otared Kavian via ntg-context
Hi Hans,

Updating to current version: 2023.05.07 16:33 and issuing

mtxrun --script install-modules

I get:

mtxrun  | unknown script 'install-modules.lua' or 
'mtx-install-modules.lua’


Best regards: Otared

> On 7 May 2023, at 16:59, Hans Hagen via ntg-context  
> wrote:
> 
> On 5/7/2023 4:43 PM, Floris van Manen via ntg-context wrote:
>> $ mtxrun --script install-modules --list
>> resolvers   | globbing | confusing filename, name: 'CHANGELOG', lower: 
>> 'changelog', already: 'ChangeLog'
>> mtxrun  | unknown script 'install-modules.lua' or 
>> 'mtx-install-modules.lua'
> hm, it should be in the zip, adn therefore installed, so can others confirm 
> 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 / 
> 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
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




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

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


Re: [NTG-context] Kaktovik numerals

2023-04-18 Thread Otared Kavian via ntg-context
Great indeed ! And the quick answer by Hans impressive, as usual…
What a great community !

Best regards: Otared

> On 18 Apr 2023, at 10:57, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> I just came across this thread about the base-20 system of the Inuit people 
> and the numerals invented for it in the 1990s:
> https://mathstodon.xyz/@johncarlosbaez/110215432175491555
> 
> This makes simple calculations just beautiful.
> 
> Hraban
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> _______

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
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] Did dotless i disappear ?

2023-03-13 Thread Otared Kavian via ntg-context
Hi Pablo, Hans, Wolfgang,

Indeed, thanks to you I see that in ConTeXt there exist plenty of solutions for 
the problem I reported. That’s really impressive !

Best regards : Otared

> On 13 Mar 2023, at 20:19, Hans Hagen via ntg-context  
> wrote:
> 
> On 3/13/2023 4:28 PM, Otared Kavian via ntg-context wrote:
>> Hi Hans,
>> I just noticed that the dotless i « \i » is not anymore recognized in 
>> ConTeXt. Of course one can nowadays find other ways to have it typeset, but 
>> in old documents which are included as inputs one has to correct this 
>> manually (for instance in French « connaître » was typed as « conn\^{\i}tre 
>> »).
>> Here is an example.
>> \starttext
>> Bío Bío (works fine…)
>> B\'{\i}o B\'{\i}o % this gives an error
>> \stoptext
> I'll add checking for the \i too. It's all part of a parser. Think
> 
> \chr {e acute}
> \chr {i circumflex}
> \^{i} \^i \^{\i}
> \^{a} \"{a}
> \withcircumflex{a}
> \withdiaeresis{a}
> 
> a bit messy code due to reuse of all kin dof mechanisms.
> 
> 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
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




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

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


[NTG-context] Did dotless i disappear ?

2023-03-13 Thread Otared Kavian via ntg-context
Hi Hans,

I just noticed that the dotless i « \i » is not anymore recognized in ConTeXt. 
Of course one can nowadays find other ways to have it typeset, but in old 
documents which are included as inputs one has to correct this manually (for 
instance in French « connaître » was typed as « conn\^{\i}tre »).

Here is an example.

\starttext
Bío Bío (works fine…)

B\'{\i}o B\'{\i}o % this gives an error

\stoptext

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] Bug in maths environment: thematrix

2023-03-12 Thread Otared Kavian via ntg-context


> On 12 Mar 2023, at 18:04, Hans Hagen via ntg-context  
> wrote:
>> […]
> i have a fix but there will be no uploads till texlive has been frozen / 
> packages
> 
> Hans

Thanks Hans ! There is no problem for waiting…

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
___


[NTG-context] Bug in maths environment: thematrix

2023-03-09 Thread Otared Kavian via ntg-context

Hi Hans,

I noticed that in some situations the command \thematrix does not show all its 
arguments correctly: some parts are omitted in the typeset formula. In some 
occasions adding some groupings solves the issue, but not always. I noticed 
this bug two weeks ago, but could not produce a minimal example until now…

Please see below, in particular the output for the matrices M_1, M_2 and M_3…

Best regards: Otared

% begin bug-thematrix.tex
\starttext
\startformula
M_{1}(t)
:= \thematrix{{\rm e}^s ; {\rm e}^t}, \qquad
B_{1}(t) := \thematrix{1 , {\rm e}^t},
\stopformula

\startformula
M_{2}(t)
:= \thematrix{{{\rm e}^s} , {{\rm e}^t}}, \qquad
B_{2}(t) := \thematrix{0 ; {{\rm e}^t}},
\stopformula


\startformula
M_{3}(t)
= \thematrix{{\rm e}^s, {\rm e}^t ; 0 , {\rm e}^t}.
\stopformula


\startformula
M_{4}(t)
= \thematrix{1, {{\rm e}^t} + 1 ; 0 , {{\rm e}^t}}.
\stopformula

\stoptext
% end bug-thematrix.tex
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Can ConTeXt display a simple itemized list as a comma-separated list?

2023-02-27 Thread Otared Kavian via ntg-context
Hi,

Indeed you are right. However, Hans said the feature would be added in the next 
update: so you have to wait a little bit :-)

Best regards: Otared


> On 27 Feb 2023, at 12:33, Jan-Erik Hägglöf via ntg-context 
>  wrote:
> 
> I tested the code and the separator didn’t show up
> 
> \mainlanguage[sv]
> 
> \setupbodyfont[12pt]
> 
> \defineitemgroup
>   [fooditems]
> 
> \setupitemgroup
>   [fooditems]
>   [each]
>   [none,text]
>   [textseparator=,]
> 
> \starttext
> 
> \startfooditems
> \item fish
> \item eggs
> \item milk
> \stopfooditems
> 
> \stoptext
> 
> 
> 
> 
>> 26 feb. 2023 kl. 11:55 skrev Hans Hagen via ntg-context > <mailto:ntg-context@ntg.nl>>:
>> 
>> On 2/25/2023 5:01 PM, Joel via ntg-context wrote:
>>> I have a list like this:
>>> \startitemize[1]
>>> \item fish
>>> \item eggs
>>> \item milk
>>> \stopitemize
>>> Is there any command in ConTeXt to make this display the items as a 
>>> comma-separated list, like this:
>>> fish, eggs, milk
>>> Or a semi-colon-separated list?
>>> fish; eggs; milk
>> In the next update you can set a textseparator.
>> 
>> \starttext
>> 
>> \startitemize[none,text][textseparator=;]
>>\item fish
>>\item eggs
>>\item milk
>> \stopitemize
>> 
>> \defineitemgroup
>>  [fooditems]
>> 
>> \setupitemgroup
>>  [fooditems]
>>  [each]
>>  [none,text]
>>  [textseparator=;]
>> 
>> \blank[2*line]
>> 
>> \startfooditems
>>\item fish
>>\item eggs
>>\item milk
>> \stopfooditems
>> 
>> \stoptext
>> 
>> -
>>  Hans Hagen | PRAGMA ADE
>>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>   tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> | 
>> www.pragma-pod.nl <http://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 <mailto:ntg-context@ntg.nl> / 
>> https://www.ntg.nl/mailman/listinfo/ntg-context 
>> <https://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : https://www.pragma-ade.nl <https://www.pragma-ade.nl/> / 
>> http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
>> <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki : https://contextgarden.net <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
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




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

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


Re: [NTG-context] update

2023-02-24 Thread Otared Kavian via ntg-context
Hi Hans,

Thank you very much for the new update.

Everything seem to work like a charm. In particular I played with the 
\underbrace and \overbrace when adding something under the \underbrace, or 
above the \overbrace, like in 

\startformula
\overbrace{1+x^2+a}^{= -1} +
\underbrace{ax^2 + bx + c}_{=2} = 1
\stopformula

and it works great !

Best regards : Otared

> On 23 Feb 2023, at 22:07, Hans Hagen via ntg-context  
> wrote:
> 
> Hi,
> 
> I uploaded a new version. We further improved Antykwa support,
> 
> \switchtobodyfont[antykwa]
> 
> \startTEXpage[offset=1dk]
>\im{
>f' = f'' = f''' = f =
>a + b + \ldots + c +
>\overbar{x} + \overbar{S} + \bar{x} + \widebar{x}
>}
> 
>\im{
>\fenced[doublebar]{x} =
>\fenced[doublebar][size=1]{x_1} =
>\fenced[doublebar][size=2]{x_2} =
>\fenced[doublebar][size=3]{x_3} =
>\fenced[doublebar][size=4]{x_4} =
>\fenced[doublebar]{\blackrule[width=1cm,height=1cm]}
>}
> 
>\im{
>\fenced[bar]{x} =
>\fenced[bar][size=1]{x_1} =
>\fenced[bar][size=2]{x_2} =
>\fenced[bar][size=3]{x_3} =
>\fenced[bar][size=4]{x_4} =
>\fenced[bar]{\blackrule[width=1cm,height=1cm]}
>}
> 
>\im{
>\fenced[brace]{x} =
>\fenced[brace][size=1]{x_1} =
>\fenced[brace][size=2]{x_2} =
>\fenced[brace][size=3]{x_3} =
>\fenced[brace][size=4]{x_4} =
>\fenced[brace]{\blackrule[width=1cm,height=1cm]}
>}
> 
>\im{
>\root[4]{1+x^2+a} +
>\frac{1}{1+x^2+a} +
>\overparent{1+x^2+a} +
>\overbrace{1+x^2+a} +
>\overparent{x} +
>\overbrace{x} +
>\overbrace{i}
>}
> 
> \stopTEXpage
> 
> 
> This time with fancy radical bars, fraction bars, vertical bars, over and 
> underbars etc.
> 
> 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
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
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] autospacing and colonequals (was Lucida-1.901 (2023-01-21) available)

2023-01-27 Thread Otared Kavian via ntg-context
Hi Hans,

Thank you for the hint: indeed 
\setupmathematics[collapsing=2]
does exactly what I was looking for… 

Now, like many others, I am just waiting for the 3145 pages document about 
maths in ConTeXt :-)

Best regards: Otared


> On 26 Jan 2023, at 23:23, Hans Hagen via ntg-context  
> wrote:
> 
> On 1/26/2023 10:52 PM, Otared Kavian via ntg-context wrote:
> 
>> Indeed the command \colonequals give the precise expected alignment for the 
>> combination glyph « := ». Befors changing the combination « := » to 
>> \columnequals in my documents, I am wondering whether one could add a small 
>> lua code in order to make an automatic replacement at run time. Actually, 
>> since I don’t know of any other instance in which the combination « := » is 
>> used to mean something else, would it not be reasonnable to make « := » 
>> synonym to \colonequals?
> 
> that's what the (has-always-been-there)
> 
> \setupmathematics[collapsing=2]
> 
> is for (needs latest version to work when the space trickery i senabled)
> 
> 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
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
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] autospacing and colonequals (was Lucida-1.901 (2023-01-21) available)

2023-01-26 Thread Otared Kavian via ntg-context
Hi Hans and Mikael,

Thank you both for your attention to my reply and the clarification and hints 
regarding the comman \colonequals and 
\setupmathematics[autospacing=yes]

Indeed the command \colonequals give the precise expected alignment for the 
combination glyph « := ». Befors changing the combination « := » to 
\columnequals in my documents, I am wondering whether one could add a small lua 
code in order to make an automatic replacement at run time. Actually, since I 
don’t know of any other instance in which the combination « := » is used to 
mean something else, would it not be reasonnable to make « := » synonym to 
\colonequals?

I played a little bit with 
\setupmathematics[autospacing=yes]
and it seems to me that without this command one gets automatic spacing in math 
mode, while with the above command the spacing obeys what has been inserted in 
the source. Is this behaviour intended, or is there a mismatch between 
\setupmathematics[autospacing=yes]
and
\setupmathematics[autospacing=no]

Best regards: Otared


> On 26 Jan 2023, at 10:33, Hans Hagen via ntg-context  <mailto:ntg-context@ntg.nl>> wrote:
> 
> On 1/25/2023 6:24 PM, Mikael Sundqvist via ntg-context wrote:
>> On Wed, Jan 25, 2023 at 11:02 AM Otared Kavian via ntg-context
>> mailto:ntg-context@ntg.nl>> wrote:
>>> 
>>> Hi,
>>> 
>>> Thanks Hraban for the information and the link to the article by Hans and 
>>> Mikael about the math fonts in Lucida.
>>> 
>>> I very much appreciated that article: one sees how the handling of almost 
>>> impercebtile details in ConTeXt make us to adhere to and love LuaMetaTeX… 
>>> So a great thank you to Hans and Mikael for all this work!
>>> 
>>> Regarding the details of vertical alignment in math, I wonder whether the 
>>> column « : » in front of the equal sign « = », in the combination « := » 
>>> (used to define for instance a new variable) should be alos centered around 
>>> the math axis, as explained in the article. For instance in the following 
>>> example
>>> 
>>> \setupbodyfont[lucidaot,12pt]
>>> \starttext
>>> \startformula
>>> f(x) := -(u|x) := - \langle u, x \rangle
>>> \stopformula
>>> \stopformula
>>> \startformula
>>> f : A \longrightarrow B
>>> \stopformula
>>> \stoptext
>>> 
>>> it seems to me that the lower dot (or square…) in the semicolumn of the 
>>> first formula (in front of the equal sign) is lower than in the second 
>>> formula.
>>> 
>>> Best regards: Otared
>> Thank you for the kind words, Otared,
>> Regarding the colons (and other symbols with "dots"), I would say it
>> is still not optimal in Lucida (and difficult to make it "consistent",
>> there are too many symbols that are at the moment different). But in
>> your example you can use \colonequals and \colon if you prefer. They
>> are centered around the math axis.
>> Best, Mikael
>> \setupbodyfont[lucidaot,12pt]
>> \starttext
>> \startformula
>> f(x) := -(u|x) \colonequals - \langle u, x \rangle
>> \stopformula
>> \startformula
>> f : A \longrightarrow B \breakhere
>> f \colon A \longrightarrow B
>> \stopformula
>> \startformula
>> \mathaxisbelow := \colonequals : \colon
>> \stopformula
>> \stoptext
> There is a (experimental as we played with it and then got distracted) 
> feature that makes some symbols adapt to spacing in the input.
> 
> \starttext
> 
>\setupmathematics[autospacing=yes]
> 
>\setupmathematics[collapsing=2]
> 
>\im{A:B} and \im{A : B}\par
>\im{A:=B} and \im{A := B}\par
>\im{A\colonequals B} and \im{A {\colonequals} B}\par
> 
> \stoptext
> 
> the second line is not yet ok as collapsing the := (old feature) comes at the 
> wrong time when we do autospacing (something Mikasl and I now need to discuss 
> and test)
> 
> This autospacing is part of some larger effort, for instance we can also auto 
> handle fences and so. All this relates to minimizing the input and make it a 
> bit more natural. Think (1,2) vb (1, 2) where we - due to the many more 
> classes that we have - want spacing to be right.
> 
> All will be revealed in the upcoming releases and the upcoming 3145 page math 
> manual.
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> |

Re: [NTG-context] Lucida-1.901 (2023-01-21) available

2023-01-25 Thread Otared Kavian via ntg-context
Hi,

Thanks Hraban for the information and the link to the article by Hans and 
Mikael about the math fonts in Lucida.

I very much appreciated that article: one sees how the handling of almost 
impercebtile details in ConTeXt make us to adhere to and love LuaMetaTeX… So a 
great thank you to Hans and Mikael for all this work!

Regarding the details of vertical alignment in math, I wonder whether the 
column « : » in front of the equal sign « = », in the combination « := » (used 
to define for instance a new variable) should be alos centered around the math 
axis, as explained in the article. For instance in the following example

\setupbodyfont[lucidaot,12pt]
\starttext
\startformula
f(x) := -(u|x) := - \langle u, x \rangle
\stopformula
\stopformula
\startformula
f : A \longrightarrow B
\stopformula
\stoptext

it seems to me that the lower dot (or square…) in the semicolumn of the first 
formula (in front of the equal sign) is lower than in the second formula.

Best regards: Otared

> On 23 Jan 2023, at 09:39, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> https://tug.org/pipermail/lucida/2023-January/000921.html
> 
> A new version (1.901) of the Lucida OpenType fonts from TUG is
> available.  As with previous updates, there's no additional charge if
> you've already purchased licenses; you can use the same download
> information sent to you at the time of purchase to get the new fonts.
> (If you've lost the download info, you can email us at
> lucida-admin at tug.org.)
> 
> I will append the changes for this release. The same information is also
> online at https://tug.org/store/lucida/NEWS.txt.
> 
> To summarize, the most significant changes have been to the math fonts,
> especially the regular-weight LucidaBrightMathOT. Many of these changes
> were discussed in greater detail in the recent article about Lucida math
> by Hans Hagen and Mikael Sundqvist:
>  https://tug.org/TUGboat/tb43-3/tb135hagen-lucida.pdf
> 
> The four Lucida Sans fonts and the three specialized fonts (Blackletter,
> Calligraphy, Handwriting) are not changed at all from the last release
> (not even version numbers or dates). All other fonts were changed.
> 
> On behalf of TUG, I thank Hans, Mikael, and Michael Sharpe, who among
> them did essentially all of the technical font editing for this
> release. And we must thank Chuck Bigelow and Kris Holmes (they approved
> this release, as always), without whom nothing could be done.
> 
> Bug reports and character/feature requests are welcome (email to this
> list is best), though, as usual, we cannot promise any particular
> timeline for the next release.
> 
> Happy typesetting,
> Karl [Berry]
> ___
> 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
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
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] multimedia inclusion added to the wiki

2023-01-16 Thread Otared Kavian via ntg-context
Hi Pablo,

Thank you for the article on the wiki. It will be very useful !

Best regards: Otared

> On 16 Jan 2023, at 19:00, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> Dear list,
> 
> just in case it might help, I have just added a new wiki article about
> how to add multimedia in PDF documents.
> 
>  https://wiki.contextgarden.net/Multimedia_Inclusion
> 
> I hope it helps,
> 
> Pablo
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___


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

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


Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Otared Kavian via ntg-context
Hi Marco,

If I create a file named « bar.txt » then

\starttext
Nothing to say\dots

\typefile{bar.txt}

\stoptext

gives the correct result. However ConTeXt seems to dislike \typefile{bar} when 
the filename has no suffix.

Best regards : Otared

> On 17 Dec 2022, at 16:06, Marco Patzer via ntg-context  
> wrote:
> 
> Hi!
> 
> In the following example the file “bar” is not included:
> 
> # create file “bar”
> echo Bar > bar
> 
> # t.tex
> \starttext
>  Foo
>  \typefile{bar}
> \stoptext
> 
> Then run
> 
>  context --errors='*' t.tex
> 
> The text “bar” is not included in the PDF, only Foo is. The log file
> shows:
> 
>  verbatims   > file 'bar' does not exist
> 
> However, the file “bar” clearly does exist. Furthermore, context
> exits with no error in the log file and a successful exit value:
> 
>  context --errors='*' t.tex > /dev/null; echo $?
>  0
> 
> Is this working as intended?
> 
> Marco
> ___
> 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
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
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] Mathematical MetaFun Mania

2022-12-15 Thread Otared Kavian via ntg-context
Hi Hans,

Thanks for the new release and the nice anchoring features.

I played a little bit with these, and noticed some issues: in the following 
example, linking the bottom bounds of the integral signs is fine (as long as 
numbers are put there), but for the upper bounds, the \infty and \pi/2 are not 
accepted (nor is any letter or greek symbol), but if one replaces \infty and 
\pi/2 with numbers, then the link between the upper bounds is shown. (In this 
example the links are invading the text, but probably this is due to the fact 
that I just copied the Metapost snippet you sent to Gavin).

Best regards: Otared

% begin anchoring-integrals.tex
\starttext

\startMPpositiongraphic{mypos:boxanchor:top}
begingroup ;
save f, t, p ; 
pair f, t ; 
path p ;
f := positionxy(mpvars("from")) ;
t := positionxy(mpvars("to")) ;
p := f { up } .. t ;
drawarrow p
withpen pencircle scaled mpvard "rulethickness"
withcolor mpvars "linecolor" ; % historically different 
names
positioninregion ;
endgroup ;
\stopMPpositiongraphic

\startMPpositiongraphic{mypos:boxanchor:bottom}
begingroup ;
save f, t, p ; 
pair f, t ; 
path p ;
f := positionxy(mpvars("from")) ;
t := positionxy(mpvars("to")) ;
p := f { down } .. t ;
drawarrow p
withpen pencircle scaled mpvard "myrulethickness"
withcolor mpvars "linecolor" ; % historically different 
names
positioninregion ;
endgroup ;
\stopMPpositiongraphic

\input thuan.tex

\startboxanchoring[+]
\connectboxanchors[top][top]
[distance=1ex,
rulethickness=1pt,
rulecolor=darkgreen,
mp=mypos:boxanchor:top]{b1}{b3}

\connectboxanchors[bottom][bottom]
[distance=1ex,
myrulethickness=1pt,
rulecolor=darkred,
mp=mypos:boxanchor:bottom]{b2}{b4}

\startformula
\int_{\mathboxanchored[nucleus]{b2}0}^{\mathboxanchored[nucleus]{b1}\infty} 
\frac{\dd x}{1 + x^2} = 
\int_{\mathboxanchored[nucleus]{b4}0}^{\mathboxanchored[nucleus]{b3}\pi/2}(1 + 
\tan(\theta)^2)\frac{\dd \theta}{1 + \tan(\theta)^2} = \frac{\pi}{2}
\stopformula
\input thuan.tex
\stopboxanchoring

\stoptext
% end anchoring-integrals

> On 15 Dec 2022, at 18:21, Hans Hagen via ntg-context  
> wrote:
> 
> On 12/15/2022 5:15 PM, Gavin wrote:
>> Hi Hans and List,
>>>> 2) Can I tell \connectboxanchors to use my MetaPost code and pass 
>>>> key=value pairs like I do with \setMPpositiongraphic?
>>> see attached ... the 'cross pages' feature is in the upcoming
>> This indeed passes key=value pairs, but I cannot get it to pass mine. Is 
>> there some intermediate step? Your example has a key=value pair in 
>> \connectboxanchors and which is accessed in the MetaPost code. The pair, and 
>> MetaPost code are:
>>   rulethickness=1pt
>>   mpvard “rulethickness"
>> However, if I change the pair and MPcode to (see attached example for full 
>> code)
>>   myrulethickness=1pt
>>   mpvard “myrulethickness"
>> it doesn’t work. Similarly, you have a pair and MPcode that don’t match.
>>   rulecolor=darkgreen
>>   mpvars "linecolor"
>> This may be a historical fluke, but it suggests that there is some 
>> intermediate translation that I am missing. Any way I can name and pass by 
>> own key=value pairs?
> I updated lmtx so you can test it again.
> 
> Hans
> 
> ps. For the adventurous some bonus experiment in the engine:
> 
> \def\ccc#1#2#3#4#5#6#7#8#9#A#B#C#D#E#F%
>  {\def\ddd{#A-#D-#E/#F-#4-#1}%
>   #A-#D-#E/#F-#4-#1+\ddd}
> 
> so, upto 15 arguments:
> 
> [[\ccc123456789abcdef]]
> 
> (not that we need it in the context core, so more a gimmick for users and it 
> fits the much is already hex approach)
> 
> 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 

Re: [NTG-context] \hpos in math - Half solved

2022-12-08 Thread Otared Kavian via ntg-context
Hi Hans, Mikael,

These features are amazing! Many many thanks!
Thanks also to Gavin for having stated so precisely these kinds of needs, so 
that Hans and Mikael could come up with this solution.
Gavin, good luck with your project, and plaese share what you get at the end.

Best regards : Otared

> On 8 Dec 2022, at 07:14, Mikael Sundqvist via ntg-context 
>  wrote:
> 
> Hi,
> 
> On Thu, Dec 8, 2022 at 1:07 AM Gavin via ntg-context  
> wrote:
>> 
>> Hi Hans and Mikael,
>> 
>> This is amazing! Mikael's example works for me. I will start using these 
>> tools in my project, and I’ll tell you how it goes.
> 
> Very good that it works and that it gets tested!
> 
>> It might be a couple weeks, because the physics is also quite challenging.
> 
> Haha, I can imagine that the spinors are even more challenging. Good luck!
> 
> /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
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
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] Bug in math alignment

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

Thanks for your reply.
Indeed with your hint the issue disappears. 
I’ll change my definition…

Best regards: Otared

> On 2 Nov 2022, at 21:44, Mikael Sundqvist via ntg-context 
>  wrote:
> […]
> I think in this case it is better to use a mathsimplealign instead of a 
> matrix.
> 
> \definemathsimplealign[pdeproblem][
> left={\startmathfenced[cases]},
> right=\stopmathfenced,
> align={1:right,2:left,3:left},
> strut=yes,
> ]
> 
> \definemathsimplealign[collected][
> left={\startmathfenced[sesac]},
> right=\stopmathfenced,
> align={1:right,2:left,3:left},
> strut=yes,
> ]
> 
> \starttext
> 
> \placeformula
> \startformula
> \startpdeproblem
> \NC - \Delta u \NC = 0 \NC \qquad\text{in } \Omega \NR
> \NC \frac{\partial u}{\partial {\bi n}} \NC = V u + \phi \NC
> \qquad\text{on } \partial\Omega \NR
> \stoppdeproblem
> \stopformula
> 
> \placeformula
> \startformula
> \startcollected
> \NC - \Delta u \NC = 0 \NC \qquad\text{in } \Omega \NR
> \NC \frac{\partial u}{\partial {\bi n}} \NC = V u + \phi \NC
> \qquad\text{on } \partial\Omega \NR
> \stopcollected
> \stopformula
> 
> \stoptext
> 
> Best, 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
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
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] Bug in math alignment

2022-11-02 Thread Otared Kavian via ntg-context
Dear Jeong,

Thanks for testing my example, and pointing to the solution using \dm (which I 
didn’t know…).
I think the correct behaviour of math alignments should avoid using additional 
commands such as \dm.

We’ll see what Hans and Mikael say.

Best regards: OK

> On 2 Nov 2022, at 12:53, Jeong Dal via ntg-context  wrote:
> 
> Dear Otared,
> 
>> 
>> I think there is an issue with the size of math fonts in \frac when used in 
>> math alignments, as it is is shown in the following example.
>> 
> 
> I confirm what you said.
> 
> However, if I use \dm{} instead of \displaystyle as following, then the 
> output is correct.
> 
> \placeformula
> \startformula
> \startalignedcases
> \NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR
> \NC  \dm{\frac{\partial u}{\partial {\bi n}}}
>  \NC = V u + \phi \NC \qquad\text{on }\, \partial\Omega. \NR
> \stopalignedcases
> \stopformula
> or this (with\type{\displaystyle} added)
> \placeformula 
> \startformula
> \startalignedcases
> \NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR
> \NC  \dm{\frac{\partial u}{\partial {\bi n}}}
>  \NC = V u + \phi \NC \qquad\text{on }\, \partial\Omega. \NR
> \stopalignedcases
> \stopformula
> 
> In this example, it is OK to use \dm inside of \startformula … \stopformula.
> I am not sure that it is what Hans and Mikael want.
> 
> Thanks,
> 
> 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 / 
> 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
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



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

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


[NTG-context] Bug in math alignment

2022-11-02 Thread Otared Kavian via ntg-context
Hi Hans and Mikael,

I think there is an issue with the size of math fonts in \frac when used in 
math alignments, as it is is shown in the following example.


%% begin bug-mathalignment.tex
\definemathmatrix[alignedcases]
[align={1:right,2:left,3:left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]

\starttext
Consider this
\placeformula
\startformula
\startalignedcases
\NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR
\NC  \frac{\partial u}{\partial {\bi n}} \NC = V u + \phi \NC \qquad\text{on 
}\, \partial\Omega. \NR
\stopalignedcases
\stopformula
or this (with\type{\displaystyle} added)
\placeformula 
\startformula
\startalignedcases
\NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR
\NC  \displaystyle\frac{\partial u}{\partial {\bi n}} \NC = V u + \phi \NC 
\qquad\text{on }\, \partial\Omega. \NR
\stopalignedcases
\stopformula
Actually, one should have this
\startformula
\frac{\partial u}{\partial {\bi n}}  = V u + \phi  \qquad\text{on }\, 
\partial\Omega.
\stopformula
If one adds \type{\displaystyle} both to the numerator and denominator of 
\type{\frac}, the result is correct:
\placeformula 
\startformula
\startalignedcases
\NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR
\NC  \frac{\displaystyle\partial u}{\displaystyle\partial {\bi n}} \NC = V u + 
\phi \NC \qquad\text{on }\, \partial\Omega. \NR
\stopalignedcases
\stopformula

\stoptext
%% end bug-mathalignment.tex

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

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


Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-24 Thread Otared Kavian via ntg-context
Hi Thomas,

Sorry for answering too late… Meanwhile you found the culprit :-)

Anyway, I cleaned the cache, did a rebuild and typeset your example files. They 
do typeset, but as you pointed out the math font is from LMR, not Stix as you 
specified.

Best regards: Otared

> On 23 Oct 2022, at 21:52, Thomas A. Schmitz via ntg-context 
>  wrote:
> 
> On 10/23/22 21:34, Otared Kavian via ntg-context wrote:
>> Hi Thomas,
>> Both your examples typeset fine with my installation of LMTX (version 
>> 2022.10.22 11:23) on MacOS 11.7.
>> (Indeed you previous file test file reporting the background issue is 
>> typeset fine also).
>> Best regards : Otared
> 
> Thanks, Otared - that's bizarre. I just tried both on linux64 and macos 
> (12.6, arm): run install.sh, reload font cache and run context without the 
> luatex switch on the minimal example with the XITS Math font, and on both 
> systems, I get the error that I have sent this afternoon. Can you try after 
> rebuilding the font cache?
> 
> Thanks
> 
> Thomas
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
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] Backgrounds has changed in latest lmtx

2022-10-23 Thread Otared Kavian via ntg-context
Hi Thomas,

Both your examples typeset fine with my installation of LMTX (version 
2022.10.22 11:23) on MacOS 11.7.
(Indeed you previous file test file reporting the background issue is typeset 
fine also).

Best regards : Otared

> On 23 Oct 2022, at 16:30, Thomas A. Schmitz via ntg-context 
>  wrote:
> 
> On 10/23/22 16:21, Mikael Sundqvist via ntg-context wrote:
>> It works here. Are you sure that you updated to the latest? (There was
>> a few updates lately)
>> /Mikael
> 
> I have just update to
> 
> current version: 2022.10.22 11:23
> 
> so I think that's the latest. Minimal example:
> 
> \definefontfamily [test] [serif] [Times]
> \definefontfamily [test] [sans]  [Helvetica]
> \definefontfamily [test] [mono]  [DejaVu Sans Mono] [rscale=0.9,features=none]
> \definefontfamily [test] [math]  [XITS Math]
> 
> \starttext
> 
> Test
> 
> \stoptext
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
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] Backgrounds has changed in latest lmtx

2022-10-21 Thread Otared Kavian via ntg-context
Hi Thomas,

Your example does indeed show the issue I had reported on with Simpleslides: 
the backgrounds of the slides are not as expected.
So it seems that beginning with version 2022-10-15 something has changed with 
Metapost or the background mechanism.

Best regards: Otared

> On 21 Oct 2022, at 11:32, Thomas A. Schmitz via ntg-context 
>  wrote:
> 
> Hi everybody,
> 
> With the latest lmtx, my page backgrounds don’t work any more. I think Otared 
> mentioned that the simpleslides module is having problems. I’m trying to 
> figure out what is happening, but I don’t see any warnings or errors, just 
> unexpected results (which is not a good thing). I’m starting with the 
> fundamentals. Here is a fairly minimal example: compile with context --luatex 
> to see the expected result and with lmtx to see what is wrong.
> 
> All best
> 
> Thomas
> 
> \setuppapersize[A6,landscape][A6,landscape]
> 
> \setuplayout[backspace=1cm,
> topspace=0.4cm,
> marking=off,
> width=13cm,
> height=9.7cm,
> header=0.6cm,
> footer=0cm,
> ]
> 
> \startreusableMPgraphic{card}
> StartPage ;
> save p ; path p[] ;
> p[0] = ulcorner Page -- urcorner Page ;
> p[0] := p[0] shifted (0, -0.97cm) ;
> for i = 1 upto 18 :
>   p[i] = p[i-1] shifted (0, -14.42pt) ;
>   draw p[i] withcolor (0.5,0.5,0.5) ;
> endfor ;
> pickup pencircle scaled 2pt ;
> draw p[0] withcolor red ;
> StopPage ;
> \stopreusableMPgraphic
> 
> \defineoverlay[Card][\reuseMPgraphic{card}]
> 
> \setupbackgrounds[page]
>[state=repeat,
> background={Card}]
> 
> \starttext
> 
> Test
> 
> \stoptext
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



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

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


Re: [NTG-context] new upload

2022-10-17 Thread Otared Kavian via ntg-context
Hi Mikael,

I use Lucida in my documents and did not notice any problem with the integrals 
and other large operators. 
Do you mean in the future I have to update to a new version of Lucida (and pay 
again…) or will future versions of LuaMetaTeX handle correctly large operators 
typeset in Lucida ?

The issue I observed with the new upload of 2022.10.15 is that the 
presentations I typeset with the simpleslides module are broken after three 
pages, but could not set up a minimal working example to send to the list. 
Those presentations are typeset correctly with previous versions.
Has Metapost changed some crucial settings ?

Best regards: Otared

> On 16 Oct 2022, at 19:03, Mikael Sundqvist via ntg-context 
>  wrote:
> 
> Hi,
> 
> On Sun, Oct 16, 2022 at 6:07 PM Aditya Mahajan via ntg-context
>  wrote:
>> 
>> On Fri, 14 Oct 2022, Hans Hagen via ntg-context wrote:
>> 
>>> Hi,
>>> 
>>> I uploaded a new version. Apart from a few fixes / extensions already
>>> mentioned here (or known to those who wanted it) the main changes are in
>>> the math goodie files (work in progress, we will clean them up later) as
>>> part of improving the rendering of math.
>> 
>> Something is wrong with the placement of limits around an integral with 
>> NeoEuler:
>> 
>> \usetypescriptfile[euler]
>> 
>> \definetypeface[mainfont][rm][specserif][CharisSil][default]
>> \definetypeface[mainfont][mm][math] [eulernova][default]
>> \definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8, 
>> features=none]
>> \setupbodyfont[mainfont,10pt]
>> 
>> \starttext
>> \startTEXpage[offset=1mm]
>>  $\displaystyle \int_{0}^{1} f(x) dx$
>> \stopTEXpage
>> \stoptext
>> 
>> gives the attached result.
> 
> This is because the integral "sits wrong" in its boundingbox. Almost
> all fonts have the glyph centered around the math axis, but there are
> a few that doesn't. In euler-math.lfg, add the tweak
> 
> {
> tweak = "fixoldschool",
> },
> 
> In fact, we have not updated the euler goodie file for a while it
> seems. I think there are more things that can be improved. Hopefully
> before next release.
> 
> It can also be mentioned that some fonts (Daniel Flipo was quick to
> fix concrete, erewhon and kpfonts) was fixed recently regarding this,
> and it is reported on and fixed in development of Lucida.
> 
> /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
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



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

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


Re: [NTG-context] cannot update ConTeXt to 2022.09.16

2022-09-19 Thread Otared Kavian via ntg-context
Hi Pablo,

I had the same issue and, as this was discussed a few years or months ago, 
after removing the three files with extension « .tma » the update goes through 
normally.
On my machine, running MacOS X, I had to remove the following files:
texmf.tma
texmf-osx-64.tma
texmf-context.tma

Best regards: Otared

> On 19 Sep 2022, at 17:16, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> Dear list,
> 
> after updating to latest from 2022.09.11 20:44 (altough LMTX was tagged
> as 20220918), I’m afraid I cannot update ConTeXt to 2022.09.16 (current
> latest according to https://www.pragma-ade.com/download-1.htm).
> 
> This happens to me with both Windows and Linux (both 64bit).
> 
> I guess this might be related to the issue with certificates and domains.
> 
> Could anyone confirm the issue?
> 
> Many thanks for your help,
> 
> Pablo
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> _______

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
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] Sudoku module

2022-07-18 Thread Otared Kavian via ntg-context
Hi Wolfgang,

Thank you for your reply and the explanations about the function « 
interfaces.implement ».

Regarding the examples given by Jairo, you are correct: those examples can be 
typeset with LMTX. I did a mistake when in TeXShop I saved the file « 
t-sudoku.mkvi » under the name « t-sudoku.tex »: indeed this creates an error 
in LMTX as well in earlier versions of ConTeXt… (maybe a colateral consequence 
of the heat wave in France :-)

I apologize to you and Jairo for having caused any trouble.

Best regards: Otared

> On 18 Jul 2022, at 22:10, Wolfgang Schuster via ntg-context 
>  wrote:
> 
> Otared Kavian via ntg-context schrieb am 18.07.2022 um 18:53:
>> Hi Wolfgang,
>> 
>> Thank you for your attention and the explanation regarding the « hash option 
>> » and why the sudoku module written by Jairo does not work. However I was 
>> reporting the issue when I tried to typeset the example file with LMTX 
>> (version 2022.07.06 21:42).
> 
> I have no problems with the examples at the end of the module and LMTX, only 
> when I use LuaTeX a error appears.
> 
>> As a matter of fact I am far from understanding what the « arguments = { « 
>> hash » } » is supposed to do in interfaces.implement in the code you sent…
> 
> The 'interfaces.implement' functions creates the command \test and 
> 'arguments={"hash"}' creates the argument which accepts key-val lists 
> ([text=Hello]).
> 
> Wolfgang
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] Sudoku module

2022-07-18 Thread Otared Kavian via ntg-context
Hi Wolfgang,

Thank you for your attention and the explanation regarding the « hash option » 
and why the sudoku module written by Jairo does not work. However I was 
reporting the issue when I tried to typeset the example file with LMTX (version 
2022.07.06 21:42). 
As a matter of fact I am far from understanding what the « arguments = { « hash 
» } » is supposed to do in interfaces.implement in the code you sent…

Best regards: Otared

> On 18 Jul 2022, at 17:39, Wolfgang Schuster via ntg-context 
>  wrote:
> 
> Otared Kavian via ntg-context schrieb am 18.07.2022 um 17:00:
>> Hi Jairo,
>> 
>> You sent a message last year about your Sudoku module, and today, out of 
>> curiosity, I wanted to test it. Unfortunately it stops with an error message 
>> at line 76 of the file t-sudoku.mkiv, where you have:
>> 
>> \def\sudokufunction_direct[#name][#parameters]#content
>> 
>> I would appreciate if you could tell me whether you have a working version 
>> of you module, or what one has to change in order to typeset your examples.
> 
> The error is unrelated to the sudoku module and when you use LMTX the error 
> disappears.
> 
> The real problem can be seen in the following minimal example and is related 
> to the "hash" option for the argument key.
> 
>  begin example
> \starttext
> 
> \startluacode
> interfaces.implement {
> name  = "test",
> public= true,
> arguments = { "hash" },
> actions   = function(t)
> print(table.serialize(t))
> end,
> }
> \stopluacode
> 
> \test[text=Hello]
> 
> \stoptext
>  end example
> 
> Wolfgang
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


[NTG-context] Sudoku module

2022-07-18 Thread Otared Kavian via ntg-context
Hi Jairo,

You sent a message last year about your Sudoku module, and today, out of 
curiosity, I wanted to test it. Unfortunately it stops with an error message at 
line 76 of the file t-sudoku.mkiv, where you have:

\def\sudokufunction_direct[#name][#parameters]#content

I would appreciate if you could tell me whether you have a working version of 
you module, or what one has to change in order to typeset your examples.

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] Interaction broken for formulas in LMTX

2022-07-14 Thread Otared Kavian via ntg-context
Hi Jairo,

You are right, the interactions between references ad numbered equations are 
broken with the latest update.

Best regards: Otared

> On 14 Jul 2022, at 17:58, Jairo A. del Rio via ntg-context 
>  wrote:
> 
> Hi, list!
> 
> Sorry, I don't have a MWE, but it looks like interactive references for 
> formulas (via \in) are not working after the update. I mean, labels are fine, 
> but they do nothing when clicked. References for tables and figures are fine, 
> though.
> 
> Best regards,
> 
> Jairo
> 
> ___
> 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] Bug in placeformula

2022-07-13 Thread Otared Kavian via ntg-context
Hi Mikael,

Thank you for your reply. For the time being I am not in a hurry to solve the 
issue with placeformula (when the numbers are on the right, there is no 
problem…).

Best regards: Otared

> On 12 Jul 2022, at 23:08, Mikael Sundqvist via ntg-context 
>  wrote:
> […]
> 
> Thanks for reporting! We must have missed this one while testing. It
> should be fixed.
> 
> If you for the moment can live without splitting, then this seems to
> give you the formula number where expected:
> 
> \placeformula
> \startformula[location=left,split=no,numberlocation=overlay]
> a^2 + b^2 = c^2.
> \stopformula
> 
> (or put the keys in \setupformula)
> 
> I hope it helps.
> 
> /Mikael


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

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


[NTG-context] Bug in placeformula

2022-07-12 Thread Otared Kavian via ntg-context
Dear Hans, dear Mikael,

In my experiments with the new math engine, I noticed that there is an issue 
with \placeformula when one sets the location of the numbers on the left: the 
number is one line above the formula. Here is a minimal example:

% begin bug-placeformula-left.tex
\setupformulas[location=left]

\starttext

\placeformula
\startformula
a^2 + b^2 = c^2.
\stopformula

\stoptext
% end bug-placeformula-left.tex

Moreover, in some environments (such as enumerations) the bug destroys 
completely the flow of text but I could not set up a minimal example to send 
you.

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
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] \sciteinlinebuffer inherits margin properties

2022-06-04 Thread Otared Kavian via ntg-context
Hi Pablo,

The example you gave in your first message about the Scite module, that is:

  \usemodule[scite]
  \starttext
  \startXML ñ\stopXML
  \stoptext

gives an error on my machine (MacOS 11.6.5 and Context version 2022.05.11 
11:36), with Context saying: « The file ended when scanning an argument.»

I don’t know where the error comes from…

Best regards: OK

> On 4 Jun 2022, at 19:54, Pablo Rodriguez via ntg-context  
> wrote:
> 
> On 6/4/22 16:13, Otared Kavian via ntg-context wrote:
>> Hi Pablo,
>> 
>> Typesetting your two examples, I can reproduce on MacOS and Context
>> version 2022.05.11 11:36 what you are reporting.
> Many thanks for your help, Otared.
> 
> Would you be so kind to confirm the first issue I reported earlier
> (https://mailman.ntg.nl/pipermail/ntg-context/2022/105918.html)?
> 
> Many thanks for your help again,
> 
> 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
> ___

___
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] \sciteinlinebuffer inherits margin properties

2022-06-04 Thread Otared Kavian via ntg-context
Hi Pablo,

Typesetting your two examples, I can reproduce on MacOS and Context version 
2022.05.11 11:36 what you are reporting.

Best regards: Otared

> On 4 Jun 2022, at 14:11, Pablo Rodriguez via ntg-context  
> wrote:
> 
> Dear list,
> 
> I have my third sample with scite:
> 
>  \usemodule[scite]
>  \setuptyping[margin=yes]
>  \starttext
>  \startbuffer[b]b\stopbuffer
>  \startTEXpage[offset=1em]
>  a \sciteinlinebuffer[none][b] a\par
>  a \typeinlinebuffer[b][option] a
>  \stopTEXpage
>  \stoptext
> 
> I’m on Linux64 and using current latest from 2022.05.11 11:36.
> 
> For some strange reason, \sciteinlinebuffer inherits the margin option
> from \setuptyping and it indents the whole paragraph.
> 
> Could anyone confirm the issue?
> 
> Many thanks for your help,
> 
> Pablo
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 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] fatal error in LMTX

2022-04-12 Thread Otared Kavian via ntg-context
Hi Pablo,

Your example works fine on my machine (MacOS 11.6.4) with LMTX version 
2022.04.11. However in your example the \stopfrontmatter is missing.

Best regards: Otared

> On 12 Apr 2022, at 19:14, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> Hi Hans,
> 
> I have a minimal sample that triggers a fatal error in ConTeXt LMTX
> (current latest from 2022.04.11 19:27):
> 
>  \starttext
>  \startfrontmatter
>  \input zapf
>  \stoptext
> 
> This gives the following error message:
> 
>  mkiv lua stats  > runtime: 0.386 seconds, 1 processed pages,
>1 shipped pages, 2.592 pages/second
>  mtx-context | fatal error: return code: 1
> 
> The one above is a stupid sample. But it took me about two hours to
> discover what was triggering the fatal error message.
> 
> I wonder whether it would be possible that ConTeXt or LuaMeTaTeX could
> be more verbose about an opened environment that isn’t closed.
> 
> Many thanks for your help and your excellent work,
> 
> 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
> ___

___
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-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 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] Metafun, difficulty with graphical element in the margin

2022-03-19 Thread Otared Kavian via ntg-context
Hi Willi,

How about invoking the command \setups{Thumb-pictures} between a \start \stop 
pair as in the following:

\showframe

\starttext

\startfrontmatter
\startchapter[title=Test A]
\samplefile{knuth}
\stopchapter

\stopfrontmatter

%\page[yes]

\start
\setups{Thumb-pictures}

\startbodymatter
 \startchapter[title=Test B]
\samplefile{ward}
 \stopchapter

\startchapter[title=Test C]
\samplefile{ward}
\stopchapter

\startchapter[title=Test D]
\samplefile{ward}
\stopchapter


\stopbodymatter
\stop

\startbackmatter
\dorecurse{5}{\startchapter[title=Test #1]
\samplefile{thuan}
\stopchapter}

\stopbackmatter

\stoptext


> On 19 Mar 2022, at 21:42, Willi Egger via ntg-context  
> wrote:
> 
> Hello Otared,
> 
> thanks so much for your testing and comments. — Tthe problem is, that this 
> thumb-picture should only be placed in the \startboydmatter..\stopbodymatter 
> sections. In the case of this book however there are the title pages and 
> quite some text including the TOC in the \startfrontmatter..\stopfrontmatter. 
> SO I end up with being forced to invoke the setups at the beginning of the 
> bodymatter.
> 
> Thanks!
> Kind regards
> 
> Willi
> 
>> On 19 Mar 2022, at 16:52, Otared Kavian via ntg-context  
>> wrote:
>> 
>> Hi Willi,
>> 
>> Your test file works fine if I place 
>>  \setups{Thumb-pictures}
>> before \starttext (using version 2022.03.12 17:56 LMTX).
>> However in the file you sent the choice of the command
>>  \setups{Thumb-pictures}
>> is between chapter A and B, which seems starnge to me...
>> 
>> Best regards: Otared K.
>> 
>>> On 18 Mar 2022, at 20:29, Willi Egger via ntg-context  
>>> wrote:
>>> 
>>> Good evening!
>>> 
>>> I have a dictionary where I would like to include thumb-pictures in the 
>>> margin. — When I use the attached code with a single 
>>> \startchapter...\stopchapter, it works. However if I add another 
>>> \startchapter…\stopchapter before loading the setups for the thumb-picture 
>>> metafun throws an error about not having complete information for 
>>> performing a transformation.
>>> 
>>> I am currently using the before last version of LMTX-ConTeXT (January 21st 
>>> 2022).
>>> 
>>> Could someone try to compile?
>>> 
>>> Thanks, kind regards
>>> 
>>> Willi___
>>> 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
> ___

___
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] Metafun, difficulty with graphical element in the margin

2022-03-19 Thread Otared Kavian via ntg-context
Hi Willi,

Your test file works fine if I place 
\setups{Thumb-pictures}
before \starttext (using version 2022.03.12 17:56 LMTX).
However in the file you sent the choice of the command
\setups{Thumb-pictures}
is between chapter A and B, which seems starnge to me...

Best regards: Otared K.

> On 18 Mar 2022, at 20:29, Willi Egger via ntg-context  
> wrote:
> 
> Good evening!
> 
> I have a dictionary where I would like to include thumb-pictures in the 
> margin. — When I use the attached code with a single 
> \startchapter...\stopchapter, it works. However if I add another 
> \startchapter…\stopchapter before loading the setups for the thumb-picture 
> metafun throws an error about not having complete information for performing 
> a transformation.
> 
> I am currently using the before last version of LMTX-ConTeXT (January 21st 
> 2022).
> 
> Could someone try to compile?
> 
> Thanks, kind regards
> 
> Willi___
> 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] Why isn't bold + italics working together?

2022-01-29 Thread Otared Kavian via ntg-context


> On 29 Jan 2022, at 18:03, Denis Maier via ntg-context  
> wrote:
> 
> IDK, but then it's probably a font issue?
> […]
> This thread is outdated, you can now stack styles.
> 
> \starttext
> 
> text {\italicface text {\boldface text} text} text
> 
> \stoptext
> 
> Wolfgang

However there seems to be an inconsistency, as in the example below: in this 
particular example it is better to use explicitely \bi to have bold italic.

\starttext

text {\italicface text {\boldface text} text} text

text {\it text {\bf text} text} text: here the third instance of text is in 
boldface, but not in italic boldface.

text {\it text {\bi text} text} text

\stoptext

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 / 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] OT world history: other measuring systems?

2022-01-26 Thread Otared Kavian via ntg-context

> On 26 Jan 2022, at 00:17, Hans Hagen via ntg-context  
> wrote:
> […]
> times (clocks) were definitely different per city

Regarding the issue of the absolute necessity of defining a standard time the 
book by Peter Galison « Einstein’s Clocks, Poincaré’s Maps » gives some 
interesting insight. In particular, since after the mid 19th century trains 
were developed while the time was not standardized, many accidents happened 
with hundreds of people killed. This led Henri Poincaré, Lorentz and Einstein 
(among other mathematcians and physicists) to th enotion of relativity…

Regarding the measure of the distance, area, volumes and weight indeed each 
region of the world had its own units because the trade and exchange of 
products were essentially local. With the progressive extension of the 
exchanges between regions and countries the need for a standardization appeared 
more and more.
For example the problem of measuring grains is a quite difficult one: if one 
measures the weight, depending on how much humidity the grains contain, one has 
different amount of the real stuff. If one measures the volume of the grains, 
then according how compressed they are, the amount of the grains may be 
different… (at some point there was a law which stated that when a unit vessel 
of grains was to be sold, the seller should struck the bottom of the vessel on 
a table three times and then refill again sthe vessel for it to be full).

The measure of the distances on roads in the Persian empire had one unit and 
one subunit: « parasang » and « mil ». Parasang, which means « big stone » in 
Persian, was the average distance which a fantassin could walk in a certain 
amount of time, and was marked by a large piece of stone on the road (this is 
also reported by Herodotus). Each parasang was divided into three « mil », 
which means « iron bar » in Persian, and was marked by planting an iron bar on 
the road side. A parasang is between 5400 and 6000 meters, and thus a « mil » 
is something about 1800 and 2000 meters. These units were used in many areas 
outside the Persian empire, and are still used, in particular the parasang, in 
Iran and Afghanistan (in Iran a parasang is 6 kilometers now). (Personnaly I 
think the Roman mile has its origin in the Persian « mil »: I think the 
etymology of the word mile based on the word « mille », a thousand, cannot be 
correct since it does not correspond to one thousand of any other unit of 
length used in the Roman empire).

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


[NTG-context] definemathcommand and Lucida OT

2022-01-18 Thread Otared Kavian via ntg-context
Hi Hans,

Some time ago I reported about an issue with \definemathcommand, and the issue 
is still present, as one can see with following example.

Best regards: Otared
% begin liminf-Argmin.tex

\setupbodyfont[lucidaot]
%\setupbodyfont[termes]

\definemathcommand [Argmin]  [limop] {\mfunctionlabeltext{ArgMin}}
\definemathcommand [liminfbar]  [limop] {\underline{\mfunctionlabeltext{lim}}}
\definemathcommand [limsupbar]  [limop] {\overline{\mfunctionlabeltext{lim}}}

\starttext
The built-in commands \type{\liminf}, yielding $\liminf$, and \type{\limsup}, 
yielding $\limsup$ do not work properly with LucidaOT:
\startformula
x_{n} := (-1)^n, \quad\mbox{then} \quad \liminf_{n \geq 0}x_{n} = -1, \quad 
\limsup_{n\geq 0} x_{n}= +1.
\stopformula

The user defined commands \type{\liminfbar} and \type{\limsupbar} behave 
correctly:
\startformula
x_{n} := (-1)^n, \quad\mbox{then} \quad \liminfbar_{n \geq 0}x_{n} = -1, \quad 
\limsupbar_{n\geq 0}x_{n} = +1,
\stopformula
but not the command \type{\Argmin}
\startformula
\Argmin_{x\in {\Bbb R}} (x^2 - x + 1) = {1 \over 2}.
\stopformula

\stoptext

% end liminf-Argmin.tex



liminf-Argmin.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] Bug in alignment with LMTX version 2022.01.15 17:32

2022-01-18 Thread Otared Kavian via ntg-context
Hi Hans and Aditya,

Thanks for the clarification. Since for some documents I still use mkiv, I 
ended up using a definition which depends on whether one is using mkiv or lmtx, 
as in the example below. I wonder if there is a better solution.

Best regards: Otared
% begin bug-aligned-solved.tex
\doifmode{mkiv}{\definemathmatrix[alignedcases]
[align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]}

\doifmode{mkiv}{\definemathmatrix[matrix]
[align={right,left,left}]}

\doifmode{lmtx}{\definemathmatrix[alignedcases]
[align={1:right,2:left,3:left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]}

\doifmode{lmtx}{\definemathmatrix[matrix]
[align={1:right,2:left,3:left}]}

\starttext

\doifelsemode{lmtx}{We are using LMTX}{We are using mkiv}

\placeformula[eq:1]
\startformula
\startalignedcases
\NC  \partial_{t} u  \NC = \Delta u + \epsilon^{-2}f(u) \NC\qquad\text{in }\, 
\Omega\times (0,+\infty) \NR
\NC {\partial\phi(u) \over \partial{\bi n}} \NC = 0 \NC\qquad\text{on }\,  
\partial \Omega\times (0,+\infty)\NR
\NC u(x,0) \NC = u_{0}(x)\NC\qquad\text{in }\, \Omega.\NR
\stopalignedcases
\stopformula

\startformula
 \startmatrix
\NC ABC\NC ABC\NC ABC\NR
\NC AA \NC AA \NC AA \NR
  \stopmatrix
\stopformula
% end bug-aligned-solved.tex

> On 17 Jan 2022, at 23:53, Hans Hagen via ntg-context  
> wrote:
> 
> On 1/17/2022 11:35 PM, Aditya Mahajan via ntg-context wrote:
>> On Mon, 17 Jan 2022, Aditya Mahajan via ntg-context wrote:
>>> I confirm that this is a bug, which was not there in the version from mid 
>>> Dec.
>> Not a bug, but new interface. You need:
>> \definemathmatrix[matrix]
>>  [align={1:right,2:left,3:left}]
>> It is also possible to say: align={all:middle}. Combination of the two don't 
>> seem to work.
> basically we increment each element but a number sets the column so one can 
> go to a specific column; empty (whatever non number will start again at zero)
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] Bug in alignment with LMTX version 2022.01.15 17:32

2022-01-17 Thread Otared Kavian via ntg-context
Hi Hans and Mikael,

While investigating the latest version regarding the math environment, I found 
that the alignments are not correct.
Here is an example:

% begin bug-alignment.tex
\definemathmatrix[alignedcases]
[align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]
\starttext

\placeformula[eq:1]
\startformula
\startalignedcases
\NC  \partial_{t} u  \NC = \Delta u + \epsilon^{-2}f(u) \NC\qquad\text{in }\, 
\Omega\times (0,+\infty) \NR
\NC {\partial\phi(u) \over \partial{\bi n}} \NC = 0 \NC\qquad\text{on }\,  
\partial \Omega\times (0,+\infty)\NR
\NC u(x,0) \NC = u_{0}(x)\NC\qquad\text{in }\, \Omega.\NR
\stopalignedcases
\stopformula

\stoptext
% end bug-alignment.tex

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


[NTG-context] Simpleslides and LMTX

2022-01-17 Thread Otared Kavian via ntg-context
Hi Aditya and Thomas,

Following the hint given by Thomas about fixing the behaviour of the visual 
counter in the simpleslides module, I tried all the possible styles and found 
that once the PageNumber is changed into RealPageNumber in the 
s-simpleslides-*.tex
style files. All the styles work fine unless three of them which I describe 
below.
I don’t know how the modules are maintained on the wiki or elsewhere, but if 
you wish I can send you privately the files where I have changed PageNumber to 
RealPageNumber so that the simpleslides module can be used ot of the box with 
LMTX.

Best regards: Otared
PS: Here are the issues with the three styles which don’t work properly:

• BigNumber: for the style to be typeset,  one has to modify the part where 
BigNumberFont is defined

%\beginOLDTEX
%\loadmapfile[qhv-ec.map]
%\definefontsynonym  [BigNumberFont] [ec-qhvb] 
%\endOLDTEX
%
%\beginXETEX
%\loadmapfile[qhv-ec.map]
%\definefontsynonym  [BigNumberFont] [ec-qhvb] 
%\endXETEX
%
%\beginLUATEX
\definefontsynonym  [BigNumberFont] [name:texgyreherosbold]
%\endLUATEX

Then the file « example.tex » can be typeset, but the big numbers shown are 
always 1.

• Embossed: for the style to be typeset, one has to modify the part where 
EmbossedFont is defined

%\beginOLDTEX
%\loadmapfile[qhv-ec.map]
%\definefontsynonym [Embossed] [ec-qhvb] 
%\endOLDTEX
%
%\beginXETEX
%\loadmapfile[qhv-ec.map]
%\definefontsynonym [Embossed] [ec-qhvb] 
%\endXETEX
%
%\beginLUATEX
\definefontsynonym [Embossed] [name:texgyreherosbold]
%\endLUATEX

• SideToc: the file example.tex can be typeset with this style, but all pages 
come out in black… the text cannot be seen.

___
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] SimpleSlides and Visual counters

2022-01-16 Thread Otared Kavian via ntg-context
Hi Thomas,

Thanks for your attention. Indeed I could have asked you, but since Aditya 
answered my previous message I continued asking him…

Anyway, you are correct: replacing PageNumber with RealPageNumber everywhere, 
the visual counter is shown correctly…

For the sake of the mail archives, in case someone else encounters the issue, I 
add the example below.

Many thanks for help !
Best regards: Otared 

% begin interactive-visual-counter.tex
%% to use with the simpleslides module
\setupinteraction[state=start]
\usemodule[simpleslides]
[style=swoosh]

\startuseMPgraphic{simpleslides:MP:counter}
save b, s, t, p, circcenter, theta, pic ;
path p[] ;
pair t[] ;
pair s[] ;
pair circcenter ; 
circcenter = urcorner Page shifted (-1cm,-1cm) ; % the counter is shown 
in the upper right corner
%   circcenter = lrcorner Page shifted (-1cm,1cm) ; % the counter is shown 
in the lower right corner
pair zt, zr, zb, zl ;
picture pic ;
b = 1.5cm ;
if RealPageNumber > 1 : % the page after which the visual counter is 
shown
theta = (RealPageNumber - 1)/(NOfPages - 1) ;
p[4] = fullcircle scaled b rotated 90 ;
p[4] := p[4] shifted circcenter ;
fill p[4] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
t[0] = center p[4] ;
t[1] = point 1 along p[4] ;
t[2] = point -theta along p[4] ;
t[3] = point -theta/2 along p[4] ;
p[5] = t[0] -- t[1] .. t[3] .. t[2] -- cycle ;
fill p[5] withcolor \MPcolor{simpleslides:contrastcolor} ;
for i = 1 upto NOfPages :
s[i] = point i/(NOfPages -1) along p[4] ;
pickup pencircle scaled 1pt ;
draw s[i] -- t[0] 
withcolor 
\MPcolor{simpleslides:backgroundcolor} ;
endfor ;
zt = t[0] shifted (0, b * 0.2) ;
zr = t[0] shifted (b * 0.2, 0) ;
zb = t[0] shifted (0, -b * 0.2) ;
zl = t[0] shifted (-b * 0.2, 0) ;
p[3] = zt .. zr .. zb .. zl .. cycle ;
fill p[3] withcolor  \MPcolor{simpleslides:contrastcolor} ;
draw p[3] withcolor \MPcolor{simpleslides:backgroundcolor} ;
label(textext("\start\switchtobodyfont[10pt]%

\setupinteraction[color=simpleslides:backgroundcolor,style=normal]%
\startcolor[simpleslides:backgroundcolor]
\goto{\pagenumber}[PreviousJump]
\stopcolor\stop"),center p[3]) ;
fi ;
\stopuseMPgraphic

\starttext

\setupTitle
[title={Somewhere university},
author={Someone Else},
date={Somewhere, Someday 2021}]
\placeTitle

\page
\SlideTitle{Knuth} 

\input knuth.tex

\SlideTitle{Ward} 

\input ward.tex

\SlideTitle{Lorem} 

\input lorem.tex

\SlideTitle{Thuan} 

\input thuan.tex

\stoptext
% end interactive-visual-counter.tex



> On 16 Jan 2022, at 16:14, Thomas A. Schmitz via ntg-context 
>  wrote:
> 
> 
> On 16.01.22 15:56, Otared Kavian via ntg-context wrote:
>> Hi Aditya,
>> Some time ago I reported an issue with LMTX regarding your visual counter 
>> (at least the version used in the simpleslides module).
>> Now I think I have found where the issue comes from: it is due to the fact 
>> that somehow the conditional
>>  if PageNumber > 2 :
>>  
>>  [some code]
>>  fi ;
> 
> Hi Otared,
> 
> I'm not Aditya, but I've encountered the same problem within simpleslides. 
> Can you replace PageNumber with RealPageNumber and see whether this solves 
> your problem?
> 
> 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://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] SimpleSlides and Visual counters

2022-01-16 Thread Otared Kavian via ntg-context
Hi Aditya,

Some time ago I reported an issue with LMTX regarding your visual counter (at 
least the version used in the simpleslides module).
Now I think I have found where the issue comes from: it is due to the fact that 
somehow the conditional

if PageNumber > 2 :

[some code]

fi ;

is not treated correctly, and if one removes the conditional while keeping only 
[some code] above, then the visual counter is shown correctly. 

I am sending you the TeX file where you can see that if lines 17 and 46 are 
uncommented then the visual counter does not show up.

Thanks for your help: Otared K.



bug-visual-counter.tex
Description: Binary data




bug-visual-counter.pdf
Description: Adobe PDF document



> On 16 Nov 2021, at 23:11, Otared Kavian  wrote:
> 
> Hi Aditya,
> 
> Thank you for your attention and your kind reply.
> 
> I am sending a setup file with an example of presentation, which shows the 
> issue with LMTX while with mkiv the result is fine.
> Actually as you can see in the setup file, I have slightly modified the 
> visula counter in order for it to be interactive (clicking in the center of 
> the visula counter gives a jump to the previous location…).
> 
> Best regards: Otared
> 
> 
> 
> 
>> On 16 Nov 2021, at 18:34, Aditya Mahajan via ntg-context 
>>  wrote:
>> 
>> On Mon, 15 Nov 2021, Otared Kavian via ntg-context wrote:
>> 
>> Hi Otared,
>> 
>>> It seems that the visual counter in  SimpleSlides module (the version I 
>>> have from ConTeXt Garden is from 2014) does not work fine with the latest 
>>> LMTX.
>>> Is the issue is known ? If so, is there a new version of SimpleSlides in 
>>> which the issue has been fixed ?
>> 
>> I haven't looked at simpleslides in over a decade! The module did use some 
>> low-level macros, which are unlikely to work with LMTX without change. 
>> 
>> It could also be a bug with visualcounter module. I haven't tested in with 
>> LMTX (I still use MkIV for most of my presentations). If you can post a 
>> minimal example, I could take a look.
>> 
>> 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
>> ___
> 

___
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] Why mtxrun fails ?

2022-01-07 Thread Otared Kavian via ntg-context
Hi Jean-Pierre,

In which directory (or « folder », speaking MacOS…) have you installed the 
ConTeXt tree ? 
For instance, on my machine, I have installed the ConTeXt LMTX tree in

/Applications/context-osx-arm64/

and then if for example I need to execute the mtxrun coming with this tree, I 
can say

/Applications/context-osx-arm64/tex/texmf-osx-64/bin/mtxrun - -generate

(beware the « - - generate » should be actually two successive « - » dashes 
without a space between them… I am using Mail.app on my Mac and it replaces the 
two dashes with a longer n-dash « — »).

Of course the best would be to create an alias for 

/Applications/context-osx-arm64/tex/texmf-osx-64/bin/mtxrun

in your .bashrc, if you use bash.

Best regards: Otared K.

> On 7 Jan 2022, at 23:01, Jean-Pierre Delange via ntg-context 
>  wrote:
> 
> Hello !
> Sorry for this newbie question : I’ve just uploaded CTX on my new MacOS (High 
> Sierra), and when I pass the command mtxrun —generate or any other option 
> with mtxrun, I get this : -bash: mtxrun: command not found
> 
> I did that before :  echo "export 
> PATH=/Users/adeimantos/Documents/context/tex/texmf-osx-64/bin:$PATH" >> 
> ~/.bashrc
> 
> What I am missing ?
> JP
> ___
> 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] critical fun

2022-01-06 Thread Otared Kavian via ntg-context
Hi Jean-Pierre,

You need to update your ConTeXt LMTX: the example works fine on MacOS when one 
has the version 2022.01.06 19:51.

Best regards: Otared K.

> On 6 Jan 2022, at 22:09, Jean-Pierre Delange via ntg-context 
>  wrote:
> 
> This ‘CriticalFun’ test failed, and CTX complains that \setupsynchronize was 
> never defined (see the log, as attached file)
> 
>> Le 6 janv. 2022 à 20:00, Hans Hagen via ntg-context  a 
>> écrit :
>> 
>> Hi,
>> 
>> Maybe this is of interest to critical users:
>> 
>> \setupsynchronize [paralleltext] [color=darkblue]
>> % \setupsynchronize [paralleltext] [style=\tx,color=darkred]
>> % \setupsynchronize [paralleltext] [style=\txx,color=darkgreen]
>> 
>> \starttext
>> 
>> \dorecurse{10}{%
>>   \paralleltext
>>   {[een allereerste zinnetje]}
>>   {[een tweede  zinnetje]}%
>>   \space
>>   \paralleltext
>>   {[een derde zin]}
>>   {[een vierde zinnetje]}
>>   \space
>> } \removeunwantedspaces
>> \par test line \page
>> 
>> \paralleltext
>>   {[\ignorespaces\samplefile{tufte}\removeunwantedspaces]}
>>   {[\samplefile{ward}\removeunwantedspaces]}%
>> \par test line \page
>> 
>> \paralleltext
>>   {[\ignorespaces\samplefile{tufte}\removeunwantedspaces]}
>>   {[\ignorespaces\samplefile{tufte}\removeunwantedspaces]}%
>> \par test line \page
>> 
>> \paralleltext
>>   {[\ignorespaces\samplefile{ward}\removeunwantedspaces]}%
>>   {[\ignorespaces\samplefile{tufte}\removeunwantedspaces]}
>> \par test line \page
>> 
>> \stoptext
>> 
>> Kind of experimental and semi-automatic (triggered by question from 
>> collegue). I want to add some larger text sync points (just mark locations 
>> in two running texts) stuff but i have no examples.
>> 
>> 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
___


[NTG-context] Math in LMTX and definemathcommand

2021-11-17 Thread Otared Kavian via ntg-context
Hi Hans,

Thank you for the new upload and the rewriting of the math fonts stuff, thanks 
also to Mikael S. I did several tests on real size math projects and did not 
notice important issues.

The two issues I noticed, show up mainly with LucidaOT, and are explained in 
the following example:

\setupbodyfont[lucidaot]

\definemathstackers[MySymbol]
[voffset=-1.4\mathexheight, % -.8\mathexheight
hoffset=\zeropoint,
mathclass=ord,
topoffset=.3\mathemwidth, % poor man's italic correction
middlecommand=\mathematics]

\define[1]\interior{\mathover[MySymbol]{176}{#1}} %2218 U+00B0

\definemathcommand [Argmin]  [limop] {\mfunctionlabeltext{ArgMin}}
\definemathcommand [liminfbar]  [limop] {\underline{\mfunctionlabeltext{lim}}}
\definemathcommand [limsupbar]  [limop] {\overline{\mfunctionlabeltext{lim}}}

\starttext
If $A \subset {\Bbb R}$ is a set, its interior is denoted by $\interior{A}$. 
Can one have the circle over $A$ slightly bigger (probbaly this is font 
dependent)?

The built-in commands $\liminf$ and $\limsup$ do not work properly with 
LucidaOT (I tried other fonts and there they are fine):
\startformula
x_{n} := (-1)^n, \quad\mbox{then} \quad \liminf_{n \geq 0}x_{n} = -1, \quad 
\limsup_{n\geq 0} x_{n}= +1.
\stopformula

The commands defined above, \type{\liminfbar} and \type{\limsupbar}, behave 
correctly in all fonts I tested:
\startformula
x_{n} := (-1)^n, \quad\mbox{then} \quad \liminfbar_{n \geq 0}x_{n} = -1, \quad 
\limsupbar_{n\geq 0}x_{n} = +1,
\stopformula
but not the command \type{\Argmin} (which does not show Argmin in any font…)
\startformula
\Argmin_{x\in {\Bbb R}} (x^2 - x + 1) = {1 \over 2}.
\stopformula

\stoptext

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 / 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] SimpleSlides and Visual counters

2021-11-16 Thread Otared Kavian via ntg-context
Hi Aditya,

Thank you for your attention and your kind reply.

I am sending a setup file with an example of presentation, which shows the 
issue with LMTX while with mkiv the result is fine.
Actually as you can see in the setup file, I have slightly modified the visula 
counter in order for it to be interactive (clicking in the center of the visula 
counter gives a jump to the previous location…).

Best regards: Otared



presentation.tex
Description: Binary data



conf-pre-setup.tex
Description: Binary data


> On 16 Nov 2021, at 18:34, Aditya Mahajan via ntg-context  
> wrote:
> 
> On Mon, 15 Nov 2021, Otared Kavian via ntg-context wrote:
> 
> Hi Otared,
> 
>> It seems that the visual counter in  SimpleSlides module (the version I have 
>> from ConTeXt Garden is from 2014) does not work fine with the latest LMTX.
>> Is the issue is known ? If so, is there a new version of SimpleSlides in 
>> which the issue has been fixed ?
> 
> I haven't looked at simpleslides in over a decade! The module did use some 
> low-level macros, which are unlikely to work with LMTX without change. 
> 
> It could also be a bug with visualcounter module. I haven't tested in with 
> LMTX (I still use MkIV for most of my presentations). If you can post a 
> minimal example, I could take a look.
> 
> 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
> ___

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

2021-11-16 Thread Otared Kavian via ntg-context
Hi Hans,

Thank you for the new upload and the rewriting of the math fonts stuff, thanks 
also to Mikael S. I did several tests on real size math projects and did not 
notice important issues.

The two issues I noticed, show up mainly with LucidaOT, and are explained in 
the following example:

\setupbodyfont[lucidaot]

\definemathstackers[MySymbol]
[voffset=-1.4\mathexheight, % -.8\mathexheight
hoffset=\zeropoint,
mathclass=ord,
topoffset=.3\mathemwidth, % poor man's italic correction
middlecommand=\mathematics]

\define[1]\interior{\mathover[MySymbol]{176}{#1}} %2218 U+00B0

\definemathcommand [Argmin]  [limop] {\mfunctionlabeltext{ArgMin}}
\definemathcommand [liminfbar]  [limop] {\underline{\mfunctionlabeltext{lim}}}
\definemathcommand [limsupbar]  [limop] {\overline{\mfunctionlabeltext{lim}}}

\starttext
If $A \subset {\Bbb R}$ is a set, its interior is denoted by $\interior{A}$. 
Can one have the circle over $A$ slightly bigger (probbaly this is font 
dependent)?

The built-in commands $\liminf$ and $\limsup$ do not work properly with 
LucidaOT (I tried other fonts and there they are fine):
\startformula
x_{n} := (-1)^n, \quad\mbox{then} \quad \liminf_{n \geq 0}x_{n} = -1, \quad 
\limsup_{n\geq 0} x_{n}= +1.
\stopformula

The commands defined above, \type{\liminfbar} and \type{\limsupbar}, behave 
correctly in all fonts I tested:
\startformula
x_{n} := (-1)^n, \quad\mbox{then} \quad \liminfbar_{n \geq 0}x_{n} = -1, \quad 
\limsupbar_{n\geq 0}x_{n} = +1,
\stopformula
but not the command \type{\Argmin} (which does not show Argmin in any font…)
\startformula
\Argmin_{x\in {\Bbb R}} (x^2 - x + 1) = {1 \over 2}.
\stopformula

\stoptext

Best regards: Otared

> On 13 Nov 2021, at 21:19, Hans Hagen via ntg-context  
> wrote:
> 
> Hi,
> 
> I uploaded a new lmtx versions. It mostly concerns new math lfg file 
> functionality (and control) that Mikael Sundqvist and I are currently working 
> on so there might be subtle differences in math, which is, unless there are 
> bugs, intentional and for the best. At some point there will be additional 
> test files in the distribution and a chapter on fonts in the math manual (the 
> deadline is next years ctx meeting).
> 
> If you have wishes wrt fonts you can tell us and we'll take them into account 
> (if possible) but we need proper (real) minimal examples, and not for only 
> one font as we're looking at:
> 
> cambria (the reference font, very little tweaking needed)
> modern  (which has some properties different from other gyre fonts)
> modernlatin (the boldened aka bachotex version)
> dejavu  (a gyre font but different from other gyre fonts)
> pagella (a gyre font, all have subtle differences)
> schola  (a gyre font, all have subtle differences)
> termes  (a gyre font, all have subtle differences)
> bonum   (a gyre font, all have subtle differences)
> lucida  (commercial but rather cheap from tug)
> xits(is that one still used?)
> libertinus  (a mixed bag)
> stix-two(a mixed bag)
> asana   (we might drop it because of quality reasons)
> ebgaramond  (this one is quite cambria conforming)
> minion  (tricky because commercial and not generally available)
> 
> Maybe later the newlatin modern will get a lfg too but it's beta and we 
> 'modernlatin' anyway which uses our normal lm lgf file as it's A runtime 
> derived font and therefore fully compatible.
> 
> The bold (heavy) math fonts also are dealt with automagically.
> 
> For practical reasons we might freeze fonts in the distribution and only 
> update when explicitly checked for changes (and/or I might cook up version 
> support in the lfg file assuming version checking is doable as often version 
> strings are somewhat messy). We're not that bound to conventions (in the 
> perspective of tex usage) and can "fix" them once and for all (read: we can 
> divert from how these fonts are currently tuned for usage and expectations in 
> e.g. latex and plain tex) so feel free to suggest esthetical pleasing 
> options. If needed we can add variants (for which we can extend the lfg 
> format). We also have plenty of yet unused (detailed) control in the engine. 
> We can for instance have specific parameter sets / finetuning defined in the 
> lfg files too but I don't know how useful and in demand that is (Mikael is 
> looking into that).
> 
> (I'm sure Aditya has some wishes. We'll deal with Euler later as that's a 
> virtual mix and virtual opentype might be redone later because we can simply 
> matters a bit due to the fact that we have some more and better trickery wrt 
> virtual fonts now.)
> 
> More in due time (as it's a tedious and somewhat boring job that demands lots 
> of testing and investigation),
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   

[NTG-context] SimpleSlides and Visual counters

2021-11-15 Thread Otared Kavian via ntg-context
Hi all, in particular Aditya M. and Thomas A.S.,

It seems that the visual counter in  SimpleSlides module (the version I have 
from ConTeXt Garden is from 2014) does not work fine with the latest LMTX.
Is the issue is known ? If so, is there a new version of SimpleSlides in which 
the issue has been fixed ?

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 / 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] \externafigure and \at do not work together

2021-10-31 Thread Otared Kavian via ntg-context
Hi,

Your example has two issues, since you invoke \externalfigure before 
\starttext, and moreover you don’t use the place figure mechanism.
The following gives the result you want:

\setupinteraction[state=start]
\starttext
\startplacefigure[reference=clock]
\externalfigure[clock.jpg]
\stopplacefigure
In figure \at[clock] you see a clock
\page
In figure \at[clock] you see a clock. 

Or better: in \in{Figure}[clock] you see a clock.
\stoptext

Best regards: Otared

> On 31 Oct 2021, at 13:49, a badin via ntg-context  wrote:
> 
> The fix is not really a fix thought, as it makes the image of the
> figure disappear.
> Still don't know how to make a .jpg work with \at
> 
> On Sun, 31 Oct 2021 at 13:07, a badin  wrote:
>> 
>> Hello, perhaps this is how it is supposed to work, but:
>> 
>> \externalfigure[clock.jpg][clock]
>> \starttext
>> \at[clock] refers to a clock
>> \stoptext
>> 
>> produces "?? refers to a clock", instead of "1 refers a clock" --- the
>> wiki of \at says, that labels of figures can be refered to. Is this a
>> bug, or can only some labels be refered to? I was able to fix it
>> using:
>> 
>> \reference[clock]{\externalfigure[clock.jpg]}
>> \starttext
>> \at[clock] refers to a clock
>> \stoptext
>> 
>> and
>> 
>> \externalfigure[clock][]
>> \starttext
>> \at
>> \stoptext
>> 
>> produces an interesting artwork... so I thought maybe this could be a
>> bug. LMTX 2021.10.21
>> 
>> Best,
>> Andrej
> ___
> 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] Create an enumeration style

2021-08-11 Thread Otared Kavian via ntg-context
> On 11 Aug 2021, at 10:19, Thomas A. Schmitz via ntg-context 
>  wrote:
> 
> 
>> On 11. Aug 2021, at 10:09, Otared Kavian via ntg-context 
>>  wrote:
>> 
>> Thanks for the example and the fix, but I would rather think that the « 
>> french » part of ordinals should be
>> 
>>  french = function(n)
>>  if n == 1 then
>>  return « er"
>>  else
>>   return « ème"
>>  end
>>  end,
> 
> Except if you have something like “1ère image”… Ah, languages are so messy 
> (no pun with recent events in Paris intended).
> 
> Thomas

Sure… But then maybe it is possible to define one’s own « ordinals.french » for 
messy cases :-) 
___
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] Create an enumeration style

2021-08-11 Thread Otared Kavian via ntg-context


> On 9 Aug 2021, at 18:10, Wolfgang Schuster via ntg-context 
>  wrote:
> (…)
> core-con.lua (line 1155):
> 
> local ordinals = {
> [...]
> french = function(n)
> if n == 1 then
> return "er"
> +   else
> +   return "e"
> end
> end,
> }

Hi Wolfgang,

Thanks for the example and the fix, but I would rather think that the « french 
» part of ordinals should be

french = function(n)
if n == 1 then
return « er"
else
 return « ème"
end
end,

Now if this were not accepted as a fix in core-con.lua, is there a way for a 
user to change the default to the above choice in his document ?

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 / 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] Strange new behaviour of the mailing list

2021-07-31 Thread Otared Kavian via ntg-context
> On 31 Jul 2021, at 00:05, Bruce Horrocks  wrote:
> […]
> I see the same thing, also on Macos. Looking at an older message, I see that 
> the Reply-To: header has changed from
> 
> Reply to: Bruce Horrocks ,
>  mailing list for ConTeXt users 
> 
> to
> 
> Reply to: mailing list for ConTeXt users 
> 
> 
> So I suggest that there is little you can do as it appears to be a 
> configuration change on the mailing list server; and Apple Mail doesn't have 
> the facilities to easily allow you to re-write that header

Hi Bruce,

Thanks for your reply. 
I don’t know what has triggered this change, which seems to me strange and 
inconvenient.

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 / 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] Strange new behaviour of the mailing list

2021-07-31 Thread Otared Kavian via ntg-context
> On 31 Jul 2021, at 00:47, Henning Hraban Ramm via ntg-context 
>  wrote:
>> […]
> 
> If you click on that name, you can see the actual address.
> 
> Hraban

Sure, but I don’t understand why the behaviour has changed. It seems to me a 
regression…

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


[NTG-context] Strange new behaviour of the mailing list

2021-07-30 Thread Otared Kavian via ntg-context
Hi all,

I noticed that beginning July 27th, the messages distributed by the ConTeXt 
mailing list appear to be from

Mailing list for ConTeXt users

without the actual name of the sender appearing. It may be dependent on the 
mail client I am using (Mail.app on MacOS 11.4), but I wonder whether something 
has changed on mailing list server, and whether if there is something I can do 
to have the old behaviour (which was convenient when one wanted to follow up 
mails from some specific contributors). 

Also has anybody else noticed this change?

Thanks in advance for any hint.
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 / 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] Metapost Animation of Sine

2021-07-22 Thread Otared Kavian
Hi Jeroen,

Unfortunately I am not familiar with Tikz, since all my documents use what is 
built-in ConTeXt and Metapost…
That being said I am sure someone on the list can help you with Tikz module.

Best regards: Otared

> On 22 Jul 2021, at 14:28, Jeroen  wrote:
> 
> Hi, both solutions are great! This is what I had in mind, a rolling sine. Is 
> there a way to get the same result with the Tikz module?
> 
> \usemodule[animation]
> \setupinteraction[state=start]
> 
> \starttext
> 
> \input tufte
> 
> \framed{
> \startanimation[menu=yes,framerate=40]
> \dorecurse{50}{\expanded
> {\startframe
> \startMPcode
> numeric u, omega, mylength, tt ;
> u := 2cm ;
> omega := 4 ;
> mylength := 3.141596 ;
> tt := \recurselevel ;
> path p ;
> p := (0u,sin(omega*(mylength/100)*tt)*u) for i = 1 upto 100 : 
> .. (((mylength/100)*i)*u,sin(omega*(mylength/100)*(i + tt))*u) 
> endfor ;
> draw p withpen pencircle scaled .5pt withcolor darkred ;
> \stopMPcode
> \stopframe}
> }
> \stopanimation
> }
> 
> \stoptext
> 
> Op wo 21 jul. 2021 om 23:26 schreef Otared Kavian  <mailto:ota...@gmail.com>>:
> Hi, 
> 
> I wonder whether something like the following is what you are looking for:
> 
> % begin wave-sine.tex
> \usemodule[animation]
> \setupinteraction[state=start]
> \starttext
> \startTEXpage[offset=2pt]
> \startanimation[menu=yes,framerate=10]
> \dorecurse{100}{\expanded
> {\startframe
> \startMPcode
> numeric u, omega, mylength, tt ;
> u := 2cm ;
> omega := 4 ;
> mylength := 3.141596 ;
> tt := \recurselevel ;
> path p ;
> p := (0u,sin(omega*(mylength/100)*tt)*u) for i = 1 
> upto 100 : 
> .. 
> (((mylength/100)*i)*u,sin(omega*(mylength/100)*(i + tt))*u) 
> endfor ;
> draw p withpen pencircle scaled .5pt withcolor 
> darkred ;
> \stopMPcode
> \stopframe}
> }
> \stopanimation
> \stopTEXpage
> \stoptext
> % end wave-sine.tex
> 
> Best regards: OK
> 
> > On 21 Jul 2021, at 19:44, Jeroen  > <mailto:context...@gmail.com>> wrote:
> > 
> > I am looking for a sine animation as the one file f.pdf on this site
> > 
> > http://www.12000.org/my_notes/Mathematica_animation_into_PDF_using_latex/index.htm
> >  
> > <http://www.12000.org/my_notes/Mathematica_animation_into_PDF_using_latex/index.htm>
> > 
> > Jeroen
> > 
> > Op wo 21 jul. 2021 om 17:54 schreef Fabrice L  > <mailto:fabrice.al...@gmail.com>>:
> > Hi,
> > 
> >> Le 21 juill. 2021 à 10:08, Jeroen  >> <mailto:context...@gmail.com>> a écrit :
> >> 
> >> I use this small animation to enlarge a circle
> >> 
> >> 
> >> \usemodule[animation]
> >> \setupinteraction[state=start]
> >> \starttext
> >> \startanimation[menu=yes,framerate=10]
> >> \dorecurse{7}{\expanded
> >>   {\startframe
> >> \startMPcode
> >> path p;
> >> numeric n, u;
> >> u := 1cm;
> >> n:=\recurselevel*u;
> >> p := fullcircle scaled n;
> >> draw p;
> >> \stopMPcode
> >>   \stopframe}}
> >> \stopanimation
> >> \stoptext
> >> 
> >> 
> >> This I use to draw a sine
> >> 
> >> 
> >> \starttext
> >> \startMPcode
> >>   draw(-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
> >> (i/360*1.5cm,0.9cm*(sind(i)))endfor;
> >> \stopMPcode
> >> \stoptext
> >> 
> >> 
> >> When I put it together to animate the sine as following, it does not 
> >> entirely create the sine animation I am looking for
> >> 
> >> 
> >> \usemodule[animation]
> >> \setupinteraction[state=start]
> >> \starttext
> >> \startanimation[menu=yes,framerate=10]
> >> \dorecurse{7}{\expanded
> >>   {\startframe
> >> \startMPcode
> >> path p;
> >> numeric n, u;
> >> u := 1cm;
> >> n:=\recurselevel*u;
> >> p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
> >> (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0);
> >> draw p;
> >> \stopMPcode
> >> \stopframe}}
> >> \stopanimation
> >> \stoptext

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Otared Kavian
Hi,

Adding to my previous message, if you are looking for an animation of the wave 
equation for a string with fixed endpoints, one has to use something like the 
following:

% begin wave-sine-string.tex
\usemodule[animation]
\setupinteraction[state=start]
\starttext
\startTEXpage[offset=2pt]
\startanimation[menu=yes,framerate=10]
\dorecurse{101}{\expanded
{\startframe
\startMPcode
numeric u, omega, mylength, tt, N ;
u := 2cm ;
omega := 4 ;
mylength := 3.141596 ;
tt := \recurselevel - 1 ;
N := 500 ; % number of steps
path p ;
p := (0u,0u) for i = 1 upto N : 
-- 
(((mylength/N)*i)*u,cos(omega*(mylength/N)*tt)*sin(omega*(mylength/N)*i)*u) 
endfor ;
draw p withpen pencircle scaled .5pt withcolor darkred ;
\stopMPcode
\stopframe}
}
\stopanimation
\stopTEXpage
\stoptext
% end wave-sine-string.tex

Best regards: OK

> On 21 Jul 2021, at 19:44, Jeroen  wrote:
> 
> I am looking for a sine animation as the one file f.pdf on this site
> 
> http://www.12000.org/my_notes/Mathematica_animation_into_PDF_using_latex/index.htm
> 
> Jeroen
> 
> Op wo 21 jul. 2021 om 17:54 schreef Fabrice L :
> Hi,
> 
>> Le 21 juill. 2021 à 10:08, Jeroen  a écrit :
>> 
>> I use this small animation to enlarge a circle
>> 
>> 
>> \usemodule[animation]
>> \setupinteraction[state=start]
>> \starttext
>> \startanimation[menu=yes,framerate=10]
>> \dorecurse{7}{\expanded
>>   {\startframe
>> \startMPcode
>> path p;
>> numeric n, u;
>> u := 1cm;
>> n:=\recurselevel*u;
>> p := fullcircle scaled n;
>> draw p;
>> \stopMPcode
>>   \stopframe}}
>> \stopanimation
>> \stoptext
>> 
>> 
>> This I use to draw a sine
>> 
>> 
>> \starttext
>> \startMPcode
>>   draw(-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
>> (i/360*1.5cm,0.9cm*(sind(i)))endfor;
>> \stopMPcode
>> \stoptext
>> 
>> 
>> When I put it together to animate the sine as following, it does not 
>> entirely create the sine animation I am looking for
>> 
>> 
>> \usemodule[animation]
>> \setupinteraction[state=start]
>> \starttext
>> \startanimation[menu=yes,framerate=10]
>> \dorecurse{7}{\expanded
>>   {\startframe
>> \startMPcode
>> path p;
>> numeric n, u;
>> u := 1cm;
>> n:=\recurselevel*u;
>> p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
>> (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0);
>> draw p;
>> \stopMPcode
>> \stopframe}}
>> \stopanimation
>> \stoptext
>> 
>> 
>> What better way can I create a sine animation with Metapost?
>>  
>> 
> 
> Here is another way to do your animation. This is doing something, but I 
> guess not what you want. Could you describe what do you have in mind ?
> 
> \starttext
> \dorecurse{7}{ % 3180
> \startMPpage
>   myvariable := #1 ;
>   path p;
> numeric n, u;
> u := 1cm;
> n:=myvariable*u;
> p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
> (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0);
> draw p;
> \stopMPpage
> }
> \stoptext
> 
> Fabrice.
> 
> 
> ___
> 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] Metapost Animation of Sine

2021-07-21 Thread Otared Kavian
Hi, 

I wonder whether something like the following is what you are looking for:

% begin wave-sine.tex
\usemodule[animation]
\setupinteraction[state=start]
\starttext
\startTEXpage[offset=2pt]
\startanimation[menu=yes,framerate=10]
\dorecurse{100}{\expanded
{\startframe
\startMPcode
numeric u, omega, mylength, tt ;
u := 2cm ;
omega := 4 ;
mylength := 3.141596 ;
tt := \recurselevel ;
path p ;
p := (0u,sin(omega*(mylength/100)*tt)*u) for i = 1 upto 
100 : 
.. 
(((mylength/100)*i)*u,sin(omega*(mylength/100)*(i + tt))*u) 
endfor ;
draw p withpen pencircle scaled .5pt withcolor darkred ;
\stopMPcode
\stopframe}
}
\stopanimation
\stopTEXpage
\stoptext
% end wave-sine.tex

Best regards: OK

> On 21 Jul 2021, at 19:44, Jeroen  wrote:
> 
> I am looking for a sine animation as the one file f.pdf on this site
> 
> http://www.12000.org/my_notes/Mathematica_animation_into_PDF_using_latex/index.htm
> 
> Jeroen
> 
> Op wo 21 jul. 2021 om 17:54 schreef Fabrice L :
> Hi,
> 
>> Le 21 juill. 2021 à 10:08, Jeroen  a écrit :
>> 
>> I use this small animation to enlarge a circle
>> 
>> 
>> \usemodule[animation]
>> \setupinteraction[state=start]
>> \starttext
>> \startanimation[menu=yes,framerate=10]
>> \dorecurse{7}{\expanded
>>   {\startframe
>> \startMPcode
>> path p;
>> numeric n, u;
>> u := 1cm;
>> n:=\recurselevel*u;
>> p := fullcircle scaled n;
>> draw p;
>> \stopMPcode
>>   \stopframe}}
>> \stopanimation
>> \stoptext
>> 
>> 
>> This I use to draw a sine
>> 
>> 
>> \starttext
>> \startMPcode
>>   draw(-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
>> (i/360*1.5cm,0.9cm*(sind(i)))endfor;
>> \stopMPcode
>> \stoptext
>> 
>> 
>> When I put it together to animate the sine as following, it does not 
>> entirely create the sine animation I am looking for
>> 
>> 
>> \usemodule[animation]
>> \setupinteraction[state=start]
>> \starttext
>> \startanimation[menu=yes,framerate=10]
>> \dorecurse{7}{\expanded
>>   {\startframe
>> \startMPcode
>> path p;
>> numeric n, u;
>> u := 1cm;
>> n:=\recurselevel*u;
>> p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
>> (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0);
>> draw p;
>> \stopMPcode
>> \stopframe}}
>> \stopanimation
>> \stoptext
>> 
>> 
>> What better way can I create a sine animation with Metapost?
>>  
>> 
> 
> Here is another way to do your animation. This is doing something, but I 
> guess not what you want. Could you describe what do you have in mind ?
> 
> \starttext
> \dorecurse{7}{ % 3180
> \startMPpage
>   myvariable := #1 ;
>   path p;
> numeric n, u;
> u := 1cm;
> n:=myvariable*u;
> p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
> (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0);
> draw p;
> \stopMPpage
> }
> \stoptext
> 
> Fabrice.
> 
> 
> ___
> 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
___


[NTG-context] Hyphens broken with lucidaot

2021-06-30 Thread Otared Kavian
Hi Hans,

I noticed that with the recent LMTX version 2021.06.27 16:59 the hyphens do not 
show up correctly with lucidaot.
Here is a minimal example and the resulting PDF

\setupbodyfont[lucidaot,10pt]
\startTEXpage
c'est-à-dire

sous-ensemble

sous-préfet
\stopTEXpage

Best regards: Otared



hyphen-lucidaot.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] simplifying repeated macro calls in metafun

2021-06-22 Thread Otared Kavian
Dear Dalyoung, dear Mikael

Thank you both for your explanations: indeed this « whatever » command in 
MetaPost is magic and very useful (I am not sure whether it is a command only 
in MetaFun, or it exists also in the original MetaPost).

Regarding the way Aditya uses \startuseMPgraphic, it is also very instructive. 
Dalyoung, can you also share the animation example for the foldings ? I am sure 
we are a few on the list to learn something…

Best regards: Otared

> On 21 Jun 2021, at 23:50, Jeong Dal  wrote:
> 
> 
> Dear Otared,
> 
> I received list mail in condensed form, I didn’t see your mail before I sent 
> one.
> 
> As Mikael explained, “whatever” is very nice to find the intersection point 
> of two lines.
> You can see nice examples which use “whatever” in MetaFun manual.
> 
> In my code, the next point is the intersection point of the edge and the 
> folding line which bisect the angle of the former folding line [M,N].
> 
> H := whatever[N, N + dir(.5*angle(M-N))*u] = whatever[A,B];
> 
> Enjoy the use of “whatever”!
> 
> I made an animation of the folding process using animation module and 
> \processMPbuffer.
> But Woldgang’s code showed a way to make it using \startuseMPgraphic.
> 
> 
> 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
> ___

___
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] simplifying repeated macro calls in metafun

2021-06-21 Thread Otared Kavian
Hi Mikael,

Thank you so much for the explanation: I am ashamed for not having read this in 
the MetaPost manual.

Just to make sure whether I am beginning to understand, in your example code

> z3 = whatever[z1,z2] = z0+whatever*dir(angle(z1-z0)+90));

should the second « whatever » be 

z0 + whatever*dir(angle(z2 - z1) + 90)) ;

or am I proving that I have not yet understood this wonderful command ?

Thanks again and best regards: Otared

> On 21 Jun 2021, at 14:21, Mikael Sundqvist  wrote:
> 
> Hi,
> 
> As is written in the MetaPost manual: Whatever generates a new
> anonymous variable each time it is used. It is very useful in cases
> where you are not interested in the value of a variable, but want to
> use it to (let MP) calculate something. Example
> 
> you have three points z0, z1, z2 forming a triangle, and you want to
> find where the altitude from z0 is intersecting the line between z1
> and z2. You can find that intersection z3 by writing
> 
> z3 = whatever[z1,z2] = z0+whatever*dir(angle(z1-z0)+90));
> 
> The first equality says only that z3 should be on the line between z1
> and z2, the second one says that z3 should be on the line through z0,
> perpendicular to the line between z1 and z2. Since MetaPost solves
> linear equations, this defines z3, and we need not to think more about
> the actual values of the "whatevers" (note that they are not in
> general equal in this example!).
> 
> Hope it helps!
> 
> /Mikael
> 
> 
> On Mon, Jun 21, 2021 at 2:07 PM Otared Kavian  wrote:
>> 
>> Hi Aditya,
>> 
>> Thanks for the detailed file you sent to answer Dalyoung’s question and 
>> file. And going through both files I have a question.
>> I see that both of you use a function « whatever » (but is it a function ?): 
>> what does this do and where can it be used (actually I have seen Hans using 
>> this expression, but I had always thought this is just a name…
>> 
>> Best regards: Otared
>> 
>>> On 21 Jun 2021, at 06:26, Aditya Mahajan  wrote:
>>> 
>>> On Mon, 21 Jun 2021, Jeong Dal wrote:
>>> 
>>>> 
>>>> Hi,
>>>> 
>>>> I defined a macro definition in metafun, and draw figures using 
>>>> \startbuffer[] … \stopbuffer and \processMPbuffer[].
>>>> As you see in the attached code, the same macro definition is used 
>>>> repeatedly by changing the numeric argument.
>>>> Is there a better way to simplify the code, for example, using \dorecurse 
>>>> and recurselevel?
>>> 
>>> See attached. The main idea is to store the repetitive bits in 
>>> \startuseMPgraphic{...} and then reuse them using \includeMPgraphic.
>>> 
>>> Aditya___
>>> If your question is of interest to others as well, please add an entry to 
>>> the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl / 
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> ___
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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] simplifying repeated macro calls in metafun

2021-06-21 Thread Otared Kavian
Hi Aditya,

Thanks for the detailed file you sent to answer Dalyoung’s question and file. 
And going through both files I have a question.
I see that both of you use a function « whatever » (but is it a function ?): 
what does this do and where can it be used (actually I have seen Hans using 
this expression, but I had always thought this is just a name…

Best regards: Otared

> On 21 Jun 2021, at 06:26, Aditya Mahajan  wrote:
> 
> On Mon, 21 Jun 2021, Jeong Dal wrote:
> 
>> 
>> Hi,
>> 
>> I defined a macro definition in metafun, and draw figures using 
>> \startbuffer[] … \stopbuffer and \processMPbuffer[].
>> As you see in the attached code, the same macro definition is used 
>> repeatedly by changing the numeric argument. 
>> Is there a better way to simplify the code, for example, using \dorecurse 
>> and recurselevel?
> 
> See attached. The main idea is to store the repetitive bits in 
> \startuseMPgraphic{...} and then reuse them using \includeMPgraphic. 
> 
> 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] Functionnames disappearing (sometimes)

2021-06-20 Thread Otared Kavian
Hi Hans,

Many thanks !
Yes the new engine fixes the issues.

Best regards: Otared

> On 19 Jun 2021, at 23:27, Hans Hagen  wrote:
> 
> On 6/19/2021 10:01 PM, Otared Kavian wrote:
>> Hi,
>> I don’t know whether the issue reported by Mikael S. is related to the 
>> following: since last week (I guess) some math sympbols are not shown 
>> either, such as \bigcap and \bigcup, even using version 2021.06.18 23:37. An 
>> example is:
>> \starttext
>> $A \cup B = X \cap Y$
>> \startformula
>> A \bigcup B = X \bigcap Y
>> \stopformula
>> \stoptext
> it's a bug i introduced in the engine .. you can try a newer bin from:
> 
> https://dl.contextgarden.net/build/luametatex/
> 
> 
> -
>  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] Functionnames disappearing (sometimes)

2021-06-19 Thread Otared Kavian
Hi,

I don’t know whether the issue reported by Mikael S. is related to the 
following: since last week (I guess) some math sympbols are not shown either, 
such as \bigcap and \bigcup, even using version 2021.06.18 23:37. An example is:

\starttext
$A \cup B = X \cap Y$
\startformula
A \bigcup B = X \bigcap Y
\stopformula
\stoptext

Best regards: Otared

> On 19 Jun 2021, at 13:12, Hans Hagen  wrote:
> 
> On 6/18/2021 1:27 PM, Mikael Sundqvist wrote:
>> Hi,
>> It seems that
>> \setupmathematics[
>> functionstyle=normal,
>> ]
>> is the problematic one here (it is needed(?) in the Neo Euler case to
>> have function names set upright). The following file shows the problem
>> as well:
>> %%%
>> \setupmathematics[
>> functionstyle=normal,
>> ]
>> \starttext
>> We have $\cos\alpha$, $\sin\alpha$, $\tan\alpha$,
>> \startformula
>> \cos\alpha=\frac{a}{c},\quad
>> \sin\alpha=\frac{b}{c},\quad
>> \tan\alpha=\frac{\sin\alpha}{\cos\alpha}=\frac{b}{a}.
>> \stopformula
>> \stoptext
>> %%%
>> I had a backup of the file I was working on, and the problem was not
>> present on june 13 (not sure I had a completely updated ConTeXt by
>> then).
> fixed in next upload (later today)
> 
> 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] mathfun

2021-05-21 Thread Otared Kavian
Hi Hans,

Thanks for the new features you have introduced in the module mathfun.
Actually I have been using commands such as the one mentioned by Aditya,
\ctxlua{myfunction(args)}
but for the formatting of the output, that is when one wants only 3 or four 
decimal digits, that approach is not very handy.
So I will use the new feature and I’ll put it on the wiki once I have a few 
interesting examples.
By the way, what does 

\complexexpr{123 + new(456,789)}

mean?

Best regards: Otared

> On 21 May 2021, at 17:06, Hans Hagen  wrote:
> 
> On 5/21/2021 4:37 PM, Aditya Mahajan wrote:
>> On Fri, 21 May 2021, Hans Hagen wrote:
>>> I uploaded an lmtx update (only m-mathfun added).
>>> 
>>> Attached a short description of this (windy stormy friday afternoon) math
>>> experiment. The question is, what similar features using this trickery come 
>>> to
>>> mind.
>> Personally, I can see occasionally making use of this instead of 
>> \ctxlua{myfunction(args)}. There is a similar library called pgfmath which 
>> is part of the tikz package, which is used quite heavily by the pgfplots 
>> package but also appears to be popular for other purposes:
>> https://tex.stackexchange.com/questions/tagged/pgfmath?tab=Votes
> I guessed right that you would be the first to to react! Anyway, I suppose 
> that you come up with additional demands like:
> 
>\permanent\protected\def\randomized{\thewithproperty\plustwo}
> 
> so that we can do:
> 
>$ \sin(x) = \randomized\sin{2pi} $
> 
> which i'm sure you can figure out by looking at the source.
> 
> 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] No math fonts in latest LMTX 2021.05.15 22:45

2021-05-20 Thread Otared Kavian
Thanks Hans ! Everything works fine again (regarding math fonts…).

Best regards: Otared

> On 20 May 2021, at 11:18, Hans Hagen  wrote:
> 
> Hi,
> 
> I uploaded a new version. Hopefully this one is complete.
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] No math fonts in latest LMTX 2021.05.15 22:45

2021-05-20 Thread Otared Kavian
Hi,

After updating to LMTX version 2021.05.15 22:45 the following does not show any 
math italic font:

\starttext
Let $f(x) := \sin(x)$.
\stoptext

Please, can someone confirm this behavior ?

Many thanks in advance: Otared
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Error when updating LMTX

2021-05-17 Thread Otared Kavian
Hi Hans,

I just tried to update LMTX, but at the end no format is made and I get the 
message:

error loading file: trac-set.lmt (aborting)resolvers

and I cannot anymore typeset any file.

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 / 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] Synctex broken in LMTX ?

2021-05-16 Thread Otared Kavian
Hi Hans and Nicola,

Thank you for your attention and your answers.

As a matter of fact I am aware that when using ConTeXt with TeXShop one has to 
add on the first line

% !TEX useOldSyncParser

and then setup synctex with

\setupsynctex[state=start,method=min]

(or method=max, or just ignoring that part). In the test file I sent this 
morning, I left out that « % !TEX useOldSyncParser » line, but on my machine, 
with or without it the situation does not change.

In fact a few years ago I was in touch with Richard Koch about the issue and we 
exchanged a few emails and testings, after which he added a Special Comment 
menu item for « % !TEX useOldSyncParser ». 
The ConTeXt code for synctex used to work fine, but beginning last year (if I 
remember well) the behaviour became somewhat unstable (again on my machine). It 
seems that the content which goes on the first page of the PDF file remains out 
of synctex when the file is typeset with LMTX. The same TeX file produces the 
correct synctex result when typeset with mkiv from TeXLive 2020 (version 
2020.03.10 14:44).

Indeed, one can compare the « filename.synctex » files obtained with LMTX and 
mkiv, to observe the differences, but I am unable to interpret why those 
differences are there. 
I am sending those files as well as the TeX and PDF files with this message. 
The PDF file I am sending is the one obtained with LMTX, and of course the 
syncing works fine when one uses the synctex file obtained with mkiv (upon 
renaming adequately that file)…

Best regards: Otared



test-synctex-1-lmtx.synctex
Description: Binary data



test-synctex-1-mkiv.synctex
Description: Binary data



test-synctex-1.pdf
Description: Adobe PDF document




test-synctex-1.synctex
Description: Binary data


> On 16 May 2021, at 16:53, Hans Hagen  wrote:
> 
> On 5/16/2021 2:52 PM, Otared Kavian wrote:
>> Hi Hans,
>> I have been noticing for some time that \setupsynctex does not work 
>> properly, at least in TeXShop on MacOS.
>> A « filename.synctex » file is created but on most occasions it does not 
>> contain many lines, and one cannot go from the PDF file to the right 
>> location in the source file.
>> Has something changed in the way synctex used to work ?
>> Below I am sending you a test file with its PDF and .synctex files, for you 
>> to see for yourself. Sorry for the disturbance…
> irr texshoip has soem setting for it (you need to check with Dick) which 
> relates to a change in synctex
> 
> anyway, this whole synctex thing is a mess ... it's rather bound to the way 
> latex does things and way to complex due to these heuristics so it could 
> never work well for context
> 
> the reason you see little in the .synctex file is that context doesn't use 
> the synctec library at all: i produce just what is needed directly, so we 
> have a way more compact output (and also better 'real file'
> tracking, plus avoiding generated stuff in the otr that makes no sense to 
> sync to because it has no file; we also protect styles from being accessed 
> that way)
> 
> now, in my opinion, the biggest drawback of synctex is that one needs to 
> compile it into the editor/viewer. Far better would have been to let the 
> viewer call out to an external program (configurable) that reports back the 
> file and line ... more flexible, better upward compatibility, no need to have 
> the synctex code on board, hardly any code and no fuzzy heuristics to fight
> 
> but I gave up communicating that because i cannot reason with the guy 
> (different wavelengths .. years ago already)
> 
> now, here is something to think about:
> 
> >mtxrun --script synctex --list
> mtx-synctex | invalid synctex log file %a
> 
> >mtxrun --script synctex --list synctex-broken.synctex
> mtx-synctex | begin page: 1
> mtx-synctex | end page: 1
> mtx-synctex | begin page: 2
> mtx-synctex |   [  71  135  177  149] : 9 : ./synctex-broken.tex
> mtx-synctex |   [ 181  135  224  149] : 2 : ./synctex-broken.tex
> mtx-synctex |   [  71  163  290  178] :14 : ./synctex-broken.tex
> mtx-synctex |   [  71  178  290  193] :17 : ./synctex-broken.tex
> mtx-synctex | end page: 2
> mtx-synctex | begin page: 3
> mtx-synctex |   [  71  135  496  149] :21 : ./synctex-broken.tex
> mtx-synctex |   [  71  149  496  164] :21 : ./synctex-broken.tex
> mtx-synctex |   [  71  163  496  178] :21 : ./synctex-broken.tex
> mtx-synctex |   [  71  178  496  193] :21 : ./synctex-broken.tex
> mtx-synctex |   [  71  192  496  207] :21 : ./synctex-broken.tex
> mtx-synctex |   [  71  207  496  222] :21 : ./synctex-broken.tex
> mtx-synctex |   [  71  221  462  236] :21 : ./synctex-broken.tex
> mtx-synctex | end page: 3
> 
> >

[NTG-context] Synctex broken in LMTX ?

2021-05-16 Thread Otared Kavian
Hi Hans,

I have been noticing for some time that \setupsynctex does not work properly, 
at least in TeXShop on MacOS. 
A « filename.synctex » file is created but on most occasions it does not 
contain many lines, and one cannot go from the PDF file to the right location 
in the source file.
Has something changed in the way synctex used to work ?

Below I am sending you a test file with its PDF and .synctex files, for you to 
see for yourself. Sorry for the disturbance…

Best regards: Otared




synctex-broken.synctex
Description: Binary data



synctex-broken.pdf
Description: Adobe PDF document



synctex-broken.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] \prime is too high

2021-05-10 Thread Otared Kavian
Hi Jairo,

Indeed \prime seems a littl ebit too high, but using the apostrophe sign for 
derivation gives the expected result:


\starttext
$s''$ or $s’$ is fine but not $s^{\prime}$.
\stoptext

(Using LMTX version 2021.05.09 17:14).

Best regards: Otared


> On 9 May 2021, at 02:46, Jairo A. del Rio  wrote:
> 
> The following:
> 
> \starttext
> $s''$ %or $s^{\prime}$
> \stoptext
> 
> gives a too high symbol in ConTeXt LMTX 2021.05.06 23:35. ConTeXt MkIV isn't 
> affected for such an issue.
> 
> Jairo
> ___
> 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] custom zig zag sidebars

2021-04-29 Thread Otared Kavian
Hi Massi,

Thank you and Hans for this nice feature: is it going to be included in the 
built-in sidebar ?

Best regards: Otared

> On 29 Apr 2021, at 11:52, mf  wrote:
> 
> Il 28/04/21 17:53, Hans Hagen ha scritto:
>> On 4/28/2021 5:27 PM, mf wrote:
>>> Hello,
>>> 
>>> I made an experiment to add alternatives to sidebars (see attachment).
>>> 
>>> I discovered the sidebar is drawn by anch_sidebars_draw in 
>>> metapost/context/base/mpiv/mp-apos.mpiv.
>>> 
>>> I've redefined it locally to add alternatives.
>>> 
>>> To make fancy, zig zag bars I defined a macro, draw_pattern_bar, that draws 
>>> a bar repeating a pattern which is a path connecting (0,0) and (1,0).
>>> 
>>> The macro has 3 parameters (actually it has more params, but the remainder 
>>> are anch_sidebars_draw params):
>>> 
>>> - a pattern, which is a path from (0,0) to (1,0) that should have a 
>>> vertical size = 1; it's a sort of waveform
>>> 
>>> - a pattern length, by which the pattern is xsized
>>> 
>>> - a pattern width, by which the pattern is ysized
>>> 
>>> Then the pattern is rotated along the bar direction (so -90 degrees) and 
>>> drawn many times until it covers the bar length.
>>> 
>>> A proposal and a question:
>>> 
>>> - patternlength and patternwidth could become \setupsidebar params; 
>>> alternative (=2,3,4...) could be used to specify the pattern (a sort of 
>>> waveform); currently alternative=0 is a solid bar and alternative=1 is a 
>>> dashed one
>>> 
>>> - in case of long patterns (a patternlength spanning more lines of text) 
>>> the last replica of the pattern should be clipped not to exceed the last 
>>> line of the sidebarred text (see the last example): how can that be done?
>> how about
>> def draw_pattern_bar(expr a, b, pattern, patternlength, patternheight, 
>> linewidth, linecolor) =
>>draw image (
>>begingroup ;
>>save p, q, stp ;
>>pair p, q, stp ;
>>stp := ( ( b - a ) / arclength( a -- b ) ) * patternlength ;
>>path q ; q := pattern xscaled patternlength yscaled patternheight 
>> rotated (angle(stp)) ;
>>p := a ;
>>forever :
>>draw
>>q shifted p
>>withpen pencircle scaled linewidth
>>withcolor linecolor ;
>>p := p + stp ;
>>exitif arclength( a -- p ) > arclength( a -- b ) ;
>>endfor ;
>>endgroup ;
>>clip currentpicture to
>>(xpart llcorner currentpicture, ypart b) --
>>(xpart lrcorner currentpicture, ypart b) --
>>(xpart urcorner currentpicture, ypart a) --
>>(xpart ulcorner currentpicture, ypart a) -- cycle ;
>>) ;
>> enddef ;
> Thank you, Hans.
> 
> To save this example, I wikified \setupsidebar, \definesidebar and 
> \startsidebar...\stopsidebar.
> 
> If you do something on alternatives, let me know.
> 
> 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
> ___

___
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] arm osx

2021-04-11 Thread Otared Kavian
Hi,

Thank you Mojca and Hans for the new binary for MacOS ARM: yesterday I 
installed it on my new MacBook Pro ARM and everything works like a charm.

Just for the persons who run into difficulties when running
sh install.sh
and see that MacOS 11 prevents mtxrun to run properly, in the Finder you should 
find the file

context-osx-arm64/bin/mtxrun

and then you press Control while clicking on it. You’ll see a pop up window, 
and you choose Open, and when the Finder tells you whether you really want to 
open that file, you say YES…
After this, the install script does what it has to do and you don’t need 
anymore to authorize mtxrun to run.

Best regards: Otared

> On 10 Apr 2021, at 17:21, Hans Hagen  wrote:
> 
> Hi,
> 
> Thanks to Mojca's persistent efforts we now generate arm osx binaries on the 
> build infrastructure, so lmtx now ships native arm bins for apples. There are 
> also intel solaris builds now but no installers for those platforms (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 / 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] lmtx update / teaser

2021-03-01 Thread Otared Kavian
Hi Hans,

Thank you for the new upload.

The teaser examples work fine, many thanks !
I have a question though: how can one center within a page a text, for example 
typeset in a circular shape? I tried with \startalignment, and also with 
\startplacefigure but none of these gives a centered circular shape.

Also I noticed that if one removes the comment at the end of 
\startshapedparagraph, or add a blank line after that, then the circular shape 
is destroyed: is this on purpose ?

Best regards: Otared

% begin example-circular-shape.tex
\starttext

%\startuseMPgraphic{circle}
%   lmt_parshape [
%   path   = fullcircle scaled 136mm,
%   offset = 2mm,
%   bottomskip = - 1.5LineHeight,
%   ] ;
%\stopuseMPgraphic

\startuseMPgraphic{circleBis}
lmt_parshape [
path   = fullcircle scaled 90mm,
offset = 2mm,
bottomskip = - 1.5LineHeight,
] ;
\stopuseMPgraphic

\startalignment[middle]
%\startplacefigure[align=middle,number=no]
\start
\startshapedparagraph[list=circle,mp=circleBis,repeat=yes,method=repeat]%
\setupalign[verytolerant,stretch,last]
\dontcomplain
{\darkred \samplefile{thuan}}
\stopshapedparagraph
\stop
%\stopplacefigure
\stopalignment 

\stoptext
% end example-circular-shape.tex

> On 1 Mar 2021, at 15:44, Hans Hagen  wrote:
> 
> Hi,
> 
> I uploaded a new lmtx. As I'm currently going through the metafun todo files 
> I ended up at the fancy shape part (parshapes) running over multiple 
> paragraphs and decided to provide a (kind of low level) interface that 
> integrates that. The example code is a few decades old but still works ok (i 
> might try to improve them a bit some day). Anyway, here is a teaser:
> 
> \starttext
> 
> \startuseMPgraphic{circle}
>lmt_parshape [
>path   = fullcircle scaled 136mm,
>offset = 2mm,
>bottomskip = - 1.5LineHeight,
>] ;
> \stopuseMPgraphic
> 
> \start
> \startshapedparagraph[list=circle,mp=circle,repeat=yes,method=cycle]%
>\setupalign[verytolerant,stretch,last]\dontcomplain
>{\darkred \samplefile{tufte}}\par
>{\darkgreen   \samplefile{tufte}}\par
>{\darkblue\samplefile{tufte}}\par
>{\darkcyan\samplefile{tufte}}\par
>{\darkmagenta \samplefile{tufte}}\par
> \stopshapedparagraph
> \stop
> 
> \page
> 
> \start
> \startshapedparagraph[list=circle,mp=circle,repeat=yes,method=repeat]%
>\setupalign[verytolerant,stretch,last]\dontcomplain
>{\darkred \samplefile{tufte}}
>{\darkgreen   \samplefile{tufte}}
>{\darkblue\samplefile{tufte}}
>{\darkcyan\samplefile{tufte}}
>{\darkmagenta \samplefile{tufte}}
> \stopshapedparagraph
> \stop
> 
> \stoptext
> 
> The interface is still somewhat rough (no grouping for instance, not a real 
> envrionment so that might change) but seems to work ok. One can also go the 
> tex route and say:
> 
> \startparagraphshape[test]
>left 1mm right 1mm
>left 2mm right 2mm
>left 3mm right 3mm
>copy 8
>left 4mm right 4mm
>left 5mm right 5mm
>left 5mm hsize 10cm
> \stopparagraphshape
> 
> or
> 
> \startparagraphshape[test]
>left 1mm right 1mm
>right 3mm
>left 5mm right 5mm
>repeat
> \stopparagraphshape
> 
> or
> 
> \startparagraphshape[test]
>both 1mm both 2mm both 3mm both 4mm both 5mm both 6mm
>both 7mm both 6mm both 5mm both 4mm both 3mm both 2mm
> \stopparagraphshape
> 
> or
> 
> \startparagraphshape[test-repeat]
>both 1mm both 2mm both 3mm both 4mm both 5mm both 6mm
>both 7mm both 6mm both 5mm both 4mm both 3mm both 2mm
>repeat
> \stopparagraphshape
> 
> and use that with:
> 
> \startshapedparagraph[list=test]
>\dorecurse{8}{\showparagraphshape\samplefile{tufte} \par}
> \stopshapedparagraph
> 
> or
> 
> \startshapedparagraph[list=test-repeat]
>\dorecurse{8}{\showparagraphshape\samplefile{tufte} \par}
> \stopshapedparagraph
> 
> Some more info is in the lowlevel-paragrsph document (part of the low level 
> series).
> 
> This kind of features falls into the category 'fancy' (no one reqtested it), 
> nice for posters and covers. It might evolve depending on needs for fancy 
> features, but as said, it's currently a side track of metafun, so it's also 
> in the category 'fun'. It's code for 'controlled' usage.
> 
> 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  : 

Re: [NTG-context] \blackrule and margin

2021-02-23 Thread Otared Kavian
Sorry, I didn't send the correct example…

\setuppapersize[A8,landscape]
\setuplayout[leftmargin=2.5cm,
 leftmargindistance=0.2cm,
 backspace=2.9cm,
 width=4cm]
\showframe
\starttext
\margintext{\hairline}\dontleavehmode\hairline

\startformula
\margintext{Me}
a^n + b^n = c^n.
\stopformula
\stoptext

> On 23 Feb 2021, at 11:28, Ursula Hermann  wrote:
> 
> Dear Pablo!
> 
> I have done some changes. How can I get both hairlines in the same height: 
> 
> \setuppapersize[A8,landscape]
> \setuplayout[leftmargin=2.5cm,
>  leftmargindistance=0.2cm,
>  backspace=2.9cm,
>  width=4cm]
> \showframe
> \starttext
> \margintext{\hairline\\{Me}}
> \hairline
> \startformula
> a^n + b^n = c^n.
> \stopformula
> \stoptext
> 
> Thank you
> Uschi 
> 
> 
> 
> Von: ntg-context  im Auftrag von Pablo Rodriguez 
> 
> Gesendet: Freitag, 19. Februar 2021 16:41
> An: ntg-context@ntg.nl
> Betreff: Re: [NTG-context] \blackrule and margin
>  
> On 2/19/21 4:02 PM, Ursula Hermann wrote:
> > Dear List, 
> > i have the little following example: 
> >
> > \setuppapersize[A8,landscape]
> > \setuplayout[leftmargin=2.5cm,
> >  leftmargindistance=0.2cm,
> >  backspace=2.9cm,
> >  width=4cm]
> > \showframe
> > \starttext
> > \blackrule
> > \margintext{Me}
> > \blackrule[color=black, height=0.5ex, width=1cm]
> > \stoptext
> > \startformula
> > a^n + b^n = c^n.
> > \stopformula
> > \stoptext 
> > What i want is a\blackrule over the margintext, but i do not get what I
> > wantend. 
> 
> Hi Uschi,
> 
> I don’t know whether this is similar to whay you might intend:
> 
> \setuppapersize[A8,landscape]
> \setuplayout[leftmargin=2.5cm,
>  leftmargindistance=0.2cm,
>  backspace=2.9cm,
>  width=4cm]
> \showframe
> \starttext
> \blackrule
> \margintext{\blackrule[color=black, height=0.5ex, width=1cm]\\Me}
> \startformula
> a^n + b^n = c^n.
> \stopformula
> \stoptext
> 
> BTW, it isn’t also clear to me whether the formula is part of your
> document or not.
> 
> 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
> ___
> ___
> 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] \blackrule and margin

2021-02-23 Thread Otared Kavian
Hi Uschi,

You may add \dontleavehmode at the right place as in the following:

\setuppapersize[A8,landscape]
\setuplayout[leftmargin=2.5cm,
 leftmargindistance=0.2cm,
 backspace=2.9cm,
 width=4cm]
\showframe
\starttext
\margintext{\hairline\\{Me}}\dontleavehmode\hairline
\startformula
a^n + b^n = c^n.
\stopformula
\stoptext

Best regards: Otared

> On 23 Feb 2021, at 11:28, Ursula Hermann  wrote:
> 
> Dear Pablo!
> 
> I have done some changes. How can I get both hairlines in the same height: 
> 
> \setuppapersize[A8,landscape]
> \setuplayout[leftmargin=2.5cm,
>  leftmargindistance=0.2cm,
>  backspace=2.9cm,
>  width=4cm]
> \showframe
> \starttext
> \margintext{\hairline\\{Me}}
> \hairline
> \startformula
> a^n + b^n = c^n.
> \stopformula
> \stoptext
> 
> Thank you
> Uschi 
> 
> 
> 
> Von: ntg-context  im Auftrag von Pablo Rodriguez 
> 
> Gesendet: Freitag, 19. Februar 2021 16:41
> An: ntg-context@ntg.nl
> Betreff: Re: [NTG-context] \blackrule and margin
>  
> On 2/19/21 4:02 PM, Ursula Hermann wrote:
> > Dear List, 
> > i have the little following example: 
> >
> > \setuppapersize[A8,landscape]
> > \setuplayout[leftmargin=2.5cm,
> >  leftmargindistance=0.2cm,
> >  backspace=2.9cm,
> >  width=4cm]
> > \showframe
> > \starttext
> > \blackrule
> > \margintext{Me}
> > \blackrule[color=black, height=0.5ex, width=1cm]
> > \stoptext
> > \startformula
> > a^n + b^n = c^n.
> > \stopformula
> > \stoptext 
> > What i want is a\blackrule over the margintext, but i do not get what I
> > wantend. 
> 
> Hi Uschi,
> 
> I don’t know whether this is similar to whay you might intend:
> 
> \setuppapersize[A8,landscape]
> \setuplayout[leftmargin=2.5cm,
>  leftmargindistance=0.2cm,
>  backspace=2.9cm,
>  width=4cm]
> \showframe
> \starttext
> \blackrule
> \margintext{\blackrule[color=black, height=0.5ex, width=1cm]\\Me}
> \startformula
> a^n + b^n = c^n.
> \stopformula
> \stoptext
> 
> BTW, it isn’t also clear to me whether the formula is part of your
> document or not.
> 
> 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
> ___
> ___
> 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] metafun

2021-02-20 Thread Otared Kavian
Hi Hans,

Thanks for the new upload.

For your information, I would like to report that the metafun.tex file typesets 
almost corretly (actually I often typeset it for testing a new upload…) but I 
get a PDF with 400 pages instead the 448 you are mentionning…
The issues are typically some figures not showing up (for instance figures 13.1 
upto 13.13 in chapter 13).

If you think this may be useful for you, I can send you off list the PDF I get 
on MacOS 10.14.6 and today's release of LMTX.

Best regards: Otared

> On 20 Feb 2021, at 17:27, Hans Hagen  wrote:
> 
> Hi,
> 
> When making sure that the metafun manual processes with lmtx (where we have 
> sometimes different implementations of macros) I also checked performance.
> 
> When we started with this manual, it was still MKII time so we either had 
> direct calls or inbetween calls. Especially multiple runs could take a while 
> (many minutes, iir some 15 depending on how it was run). That was no fun.
> 
> In mkiv with luatex and the built in mp library this dramatically went down 
> to 18.1 seconds for one run and 14.2 seconds for luajittex, for 428
> pages.
> 
> This not bad considering that a lots of features are used: thousands of mp 
> images, a bunch of external images, many fonts, plenty of buffers, 
> positioning, color, hyperlinks, backgrounds etc. This document uses plenty of 
> lua so that is why we gain a lot with luajittex.
> 
> In lmtx where we dropped jit and have a less performing backend we expect to 
> need more runtime but in the meantime we're quite okay. Not only the engine 
> is faster, but also some low level macros benefit a bit from new features. I 
> don't know how much lua speedup plays a role but probably not that much. For 
> 448 pages (some 20 more than we had before) we now need 16.5 seconds and 15.7 
> when we use the compact font mode. So we're halfway between luatex and 
> luajittex now. More than 3 seconds of the runtime is for metapost. (I use the 
>  machine as before.)
> 
> Hans
> 
> PS. If all the stories are true is should be 1 second on a modern apple at 
> which point differences in measurements become noise but I cannot check that. 
> Some day I might check it on a rpi 4.
> 
> -
>  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] \showmathcharacters, mk ii, how can I get the list, is not working!!

2021-02-16 Thread Otared Kavian
Hi Uschi,

Maybe you need to get all math commands which result in a special character: in 
this case you may use the following, and uncomment other commands below to see 
what they give you.

\usemodule[s-math-coverage]
% \setupbodyfont[lucidaot] % Put here the font you are going to use

\starttext

% \showmathalphabets  \page
% \showmathcharacters \page
% \showmathscripts\page
% \showmathbold   \page

\showmathentities   \page

\stoptext

Best regards: Otared

> On 16 Feb 2021, at 15:07, Ursula Hermann  wrote:
> 
> Dear List, 
> I would like to know, what i can do, to geht all Math macros with MkII : 
> \showmathcharacters in my Editor: WinEdt. I tried to compile it, but there is 
> a mistake. I tried with \starttext and \stoptext, didn't work. 
> 
> Command Line:   context.exe --synctex=-1 "Math 2.tex"
> Startup Folder: C:\Users\Administrator
> resolvers   | formats | executing runner 'run luatex format': 
> C:/texlive/2020/bin/win32/luatex --jobname="Math 2" 
> --fmt=C:/texlive/2020/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.fmt
>  
> --lua=C:/texlive/2020/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui
>  cont-yes.mkiv --c:currentrun=1 --c:fulljobname="./Math 2.tex" 
> --c:input="./Math 2.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="-1" 
> --c:texmfbinpath="C:/texlive/2020/bin/win32"
> This is LuaTeX, Version 1.12.0 (TeX Live 2020/W32TeX) 
>  system commands enabled.
> open source > level 1, order 1, name 
> 'C:/texlive/2020/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv'
> system  > 
> system  > ConTeXt  ver: 2020.03.10 14:44 MKIV beta  fmt: 2021.1.18  
> int: english/english
> system  > 
> system  > 'cont-new.mkiv' loaded
> open source > level 2, order 2, name 
> 'C:/texlive/2020/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
> system  > beware: some patches loaded from cont-new.mkiv
> close source> level 2, order 2, name 
> 'C:/texlive/2020/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
> system  > files > jobname 'Math 2', input './Math 2', result 'Math 2'
> fonts   > latin modern fonts are not preloaded
> languages   > language 'en' is active
> system  > synctex functionality is enabled, expect 5-10 pct runtime 
> overhead!
> open source > level 2, order 3, name 'C:/Users/Administrator/Math 2.tex'
> 
> tex error   > tex error on line 1 in file C:/Users/Administrator/Math 
> 2.tex: ! Undefined control sequence
> 
> l.1 \showmathcharacters
>  
> 
> 1 >>  \showmathcharacters 
> 
> mtx-context | fatal error: return code: 1
> 
> 
> _
> 
>  ConTeXt Compilation Report (Pages: 0)
> 
>  Errors: 1   Warnings: 0   Bad Boxes: 0
> ___
> 
> Many thanks
> Uschi Hermann 
> ___
> 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] composing commands

2021-02-09 Thread Otared Kavian
Hi Hans,

Thanks for the new composing commands. I made several tests and everything 
works great.
I guess when you say something like

> \withgrave   {a} == \\`{a}

you mean

\withgrave   {a} == \`{a}

(this is what I tested…).
Regarding the characters æ and œ, the command \chr produces them correctly, 
that is

\chr{ae} \chr{AE}
\chr{oe} \chr{OE}

produce

æ Æ
œ Œ

as expected.
If you think these commands are to stay, please tell me if they have to be on 
the wiki.

Best regards: Otared

> On 8 Feb 2021, at 10:53, Hans Hagen  wrote:
> 
> On 2/6/2021 11:41 PM, T. Kurt Bond wrote:
> 
>> I think that it would be useful.  I use Unicode characters extensively in my 
>> ConTeXt input, but only because I edit it in Emacs and can set up keymaps 
>> that map to the Unicode characters in a way that I can actually remember.  I 
>> think that this would add an easily remembered way for people to add 
>> combining characters to their documents.  Sometimes a slightly more verbose 
>> way to do something is helpful when it is more easily remembered.  
>> (Honestly, I can't remember the hex codes for any Unicode characters after 
>> you get out of the range that maps to plain ASCII
> I anyway uprgade this mechanism. First of all, the short commands will be 
> equivalents to more verbose ones.
> 
> \withgrave   {a} == \\`{a}
> \withacute   {a} == \\'{a}
> \withcircumflex  {a} == \\^{a}
> \withtilde   {a} == \\~{a}
> \withmacron  {a} == \\={a}
> \withbreve   {e} == \\u{e}
> \withdot {c} == \\.{c}
> \withdieresis{e} == \\"{e}
> \withring{u} == \\r{u}
> \withhungarumlaut{u} == \\H{u}
> \withcaron   {e} == \\v{e}
> \withcedilla {e} == \\c{e}
> \withogonek  {e} == \\k{e}
> 
> Did I miss one?
> 
> Then we can deprecate the short ones (keep them a low profile, with 
> permission to overload). After all, I don't expect someone who needs lots of 
> them to use these commands, so more verbose is better then. Aas I already 
> mentioned, in bib files they are treated differently already.
> 
> The low level helper is \chr, that can be used as
> 
> \chr {à} \chr {á} \chr {ä}
> \chr {`a} \chr {'a} \chr {"a}
> \chr {a acute} \chr {a grave} \chr {a umlaut}
> \chr {aacute}  \chr {agrave}  \chr {aumlaut}
> 
> (I can add more of the verbose, like {cyrillic a} if really needed. It means 
> that we can declare \eacute etc also depricated (these verbose names date 
> from \MKII, encoding neutral labels, utf handling, remapping to backend 
> encodings etc but we don't need that and I'm not sure if anyone ever used 
> those long names. Again, depricated, not removed (yet).)
> 
> Then there is the question what to do with \AE and \ij and such ... these 
> were used to enforce specific ligatures into a file assuming that f ont has 
> them but nowadays that's the job of a font handler (script language control). 
> We can keep them but assume them legacy. They normally don't belong in input. 
> (Being Dutch I actually never used \IJ or \ij).
> 
> Now, we can assume that when your languages needs characters with accents 
> that you use a font that has them. In MKIV and LMTX one can
> enable a checker
> 
> \enabletrackers[fonts.missing]
> \enabletrackers[fonts.missing=replace]
> \enabletrackers[fonts.missing=remove]
> 
> but in LMTX it's upgraded with more clever replacements (Jano will document 
> that + more about checking missing stuff in the wiki).
> 
> So, in LMTX we have more options (maybe I'll backport that to MKIV)
> 
> \checkmissingcharacters   \enabletrackers[fonts.missing]
> \removemissingcharacters  \enabletrackers[fonts.missing=remove]
> \replacemissingcharacters \enabletrackers[fonts.missing=replace]
> \handlemissingcharacters  \enabletrackers[fonts.missing={decompose,replace}]
> 
> the last one will inject decomposed characters into the list when font lacks 
> the real thing. The replacements visualize similar to MKIV but adapt to the 
> style.
> 
> Hans
> 
> (no upload yet)
> 
> -
>  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 

Re: [NTG-context] composing commands

2021-02-05 Thread Otared Kavian
On 5 Feb 2021, at 22:30, Hans Hagen  wrote:
> […]
> Is this ok for you?
> 
> tex error   > tex error on line 6 in file ./oeps.tex: Undefined control 
> sequence
> 
>  \v
> 
> 4
> 5 \starttext
> 6 >>  \v
> 7 \stoptext
> 8

In that case the error message could say 

tex error   > tex error on line 6 in file ./oeps.tex: Undefined control 
sequence: if you really mean it, then
tex error   > add \usemodule[oldschool] at the begiining of your file…

 \v
___
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] composing commands

2021-02-05 Thread Otared Kavian
Hi Hans,

I agree that nowadays most composed characters can be input directly from the 
keyboard (at least judging from my experience with MacOS), but nevertheless it 
may happen that one uses an old file used as an input source file (for instance 
extracting a math exercise from a database) in which there are old fashion 
composed characters. It would be hard to go back and replace those characters 
in each file.
Besides, with the traditional plain TeX composed characters something like

\"c

would give a correct result (the character c with a kind of umlaut on top of 
it), but this cannot be input from the keyboard (and maybe it does not exist at 
all in UTF…). (Actually I just tried \"c with LMTX and mkiv and it does not 
give what is expected from TeX… I am sure it did work some years ago :-) )

If, as you suggest, such composed characters maybe used at the cost of saying 
at the beginning of one's file:
\usemodule[oldschool]
then there is no real harm in removing composing commands, although I am not an 
enthusiastic supporter of removing them.

Best regards: Otared K.

> On 5 Feb 2021, at 17:38, Hans Hagen  wrote:
> 
> Hi,
> 
> As I'm going over the commands in lmtx, I wonder if we should keep
> 
> \c
> \d
> \k
> \r
> \u
> \v
> 
> \"
> \'
> \`
> \^
> 
> etc ... the ones that make 'composed characters'. I think that anyone who 
> needs them uses utf . They can be in (say) m-oldschool.mkxl or so.
> 
> Objections? Hurt feelings? Sentiments?
> 
> 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] code 139

2021-01-29 Thread Otared Kavian
Hi Thomas,

Out of curiosity I tested your MWE and I get 

mtx-context | fatal error: return code: 11

with LMTX (version 2021.01.28 18:22), while with mkiv it typesets correctly.

Best regards: Otared

> On 29 Jan 2021, at 14:42, Thomas A. Schmitz  
> wrote:
> 
> 
> On 1/29/21 12:56 PM, Hans Hagen wrote:
>> Hard to say (probably some mem/stack issue) ... you can add a \tracingall 
>> around the place where the last message to the console happens ... i need to 
>> know where it happens (or you can themn make a mwe of that bit).
> 
> OK, here's a minimal example. I defined this environment some years ago and 
> have no clue why I did it this particular way (there must have been a 
> reason), so don't ask me. But it gives the "return code: 139."
> 
> \define[1]\italianpoetry%
> {\framed[frame=off,offset=0pt,strut=no,width=10cm]{\framed[frame=off,strut=no,offset=0pt,width=fit,align=right]{\em
>  #1}}}
> 
> \starttext
> 
> \italianpoetry{
>   Morremo. Il velo indegno a terra sparto,
> }
> 
> \stoptext
> 
> 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://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] LMTX isn't typesetting math correctly with Pagella

2021-01-15 Thread Otared Kavian
Hi Jack,I tested your example both with Pagella and Lucida OT: indeed typesetting with the latest LMTX, with Pagella the math italic « f » runs into the right bar of « |f| ».However the result with mkiv is correct.I am attaching the PDF output with LMTX.Best regards: Otared

bar-distance-f.pdf
Description: Adobe PDF document
On 15 Jan 2021, at 13:33, Jack Hill  wrote:
  


  
  Hi,I've been having some trouble with ConTeXt not typesetting math
  correctly when using the Pagella font (I do not know if the same
  issue occurs with other fonts as I haven't tested them).If I compile with LMTX, the spacing between letters becomes very
  small so that when I type "|f|", for example, the second "|"
  intersects the f and looks rather ugly. However, compiling with
  the --luatex switch fixes these issues and the math looks nice
  again.Can anybody else replicate this issue, and does anybody know why
  it is happening?This the code I used to test:

\setupbodyfont[pagella]

\starttext
\startformula
|f| = \sqrt{\int_0^1 |f(t)|^2 \text{d}t}
\stopformula
\stoptext
Jack

  

___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-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : 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] Randomize order of blocks

2021-01-06 Thread Otared Kavian
Following up my previous message, here is an example:

%% begin shuffled list of exercises
\setuprandomize[2021]

\startluacode
function shuffle(tableau)
local maxsize, t, tt
maxsize = #tableau
tt = {}
t = {}
for i = 1, maxsize do
t[i] = {}
t[i]["columnOne"] = tableau[i]
t[i]["columnTwo"] = math.random(1,100*maxsize)
end
table.sort(t, function(a,b) return a.columnTwo < b.columnTwo 
end)
for i = 1, maxsize do
tt[i] = t[i]["columnOne"]
end
return tt
end
\stopluacode

% We define three arrays
% with the names, the functions and their derivatives
% One could also add a ListOfVariables...

\startluacode

ListOfNames = {
"f",
"g",
"h",
"u",
"v",
"F",
"G",
"H",
}

ListOfFunctions = {
"\\cos(x^2)",
"x\\sin(x)",
"\\tan(x)",
"x^3 - 3x^2 + 1",
"\\frac{1}{1 + x^2}",
"\\sin(\\log(x))",
}

ListOfDerivatives = {
"-2x\\sin(x^2)",
"x\\cos(x) + \\sin(x)",
"1 + \\tan(x)^2",
"3x^2 - 6x",
"\\frac{-2x}{(1 + x^2)^2}",
"\\frac{\\cos(\\log(x))}{x}",
}

\stopluacode

\starttext

% We define a buffer and a shuffled list of integers

\startbuffer[test-derivatives]
\startluacode
ShuffledList = shuffle({1,2,3,4,5,6})
\stopluacode

Let $\cldcontext{ListOfNames[ShuffledList[\recurselevel]]}(x) := 
\cldcontext{ListOfFunctions[ShuffledList[\recurselevel]]}$. Prove that
\startformula
\cldcontext{ListOfNames[ShuffledList[\recurselevel]]}'(x) = 
\cldcontext{ListOfDerivatives[ShuffledList[\recurselevel]]}
\stopformula
\stopbuffer

\dorecurse{6}{\blank[medium]{\bf Exercise #1.}
\getbuffer[test-derivatives]
}

\stoptext

%% end shuffled list of exercises


> On 6 Jan 2021, at 09:41, Otared Kavian  wrote:
> 
> Hi Jairo,
> 
> One can indeed make quizzes and exams with randomized order of problems, 
> randomized values and even randomized names of functions and variables.
> I have some examples which I have been using for several years (they are 
> useful especially in these days of giving exams online…): I can send them to 
> you as they are, or if you tell me what kind of problems you want, then I can 
> adapt my examples before sending them to you.
> 
> Best regards: Otared 
> 
>> On 5 Jan 2021, at 17:18, Jairo A. del Rio  wrote:
>> 
>> Hi, list.
>> 
>> Some time ago I realized ConTeXt has "blocks" which allow one to make 
>> quizzes, exams and related with ease. However, I want to know if there's an 
>> option to randomize their order when printed. Thank you in advance.
>> 
>> Jairo
>> ___
>> 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] Randomize order of blocks

2021-01-06 Thread Otared Kavian
Hi Jairo,

One can indeed make quizzes and exams with randomized order of problems, 
randomized values and even randomized names of functions and variables.
I have some examples which I have been using for several years (they are useful 
especially in these days of giving exams online…): I can send them to you as 
they are, or if you tell me what kind of problems you want, then I can adapt my 
examples before sending them to you.

Best regards: Otared 

> On 5 Jan 2021, at 17:18, Jairo A. del Rio  wrote:
> 
> Hi, list.
> 
> Some time ago I realized ConTeXt has "blocks" which allow one to make 
> quizzes, exams and related with ease. However, I want to know if there's an 
> option to randomize their order when printed. Thank you in advance.
> 
> Jairo
> ___
> 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] dutch calendars 3 months

2021-01-05 Thread Otared Kavian
Best wishes for the new year !

Talking of calendars, this one is even more compact: each year is shown on one 
page, and when changing the year only the three lines where the months are 
shown will change:

http://www.professores.im-uff.mat.br/hjbortol/c1p/?fbclid=IwAR3EkoYjcxA2MCkfWU8J-KqaEReMluNaQ1DPkDNM8dxtWEwnGZ0mXsvQ640

Best regards: Otared

> On 5 Jan 2021, at 11:46, luigi scarso  wrote:
> 
> I guess this is a challenge for Willi :
> a module to typeset "dutch calendars"
> as in 
> https://www.calendari.it/ 
> (I am not involved at all with the site, it's the first I have found )
> 
> I like the slim version, with 3 months, the saint(s) of the day, the moon 
> phases, the week number,
> the day from the beginning and to the end of the year 
> 
> 
> -- 
> luigi
> ___
> 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] Math align not working

2020-12-29 Thread Otared Kavian
Hi Johann,

The example you sent works fine here with LMTX version 2020.12.28 01:41.
Which version of ConTeXt are you using ?

Best regards: Otared

> On 29 Dec 2020, at 14:36, Johann Birnick  wrote:
> 
> Hi there,
> 
> I noticed that Math align is not working properly. In particular I mean the
> alignment. For example, the following code
> 
> 
> \starttext
>  
> 
> \startformula \startalign[m=2,distance=8em,n=5,
> align={right,middle,middle,middle,left}]
> \NC 0 \NC < \NC 2x + 5y \NC < \NC 10
> \NC 4 \NC < \NC 3x + y \NC < \NC 9 \NR
> \NC 3 \NC < \NC 2y + 3z \NC < \NC 15
> \NC 10\NC < \NC 8y + 5z \NC < \NC 20 \NR
> \stopalign \stopformula
> 
> \stoptext
> 
> 
> is copied from https://dl.contextgarden.net/myway/mathalign.pdf but doesn't
> produce the intended result.
> 
> What's wrong?
> 
> Best regards,
> Johann
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] Metafun: dotlabel issue in latest LMTX

2020-12-27 Thread Otared Kavian
Hi Hans,

The following (due to you and Aditya, discussed a few days ago) used to work 
with LMTX until version 2020-12-10, but it does not work anymore with LMTX 
version 2020-12-24 17:30. I wonder whether this is due to some changes you have 
made recently.

%% begin squaredot-test.tex
\startMPdefinitions
newpath mydotlabelshape ;
mydotlabelshape := fullcircle ;
mydotlabeldiam := 12 pt ;

vardef mydotlabel@#(expr s,z) text t_ =
label@#(s,z) t_ ;
fill (mydotlabelshape scaled 2mydotlabeldiam) shifted z t_;
enddef ;
\stopMPdefinitions

\starttext
\startMPcode
newpath p ; 
p := (2cm, 3cm) -- (3cm, 5cm);

mydotlabeldiam := 15pt;
mydotlabelshape := fullsquare ;

draw p ;

mydotlabel(textext("\switchtobodyfont[8pt]" & "A"), point 0 of p) 
withcolor transparent("exclusion",.5,red) ;
mydotlabel(textext("\switchtobodyfont[8pt]" & "B"), point 1 of p) 
withcolor transparent("exclusion",.5,red) ;

\stopMPcode
\stoptext
%% end squaredot-test.tex

I get an error message, which is obscure to me, saying:

%-- begin error message excerpt

metafun > log > error: Isolated expression
metafun > log >
metapost> log > 
metapost> log >  
metapost> log >;
metapost> log > <*> newpath mydotlabelshape ;
metafun > log >
metafun > log > I couldn't find an '=' or ':=' after the expression 
that is shown above this
error message, so I guess I'll just ignore it and carry on.
metafun > log >
metapost> log >   mydotlabelshape := 
fullcircle ; mydotlabeldiam := 12 pt ; vardef mydotlabel@##(expr s,z) text t_ = 
label@##(s,z) t_ ; fill (mydotlabelshape scaled 2mydotlabeldiam) shi...

%-- end error message excerpt

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


[NTG-context] freedotlabel not defined in LMTX ?

2020-12-26 Thread Otared Kavian
Hi Hans,

When I was testing your example with freelabel in another thread, I noticed 
that freedotlabel does not work in LMTX.
Here is the code from the Metafun manual which works with ConTeXt version 
2020.06.25 10:55 MKIV, but not with ConTeXt version 2020.12.24 17:30 LMTX.

%% begin freedotlabel.tex
\setupbodyfont[pagella]

\starttext

\startMPcode
pair destination ;
for whereto = "up", "down", "left", "right" :
destination := scantokens(whereto) * 1cm ;
freedotlabel(whereto, destination, origin) ;
drawarrow origin -- destination
withpen pencircle scaled .25mm withcolor .625 red ;
endfor ;
\stopMPcode

\stoptext
%% end freedotlabel.tex

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 / 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] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Otared Kavian
Hi Garulfo,

Thank you for sharing your nice example: it typesets correctly with mkiv, but 
it seems to me that with LMTX the text does not appear (at least on my 
installation of the latest LMTX).

Best regards: Otared

> On 24 Dec 2020, at 00:14, Garulfo  wrote:
> 
> Thanks Taco,
> 
> I made some progress :
> https://wiki.contextgarden.net/Talk:Cover_Pages
> 
> I now have two additional questions ... ;-)
> 
> - How can I deal with "space" characters (because current solution
>  requires to explicitly add the ~ character)
> 
> - What would be the work to do in order to make this mechanism directly
>  usable in metapost / metafun, within \startMPpage \stopMPpage,
>  - to avoid switching between \start\stopMPdrawing and TeX
>  - to have something like "draw followtext" in mp-blob.mpiv ?
> 
> 
> 
> %--
> 
> \setuppapersize  [A4]
> 
> %--
> 
> \def\MyFont{\definedfont[name:%
> texgyrepagellabold%
> %exo2black%
> %agaramondprobold%
> *default at 55pt]}
> 
> %--
> 
> \startluacode
> 
> function document.outlinepaths(character)
>local chardata  = fonts.hashes.characters[true] -- by unicode
>local shapedata = fonts.hashes.shapes[true] -- by index
>local c = chardata[character]
>if c and c.index and shapedata then
>local shapeglyphs = shapedata.glyphs or { }
>local glyph   = shapeglyphs[c.index]
>if glyph and (glyph.segments or glyph.sequence) then
>local units  = shapedata.units or 1000
>local factor = 100/units
>return fonts.metapost.paths(glyph,factor)
>end
>end
>return { }
> end
> 
> function document.defineoutline(char,target)
>local outlines = document.outlinepaths(char)
>local nofpaths = #outlines
>context("\\startMPdrawing") -- ADDED by garulfo
>context("path %s[] ;",target)
>context("numeric %sn ; %sn := %s ;",target,target,nofpaths)
>for i=1,nofpaths do
>context("%s[%i] := %s ; ",target,i,outlines[i])
>end
>context("\\stopMPdrawing")  -- ADDED by garulfo
> end
> 
> \stopluacode
> 
> %--
> 
> \def\mpdefineoutlines#1#2{\ctxlua{document.defineoutline(\number`#1,"#2")}}
> 
> %--
> 
> \def\EmptyLetters#1%
> {%
> \resetMPdrawing
> \MPtoks={}
> %
> \startMPdrawing
>  picture pic[], pictA ;
>  numeric wid[], len[], pos[], n ;
>  wid[0] := len[0] := pos[0] := n := 0 ;
>  numeric scaling;
>  path pictB , frame ;
>  pair shiftB ;
>  picture monImageA; monImageA := nullpicture;
>  picture monImageB; monImageB := nullpicture;
>  color colorframe;  colorframe := 0.6white;
> %
> \stopMPdrawing
> %
> \MyFont\handletokens#1\with\whatever
> %
> \startMPdrawing
>  frame :=  unitsquare
>  xscaled ( (xpart urcorner monImageB - xpart llcorner monImageB) + 
> 5mm )
>  yscaled ( (ypart urcorner monImageB - ypart llcorner monImageB) + 
> 5mm );
>  frame := frame shifted (center monImageB - center frame);
>  addto monImageB contour
>frame
>withpostscript "evenodd"
>withcolor transparent (1,1.,colorframe);
>  draw monImageB ;
>  draw monImageA ;
> \stopMPdrawing
> %
> \MPdrawingdonetrue
> \getMPdrawing}
> 
> %--
> 
> \def\whatever#1%
>  {\appendtoks#1\to\MPtoks
>   \setbox\MPbox=\hbox{\MyFont\the\MPtoks}%
>   %
>   \startMPdrawing
> n := n + 1 ; len[n] := \the\wd\MPbox ;
>   \stopMPdrawing
>   %
>   \mpdefineoutlines{M}{MaLettre}
>   %
>   \startMPdrawing
>   pictA := textext.drt("\MyFont M") ;
>   pictB := MaLettre[1];
>   scaling := bbheight pictA / bbheight pictB;
>   \stopMPdrawing
>   %
>   \doifinstringelse{~}{#1}{}{%HOW TO PROPERLY COPE WITH 
> SPACES ?
>   \mpdefineoutlines{#1}{MyGlyph}
>   %
>   \startMPdrawing
> string sb; sb := "i";
> pic[n] := textext.drt("\MyFont\setstrut\strut#1") ;
> %
> shiftB := - llcorner pic[n];
> pic[n] := pic[n] shifted shiftB ;
> %
> wid[n] := abs(xpart urcorner pic[n] - xpart llcorner pic[n]) ;
> pos[n] := len[n]-wid[n] ;
> %
> addto monImageB contour
>   ((MyGlyph[1] scaled scaling)
>   shifted ( (pos[n],0) +  shiftB))
>   withpostscript "collect";
> %
> if MyGlyphn > 1 :
>for ind=2 upto MyGlyphn :
>if (((xpart llcorner MyGlyph[ind]) > (xpart llcorner MyGlyph[1])) 
> and
>((ypart llcorner MyGlyph[ind]) > (ypart llcorner MyGlyph[1])) 
> and
>((xpart urcorner MyGlyph[ind]) < (xpart urcorner MyGlyph[1])) 
> and
>((ypart urcorner MyGlyph[ind]) < (ypart 

Re: [NTG-context] Problem with \Caps

2020-12-21 Thread Otared Kavian
Hi Joaquín,

Actually it depends on the font you are using, but on th eother hand it seems 
that \Caps is broken in LMTX.
The following gives a correct result in mkiv but results in an error in LMTX:

\setupbodyfont[lucidaot] 

\starttext

Test {\sc Test} {\Caps Test}

{\smallcaps Test}

\meaning\Caps

\stoptext

Best regards: Otared

> On 20 Dec 2020, at 18:59, Joaquín Ataz López  wrote:
> 
> 
> Good day to everyone. I have a problem that may be very simple to solve, but 
> for which I have not found an answer in the wiki.
> 
> Until relatively recently I was using the January 2020 version of ConTeXt 
> Standalone, recently I have updated it to the December 18th version, and when 
> I compile a file that I used to compile well, an error is generated because 
> the \Caps macro is not recognized.
> 
> I can't get the desired effect with \sc, it has to be with \Caps.
> 
> I have tried to compile it with LMTX but there too is considered that \Caps 
> is an undefined control sequence.
> 
> 
> -- 
> Joaquín Ataz López
> Derecho Civil
> Universidad de Murcia
> 
> ___
> 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] Title in enumeration not working?

2020-12-21 Thread Otared Kavian
Hi Mikael,

Indeed you are right about the fact that 

> \startexample[title={Title}]
> ...
> \stopexample

is more logical and also more convenient. 
Sorry for not having checked your example in mkiv, where this structure works 
as intended.
So it might be a small buglet in LMTX.

Best regards: Otared

> On 21 Dec 2020, at 14:06, Mikael Sundqvist  wrote:
> 
> Hi Otared,
> 
> Thank you for your suggestion. I would say yes and no.
> 
> I want the result one gets from what you write, but I prefer the syntax
> 
> \startexample[title={Title}]
> ...
> \stopexample
> 
> and that has been working before. Reading in setup-en.pdf, it also looks to 
> me as if that should work.
> 
> Best,
> 
> Mikael
> 
> On Mon, Dec 21, 2020 at 11:47 AM Otared Kavian  <mailto:ota...@gmail.com>> wrote:
> Hi Mickael,
> 
> Maybe this is what you want:
> 
> \defineenumeration[example]
> [text=Example,
> title=yes,
> titleleft=,
> titleright={.},
> ]
> 
> \starttext
> \startexample{Title} 
> This is a test.
> \stopexample
> \stoptext
> 
> Of course is you say
> text=,
> then you get only « Title » and a number in front of it.
> 
> Best regards: OK
> 
> > On 21 Dec 2020, at 11:05, Mikael Sundqvist  > <mailto:mic...@gmail.com>> wrote:
> > 
> > Hi,
> > 
> > Has anything changed with titles and enumerations? I expected a title 
> > "Title" with the following setup.
> > 
> > \defineenumeration[example][
> >   text=Example,
> >   title=yes,
> > ]
> > 
> > \starttext
> > \startexample[title={Title}]
> > This is a test.
> > \stopexample
> > \stoptext
> > 
> > But it does not show up.
> > 
> > /Mikael
> > 
> > 
> > ___
> > If your question is of interest to others as well, please add an entry to 
> > the Wiki!
> > 
> > maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
> > http://www.ntg.nl/mailman/listinfo/ntg-context 
> > <http://www.ntg.nl/mailman/listinfo/ntg-context>
> > webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
> > http://context.aanhet.net <http://context.aanhet.net/>
> > archive  : https://bitbucket.org/phg/context-mirror/commits/ 
> > <https://bitbucket.org/phg/context-mirror/commits/>
> > wiki : http://contextgarden.net <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 <mailto:ntg-context@ntg.nl> / 
> http://www.ntg.nl/mailman/listinfo/ntg-context 
> <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
> http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
> <https://bitbucket.org/phg/context-mirror/commits/>
> wiki : http://contextgarden.net <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] Title in enumeration not working?

2020-12-21 Thread Otared Kavian
Hi Mickael,

Maybe this is what you want:

\defineenumeration[example]
[text=Example,
title=yes,
titleleft=,
titleright={.},
]

\starttext
\startexample{Title} 
This is a test.
\stopexample
\stoptext

Of course is you say
text=,
then you get only « Title » and a number in front of it.

Best regards: OK

> On 21 Dec 2020, at 11:05, Mikael Sundqvist  wrote:
> 
> Hi,
> 
> Has anything changed with titles and enumerations? I expected a title "Title" 
> with the following setup.
> 
> \defineenumeration[example][
>   text=Example,
>   title=yes,
> ]
> 
> \starttext
> \startexample[title={Title}]
> This is a test.
> \stopexample
> \stoptext
> 
> But it does not show up.
> 
> /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
> ___

___
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] issue with link and margin in LMTX

2020-12-12 Thread Otared Kavian
Hi Pablo, 

I don't know which kind of problems you are having with your example, but it 
seems to me that I get the same result with mkiv and LMTX.

Best regards: Otared

> On 11 Dec 2020, at 19:00, Pablo Rodriguez  wrote:
> 
> Dear list,
> 
> I have the following sample:
> 
>  \setuppapersize[A9]
>  \setupinteraction[state=start]
>  \enabledirectives[references.border]
>  \unexpanded\def\MyURL#1%
>{\bgroup\goto{{\tt\hyphenatedurl{#1}}}[url(#1)]\egroup}
>  \starttext
>  \startitemize
>  \dorecurse{2}{\item \MyURL{a.b\\/c.d\letterhash e}}
>  \stopitemize
>  \stoptext
> 
> I’m afraid that the link has problems with margin in MkXL (MkIV doesn’t
> have any problems with it).
> 
> Could anyone confirm the issue?
> 
> 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
> ___

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

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


  1   2   3   4   5   6   7   8   9   10   >