Re: [NTG-context] Math Formula Alignment

2023-02-24 Thread Lutz Haseloff via ntg-context

Thank you Hans!

Alignment works again as expected and documented in the Wiki.

Greetings Lutz

Am 23.02.2023 um 14:53 schrieb Hans Hagen via ntg-context:

On 2/18/2023 3:04 PM, Mikael Sundqvist via ntg-context wrote:

Hi,

On Sat, Feb 18, 2023 at 3:01 PM Lutz Haseloff via ntg-context
 wrote:


Hi Hans, hi all,

the alignment of formulas seems broken:

\setuppapersize[A5]
\starttext
\setuplayout[textwidth=8cm]
\setupformulas[align=left]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=middle]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=right]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=left]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=middle]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=right]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\stoptext

All formulas are centered with ConTeXt ver: 2023.02.14 17:44 LMTX

Greetings Lutz


Indeed, but align=flushleft and align=flushright seems to work.

i'll add the aliases

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

___ 

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


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

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


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

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


Re: [NTG-context] Math Formula Alignment

2023-02-23 Thread Hans Hagen via ntg-context

On 2/18/2023 3:04 PM, Mikael Sundqvist via ntg-context wrote:

Hi,

On Sat, Feb 18, 2023 at 3:01 PM Lutz Haseloff via ntg-context
 wrote:


Hi Hans, hi all,

the alignment of formulas seems broken:

\setuppapersize[A5]
\starttext
\setuplayout[textwidth=8cm]
\setupformulas[align=left]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=middle]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=right]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=left]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=middle]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=right]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\stoptext

All formulas are centered with ConTeXt ver: 2023.02.14 17:44 LMTX

Greetings Lutz


Indeed, but align=flushleft and align=flushright seems to work.

i'll add the aliases

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

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

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


Re: [NTG-context] Math Formula Alignment

2023-02-18 Thread Mikael Sundqvist via ntg-context
Hi,

On Sat, Feb 18, 2023 at 3:01 PM Lutz Haseloff via ntg-context
 wrote:
>
> Hi Hans, hi all,
>
> the alignment of formulas seems broken:
>
> \setuppapersize[A5]
> \starttext
> \setuplayout[textwidth=8cm]
> \setupformulas[align=left]
> \startformula c^2 = a^2 + b^2 \stopformula
> \setupformulas[align=middle]
> \startformula c^2 = a^2 + b^2 \stopformula
> \setupformulas[align=right]
> \startformula c^2 = a^2 + b^2 \stopformula
> \setupformulas[align=left]
> \placeformula \startformula c^2 = a^2 + b^2 \stopformula
> \setupformulas[align=middle]
> \placeformula \startformula c^2 = a^2 + b^2 \stopformula
> \setupformulas[align=right]
> \placeformula \startformula c^2 = a^2 + b^2 \stopformula
> \stoptext
>
> All formulas are centered with ConTeXt ver: 2023.02.14 17:44 LMTX
>
> Greetings Lutz

Indeed, but align=flushleft and align=flushright seems to work.

/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] Math Formula Alignment

2023-02-18 Thread Lutz Haseloff via ntg-context


 
 
   
   
Hi Hans, hi all,

   
 

   
the alignment of formulas seems broken:

   
 

   
\setuppapersize[A5]
\starttext
\setuplayout[textwidth=8cm]
\setupformulas[align=left]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=middle]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=right]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=left]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=middle]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=right]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\stoptext

   
 

   
All formulas are centered with ConTeXt ver: 2023.02.14 17:44 LMTX

   
 

   
Greetings Lutz

   
 

___
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] Math issue

2023-02-18 Thread Willi Egger via ntg-context
Hello Hans and Anditya,

thank you both for your answers. — Reconstructing now the math…

Kind regards

Willi

> On 16 Feb 2023, at 18:12, Aditya Mahajan via ntg-context  
> wrote:
> 
> On 2/16/2023 6:05 PM, Willi Egger via ntg-context wrote:
>> Hi math gurus,
>> I should typeset a couple of simple math formulae. However I do not get the 
>> desired result. I attach my output as pdf.
>> 1. Why is the \times 12 in the denominator although the fraction is grouped? 
>> — I tried also the grouping with bracis, which gives the same result.
>> 2. Why is the result after the equalsign in the denominator?
>> \starttext
>> \startformulas
>>  \startformula
>>\bgroup{47 \times 62}\over {44 \times 56}\egroup \times {12}
>>  \stopformula
>>  \startformula
>>{{47 \times 62 \times 12} \over {44 \times 56}}=14.2\ \rm kilo
>>  \stopformula
>> \stopformulas
>> \stoptext
>> Thank you for hinting me how to this correctly.
> 
> \frac{...}{...} .. forget about \over
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] Math issue

2023-02-16 Thread Aditya Mahajan via ntg-context
On Thu, 16 Feb 2023, Willi Egger via ntg-context wrote:

> Hi math gurus,
> 
> I should typeset a couple of simple math formulae. However I do not get the 
> desired result. I attach my output as pdf.
> 
> 1. Why is the \times 12 in the denominator although the fraction is grouped? 
> — I tried also the grouping with bracis, which gives the same result.
> 2. Why is the result after the equalsign in the denominator?
> 
> [...]

> Thank you for hinting me how to this correctly.

Have you tried using \frac{...}{...} instead of {... \over ...}

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

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


Re: [NTG-context] Math issue

2023-02-16 Thread Hans Hagen via ntg-context

On 2/16/2023 6:05 PM, Willi Egger via ntg-context wrote:

Hi math gurus,

I should typeset a couple of simple math formulae. However I do not get the 
desired result. I attach my output as pdf.

1. Why is the \times 12 in the denominator although the fraction is grouped? — 
I tried also the grouping with bracis, which gives the same result.
2. Why is the result after the equalsign in the denominator?


\starttext
\startformulas
\startformula
  \bgroup{47 \times 62}\over {44 \times 56}\egroup \times {12}
\stopformula
\startformula
  {{47 \times 62 \times 12} \over {44 \times 56}}=14.2\ \rm kilo
\stopformula

\stopformulas
\stoptext

Thank you for hinting me how to this correctly.


\frac{...}{...} .. forget about \over

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

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

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


[NTG-context] Math issue

2023-02-16 Thread Willi Egger via ntg-context
Hi math gurus,

I should typeset a couple of simple math formulae. However I do not get the 
desired result. I attach my output as pdf.

1. Why is the \times 12 in the denominator although the fraction is grouped? — 
I tried also the grouping with bracis, which gives the same result.
2. Why is the result after the equalsign in the denominator?


\starttext
\startformulas
\startformula
  \bgroup{47 \times 62}\over {44 \times 56}\egroup \times {12}
\stopformula
\startformula
  {{47 \times 62 \times 12} \over {44 \times 56}}=14.2\ \rm kilo 
\stopformula

\stopformulas
\stoptext

Thank you for hinting me how to this correctly.
Kind regards

Willi


test.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 / 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] Math bug (maybe) - prime

2022-12-28 Thread Alan Braslau via ntg-context
On Wed, 28 Dec 2022 08:26:24 +0100
Mikael Sundqvist via ntg-context  wrote:

> Note that the 2 sits higher in
> 
> \primed{a}^2
> 
> than it does in
> 
> (a')^2.
> 
> For readability, I really prefer the version with parentheses.

Certain Mathematical writing styles seek to minimize the use of
parenthesis ...

Now, the question is whether a prime is considered an exponent or
rather some sort of accent? One can ask the same question considering
other modifiers such as asterisk/star or even $\hat{a}$. Sometimes,
these can symbolize operators, in other cases they may indicate a
variant (as does prime).

I suspect that Context is currently treating $\primed{a}^2$ as
${a^{\prime}}^2$ (although, maybe the 2 is not made smaller?).

Aesthetically, should $x^2$ and $\hat{x}^2$ display any difference in
the placement of the exponent?

Alan

P.S. As a challenge, consider the following:
\chemical{^{14}_6C^*}
(a chiral carbon-14 atom).
___
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] Math bug (maybe) - prime

2022-12-27 Thread Mikael Sundqvist via ntg-context
On Wed, Dec 28, 2022 at 5:58 AM Alan Braslau via ntg-context
 wrote:
>
> On Wed, 28 Dec 2022 00:27:39 +0100
> Hans Hagen via ntg-context  wrote:
>
> > What you can do is:
> >
> > $\primed{a}^2$
> >
> > which basically makes the prime an operation .. a small price to pay
> > for more robust handling of primes (also across fonts)
>
> I anticipated that (unicode) prime is a pain to handle, given that
> different fonts present it differently.
>
> $\primed{a}...$ is a very readable and reasonable solution (unlike
> \mathord{}, which seems to be a messy fix). I will learn and use that.
>
> Thank you!
>
> Alan
>
> P.S. inverting the order of the "exponents", if prime is some sort of
> exponent, was a surprising result.

Alan,

Note that the 2 sits higher in

\primed{a}^2

than it does in

(a')^2.

For readability, I really prefer the version with parentheses.

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

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


Re: [NTG-context] Math bug (maybe) - prime

2022-12-27 Thread Alan Braslau via ntg-context
On Wed, 28 Dec 2022 00:27:39 +0100
Hans Hagen via ntg-context  wrote:

> What you can do is:
> 
> $\primed{a}^2$
> 
> which basically makes the prime an operation .. a small price to pay
> for more robust handling of primes (also across fonts)

I anticipated that (unicode) prime is a pain to handle, given that
different fonts present it differently.

$\primed{a}...$ is a very readable and reasonable solution (unlike
\mathord{}, which seems to be a messy fix). I will learn and use that.

Thank you!

Alan 

P.S. inverting the order of the "exponents", if prime is some sort of
exponent, was a surprising result.
___
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] Math bug (maybe) - prime

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

On 12/27/2022 6:33 PM, Alan Braslau via ntg-context wrote:

MWE:

\starttext

$a^2′$

$a′^2$

$\mathord{a′}^2$

$a^*^2$

\stoptext


Should the \mathord{} be necessary to get the desired result?
(I would expect the second line to work, just like $a^*^2$.)

primes are kind of special and a pain in tex

- traditional tex sees them as superscripts and therefore expects soem 
active character and parsing magick for successive scripts
- that assumes a special way of havign these primes in the font (read: 
is it a text size thing already raised or a script one not yet raised)
- it also sort of spoils spacing (as one can end up with an empty 
nucleus inserted)

- in mkiv we use different magick than in mkii

anyway, in lmtx (luametatex) primes have been promoted to first class 
citizens which means that a nucleus can have


- super(post)script
- sub(post)script
- superprescript
- subprescript
- prime

and each comes with spacing and positioning properties cf opentype and 
our own additions for the pre/prime)


there is some magick wrt subscripts as these often are indices (which is 
why we have for instance ^^^ and ___ too)


What you can do is:

$\primed{a}^2$

which basically makes the prime an operation .. a small price to pay for 
more robust handling of primes (also across fonts)


Hans

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

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

maillist : ntg-context@ntg.nl / 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] Math bug (maybe) - prime

2022-12-27 Thread Alan Braslau via ntg-context
MWE:

\starttext

$a^2′$

$a′^2$

$\mathord{a′}^2$

$a^*^2$

\stoptext


Should the \mathord{} be necessary to get the desired result?
(I would expect the second line to work, just like $a^*^2$.)

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

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


Re: [NTG-context] Math alignment question

2022-09-24 Thread Jeong Dal via ntg-context
Dear Hans,


>> Thank you for your explanation.
>> I just wonder \alinghere can be applicable to multiple formula.
>> It is OK to use \NC \NR for multiple formulas.
> What probably can be done, is to let the next formula start with the align of 
> the previous one .. Mikael can add it to our todo
> 

Thank you for your concern.
When we write  two long formula, I think that to use "\alignhere, \breakhere" 
is a little bit simpler than use \NC\NR.
We may write them to use \startformula…\stopformula twice separetely. 
But, then the alignment of two formulas may be different because formula’s 
alignment is midaligned. 

Thanks again to add it todo list.

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
___


Re: [NTG-context] Math alignment question

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

On 9/24/2022 4:51 PM, Jeong Dal via ntg-context wrote:

Dear Aditya, Mikael,

Thank you for your explanation.
I just wonder \alinghere can be applicable to multiple formula.
It is OK to use \NC \NR for multiple formulas.
What probably can be done, is to let the next formula start with the 
align of the previous one .. Mikael can add it to our todo


Hans

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

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


Re: [NTG-context] Math alignment question

2022-09-24 Thread Jeong Dal via ntg-context
Dear Aditya, Mikael,

Thank you for your explanation.
I just wonder \alinghere can be applicable to multiple formula.
It is OK to use \NC \NR for multiple formulas.

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
___


Re: [NTG-context] Math alignment question

2022-09-23 Thread Mikael Sundqvist via ntg-context
On Fri, Sep 23, 2022 at 8:46 PM Aditya Mahajan via ntg-context
 wrote:
>
> On Thu, 22 Sep 2022, Jeong Dal via ntg-context wrote:
>
> > Dear Mikael and Hans,
> >
> > Recently, you introdued the new command “\alignhere, \breakhere, \skiphere” 
> > which works fine.
> >
> > Since I usually use the following code that is adopted from My 
> > Way(Mathalign.pdf), I’d like to know that there is a way to use 
> > “\alignhere, \breakhere, \skiphere”  for the case below?
> >
> > \startformula\startalign
> > \NC A \NC = 3 \NR
> > \NC B \NC = 5 \NR
> > \stopalign\stopformula
>
> The way I see it is that the current implementation is that it is way to 
> break a _single_ long equation to multiple lines. For multiple equations, you 
> still need to use the \startalign method.
>

Indeed, that is the case. These formulas are done for single chain
equations. The example given above consists of two formulas, and the
new broken formula type simply does not fit. You can play with more
than one \alignhere, but they will only set new align points. I think
\startalign ... \stopalign is the way to go there. If it is cumbersome
to type all the \NC and \NR one could in principle thing of similar
input as for the simple matrices. Your example then would become

\startalign
A, = 3;
B, = 5;
\stopalign

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

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


Re: [NTG-context] Math alignment question

2022-09-23 Thread Aditya Mahajan via ntg-context
On Thu, 22 Sep 2022, Jeong Dal via ntg-context wrote:

> Dear Mikael and Hans,
> 
> Recently, you introdued the new command “\alignhere, \breakhere, \skiphere” 
> which works fine.
> 
> Since I usually use the following code that is adopted from My 
> Way(Mathalign.pdf), I’d like to know that there is a way to use “\alignhere, 
> \breakhere, \skiphere”  for the case below?
> 
> \startformula\startalign
> \NC A \NC = 3 \NR
> \NC B \NC = 5 \NR
> \stopalign\stopformula

The way I see it is that the current implementation is that it is way to break 
a _single_ long equation to multiple lines. For multiple equations, you still 
need to use the \startalign method.

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

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


Re: [NTG-context] Math alignment problem

2022-09-22 Thread Jan-Erik Hägglöf via ntg-context
That was the solution, it worked!

Thank you so much!

/Jan-Erik

> 22 sep. 2022 kl. 14:54 skrev Alexandre Christe via ntg-context 
> :
> 
> Hi Jan-Erik,
> 
> One way I came across searching the mailing list is the following:
> 
> \starttext
> 
> \startitemize [a,columns,joinedup] [n=3,grid=line]
> \item $ 56 + 2 \cdot 3 $
> \item $ 5-(7) $
> \item $ \frac{21}{7} $
> \stopitemize
> 
> \stoptext
> 
> Could be that there is a better way.
> 
> Le jeu. 22 sept. 2022 à 12:57, Jan-Erik Hägglöf via ntg-context 
> mailto:ntg-context@ntg.nl>> a écrit :
> Dear List!
> 
> I do not know how to solve this issue.
> 
> I want the formulas appear on same height, as you can se on the attachment 
> the formula containing a fraction displaces on another vertical position 
> compared to the other equations.
> 
> How do I correct this?
> 
> Code snippet pasted from garden
> 
> \starttext
> 
> \startitemize[a,columns,three]
> \item $ 56 + 2 \cdot 3 $
> \item $ 5-(7) $
> \item $ \frac{21}{7} $
> \stopitemize
> 
> \stoptext
> 
> 
> Thanks in advance
> 
> Jan-Erik
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl  / 
> https://www.ntg.nl/mailman/listinfo/ntg-context 
> 
> webpage  : https://www.pragma-ade.nl  / 
> http://context.aanhet.net 
> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
> 
> wiki : https://contextgarden.net 
> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl  / 
> https://www.ntg.nl/mailman/listinfo/ntg-context 
> 
> webpage  : https://www.pragma-ade.nl  / 
> http://context.aanhet.net 
> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
> 
> wiki : https://contextgarden.net 
> ___

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

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


[NTG-context] Math alignment question

2022-09-22 Thread Jeong Dal via ntg-context
Dear Mikael and Hans,

Recently, you introdued the new command “\alignhere, \breakhere, \skiphere” 
which works fine.

Since I usually use the following code that is adopted from My 
Way(Mathalign.pdf), I’d like to know that there is a way to use “\alignhere, 
\breakhere, \skiphere”  for the case below?

\startformula\startalign
\NC A \NC = 3   \NR
\NC B \NC = 5 \NR
\stopalign\stopformula

Thank you.
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
___


Re: [NTG-context] Math alignment problem

2022-09-22 Thread Alexandre Christe via ntg-context
Hi Jan-Erik,

One way I came across searching the mailing list is the following:

\starttext

\startitemize [a,columns,joinedup] [n=3,grid=line]
\item $ 56 + 2 \cdot 3 $
\item $ 5-(7) $
\item $ \frac{21}{7} $
\stopitemize

\stoptext

Could be that there is a *better* way.

Le jeu. 22 sept. 2022 à 12:57, Jan-Erik Hägglöf via ntg-context <
ntg-context@ntg.nl> a écrit :

> Dear List!
>
> I do not know how to solve this issue.
>
> I want the formulas appear on same height, as you can se on the attachment
> the formula containing a fraction displaces on another vertical position
> compared to the other equations.
>
> How do I correct this?
>
> Code snippet pasted from garden
>
> \starttext
>
> \startitemize[a,columns,three]
> \item $ 56 + 2 \cdot 3 $
> \item $ 5-(7) $
> \item $ \frac{21}{7} $
> \stopitemize
>
> \stoptext
>
>
> Thanks in advance
>
> Jan-Erik
>
> ___
> 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] Math alignment problem

2022-09-22 Thread Jan-Erik Hägglöf via ntg-context
Dear List!I do not know how to solve this issue.I want the formulas appear on same height, as you can se on the attachment the formula containing a fraction displaces on another vertical position compared to the other equations.How do I correct this?Code snippet pasted from garden\starttext\startitemize[a,columns,three]\item $ 56 + 2 \cdot 3 $\item $ 5-(7) $\item $ \frac{21}{7} $\stopitemize\stoptextThanks in advanceJan-Erik

result.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 / 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] math symbols

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

Hi,

We're curious what math symbols users actually use. There are for 
instance all kind of variations on '<' and '>' and the quesiton is: how 
should we group them and are they used differently in different contexts.


Traditionally tex sort of groups according to spacing related classes 
but we are (1) mor egranular than that and (2) like to organize symbols 
(and related commands) into meaning related groups.


The fact that for instance mathml and openmath only groups a small 
selection is kind of puzzling because it means that only a handful is 
considered useful while on the other han dwe have plenty in unicode and 
fonts (of course multiple usage and overloads complicate matters).


We'd like to sort out some of the mess that the tex community 
accumulated over decades and are not that bound to conventions, more to 
a well organized whole,


Hans


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

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


Re: [NTG-context] Math functions not typeset inside MetaPost

2022-04-19 Thread śrīrāma via ntg-context
On 4/19/22 8:22 PM Mikael Sundqvist via ntg-context wrote:
> Thanks, this will be fixed in the next upload (that will take place
> soon as far as I've heard).

Thanks very much for the quick reply. Yes: it is fixed in the latest upload 
just now.

Thanks,
  Sreeram


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

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


Re: [NTG-context] Math functions not typeset inside MetaPost

2022-04-19 Thread Mikael Sundqvist via ntg-context
On Tue, Apr 19, 2022 at 3:59 PM śrīrāma via ntg-context
 wrote:
>
> Hi Hans,
>
> [I am sending this again since the previous mails regarding were sent during
> the weekend].
>
> I am on the most recent upload of LMTX [2022.04.15 20:20]. However, when I try
> to use math functions inside MetaPost strings, the function is not typeset
> correctly. Please consider the following MWE:
>
>   \starttext
> \startMPcode
> draw textext("\m{\max_i x_i}");
> \stopMPcode
>   \stoptext
>
> which produces the output attached here as an image. Instead of the mfunction
> maxᵢ xᵢ
> some form of the string mathfunctionhandlelabel is typeset.
>
> I tried to inspect \math_function_handle_label [math-ini] and also mp-mlib and
> mlib-pps but could not figure out what is going wrong. I wonder if there is a
> backslash missing somewhere. I am a little worried since I use MetaFun in
> conjunction with maths and could not figure out what the issue is.
>
> Please see the original post by Dalyoung here:
>   https://mailman.ntg.nl/pipermail/ntg-context/2022/105462.html
>
> Please advise.
>
> Thank you,
>   
> Sreeram___

Thanks, this will be fixed in the next upload (that will take place
soon as far as I've heard).

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

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


[NTG-context] Math functions not typeset inside MetaPost

2022-04-19 Thread śrīrāma via ntg-context
Hi Hans,

[I am sending this again since the previous mails regarding were sent during 
the weekend].

I am on the most recent upload of LMTX [2022.04.15 20:20]. However, when I try 
to use math functions inside MetaPost strings, the function is not typeset 
correctly. Please consider the following MWE:

  \starttext
\startMPcode
draw textext("\m{\max_i x_i}");
\stopMPcode
  \stoptext

which produces the output attached here as an image. Instead of the mfunction 
maxᵢ xᵢ 
some form of the string mathfunctionhandlelabel is typeset.

I tried to inspect \math_function_handle_label [math-ini] and also mp-mlib and 
mlib-pps but could not figure out what is going wrong. I wonder if there is a 
backslash missing somewhere. I am a little worried since I use MetaFun in 
conjunction with maths and could not figure out what the issue is.

Please see the original post by Dalyoung here:
  https://mailman.ntg.nl/pipermail/ntg-context/2022/105462.html

Please advise.

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

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


Re: [NTG-context] Math prime issues for some fonts

2021-11-29 Thread Jack Hill via ntg-context
On Fri, 26 Nov 2021 at 11:28, Hans Hagen  wrote:
> So to summarize: with primes we have to deal with (1) frozen tex math
> expectations that won't change (although in context we're free to do
> so), which (2) have found their way in unicode, and (3) also in fonts
> due to the way traditional tex does it, and (4) with which we cannot
> deal with in the engine, so (5) we do it our own contexty way, in the
> hope that (6) in the end it all looks good and (7) also gives us some of
> the benefits that i don't even dare to bring up here in order not to
> make it sound more complex.

Thank you for the explanation. It's always interesting to hear about what
goes on under the hood.

> As a note: if you notice suboptional things in math fonts, don't
> hesitate to make a good minimal example and then ask Mikael to look into
> is because he deals with and coordinates the tuning of goodie files.

I have noticed that the top bar of square root signs don't seem to connect
properly with the angled part. This is visible with multiple fonts (some
make it more obvious than others) at various zoom levels (I'm using Okular
on Linux but other pdf viewers show the same - also on Windows). I've no
idea if this is visible in print since I don't print the pdfs. The effect
is also reproducible with the wiki version of context.

\starttext

\starttabulate[|l|c|]
\FL
\BC Font name  \BC Math sqrt   \NR
\ML
\NC Latin Modern Roman \NC\m{\sqrt{x}} \NR
\NC TeX Gyre Termes\NC \switchtobodyfont[termes]  \m{\sqrt{x}} \NR
\NC TeX Gyre Pagella   \NC \switchtobodyfont[pagella] \m{\sqrt{x}} \NR
\NC TeX Gyre Bonum \NC \switchtobodyfont[bonum]   \m{\sqrt{x}} \NR
\NC TeX Gyre Schola\NC \switchtobodyfont[schola]  \m{\sqrt{x}} \NR
\NC STIX Two   \NC \switchtobodyfont[stixtwo] \m{\sqrt{x}} \NR
\BL
\stoptabulate

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

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


Re: [NTG-context] Math prime issues for some fonts

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

On 11/26/2021 10:05 PM, Mikael Sundqvist via ntg-context wrote:

Hi Jack,

I've been working with Hans on math in general and primes in
particular in the last week. I do not understand all the details, but
I think primes are handled differently now, and that one essentially
need to have some tuning in goodie files (the reason is that they are
done differently in different fonts, and that there was not simple
one-fits-all solution). We have not touched eulernova yet.

It's not easy to explain in a few sentences so here we go.

In unicode, math is a script. There are plenty scripts supported and 
unicode supports their properties. Unicode tries to avoid duplicates 
but we have an latin A and a greek A, and we have plenty of nukta in 
indic scripts even if the shapes are the same. In math however, for some 
reason, we have ended up with some math code points being shared. So, we 
don't have a small italic h (because every italic h is supposed to be 
plank constant) and we don't have primes because minutes are primes. 
Maybe today some strong arguing could avoid those anomalities but i fear 
that we're stuck with it forever now (math legacy stuff etc).


This results of for instance holes in math alphabets (less such holes in 
other scripts) that every application has to deal with and we end up 
with symbols that depending on their usage need some interpretation and 
handling. Btw, a side effect is that where an one can distinguish 
between f as variable or function by using an indicator this is not 
possible with h so in copy/paste or interpretation one has to guess what 
it is. The same is true for prime like symbols: are they minutes or primes.


So, as the unicode slot for a prime is used for minutes (in text) the 
symbols in a font ends up as superscript but in math text mode it would 
not be in the right spot. Keep in mind that we have specific math fonts 
so ther ei sno real reason for not making primes consistent in text, 
script and scriptscript (ssty features): it simply is not done which in 
turn is probably a side effect of cmr being uses as template even if for 
other properties cmr fundamentally differs from open type math fonts.


Anyway, in the traditional tex approach to primes, the prime symbol is 
taken from the script variant, where is has a different size (or not), 
different boundingbox (or not) and/or is already raised (or not). Also, 
in tex the ' is made into an "active in math mode" character (one of 
few, an dit might even be that the reason for active math characters is 
in primes) in order to ease input. It effectively being a macro means 
that it can do some lookahead in order to (1) position itself as well as 
(2) make it possible to be followed by a superscript and/or subscript.


And, because the way math is coded and dealt with in tex basically has 
been chisseled in stone early after tex showed up, that situation is 
supposed to be dealt with: a multi-purpose shape with somewhat weird 
properties, parsing preferably in a robust way, positioning in a 
superscript like position (before or after a script), i fpossible 
intercepting interference etc. And ... all that is resembled in unicode 
math as well as all these math fonts out there.


But it is not the way i want to deal with it in context, also because 
there is even more involved (which i happily let you guess about). I 
want clean solution with no fancy (and somewhat obscure) tex macro doing 
magic that only a few are supposed to understand.


When we started with luatex, and thereby mkiv, we immediately went full 
unicode math (also with old fonts) and primes (plus a few other things) 
were a pain in the butt from the start due to fonts. For more than a 
decade I tried to catch this automagically by runtime patching and that 
works ok for most fonts but as recently more opentype math fonts showed 
up, some actually more opentypish than what we had, the decision was 
made to delegate this to the goodies mechanism than Mikael refers to. It 
means that we can control individual fonts (and users can patch that 
themselves if needed) because in the end, as always with fonts, scripts, 
languages and probably most of tex, heuristics tend to fail and clash.


It means that, as Wolfgang explained, you need to specify a goodie file 
with \definefontfamily (could be your own copy with personal 
preferences). Just for the record, some more is done on goodies and some 
more runtime patching might move that goodie control. It actually does 
mean that when a font (if ever) gets updated we need to check things 
which is why a mismatch in version will be reported on your console. 
Among the things we still need to discuss are if we wil freeze fonts in 
the distribution (only explicit updates) and if we drop official support 
for obsolete or (just) bad (looking) math fonts.


So to summarize: with primes we have to deal with (1) frozen tex math 
expectations that won't change (although in context we're free to do 
so), which (2) have 

Re: [NTG-context] Math prime issues for some fonts

2021-11-27 Thread Wolfgang Schuster via ntg-context

Jack Hill schrieb am 26.11.2021 um 19:53:

On Fri, 26 Nov 2021 at 17:39, Wolfgang Schuster
 wrote:

Jack Hill via ntg-context schrieb am 26.11.2021 um 18:18:

Hi list,

When I run this test code

[...]

on my machine, the prime symbols are being placed too high (except for
latin modern which is normal).
Running the same code on the wiki gives the correct output though.
Does anyone else get the same output? Screenshot attached.

Use \definetypeface to load/set the math fonts.

\starttext

\starttabulate[|l|c|]
\FL
\BC Font name  \BC Math prime\NC\NR
\ML
\NC Latin Modern Roman \NC\m{x'} \NC\NR
\NC TeX Gyre Termes\NC \switchtobodyfont[termes]  \m{x'} \NC\NR
\NC TeX Gyre Pagella   \NC \switchtobodyfont[pagella] \m{x'} \NC\NR
\NC TeX Gyre Bonum \NC \switchtobodyfont[bonum]   \m{x'} \NC\NR
\NC TeX Gyre Schola\NC \switchtobodyfont[schola]  \m{x'} \NC\NR
\NC STIX Two   \NC \switchtobodyfont[stixtwo] \m{x'} \NC\NR
\BL
\stoptabulate

\stoptext

Wolfgang

Thanks, \definetypeface fixes it. Should I not be using \definefontfamily?
I've just checked eulernova and the prime is still too high for this font.

\switchtobodyfont[eulernova]
\starttext
\m{x'}
\stoptext


To set the math font \definetypeface is the better choice because 
ConTeXt loads patches for most math fonts to improve the spacing for 
primes etc.


You can use \definefontfamily to set the math font but then you have to 
load these patches yourself (\definefontfamily [...] [...] [...] 
[extras=...,goodies=...]). For a few fonts these patches are loaded 
automatically but the system is not always up to date.


What I suggest is to use \definefontfamily to select your text fonts 
(serif, sans and mono) in combination with \definetypeface for the math 
font. One reason where \definefontfamily is the better choice for the 
math font is when you try to use fallbacks for the math font (e.g. to 
have sans serif letters in math mode).


Wolfgang



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

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


Re: [NTG-context] Math prime issues for some fonts

2021-11-26 Thread Mikael Sundqvist via ntg-context
Hi Jack,

I've been working with Hans on math in general and primes in
particular in the last week. I do not understand all the details, but
I think primes are handled differently now, and that one essentially
need to have some tuning in goodie files (the reason is that they are
done differently in different fonts, and that there was not simple
one-fits-all solution). We have not touched eulernova yet.

In any case, if you replace euler-math.lfg and type-imp-euler.mkiv in
ConTeXt-lmtx/tex/texmf-context/tex/context/fonts/mkiv/ with the
attached files, I think at least the primes should look OK (you could
experiment with the values in euler-math.lfg). The sample file

\setupbodyfont[eulernova]

\starttext
\m{x'(t)f'(x)f''(x)e^{f'(x)}}
\stoptext

looks OK here.

/Mikael

On Fri, Nov 26, 2021 at 7:54 PM Jack Hill via ntg-context
 wrote:
>
> On Fri, 26 Nov 2021 at 17:39, Wolfgang Schuster
>  wrote:
> >
> > Jack Hill via ntg-context schrieb am 26.11.2021 um 18:18:
> > > Hi list,
> > >
> > > When I run this test code
> > >
> > > \definefontfamily[trm][math][tex gyre termes math]
> > > \definefontfamily[pag][math][tex gyre pagella math]
> > > \definefontfamily[bon][math][tex gyre bonum math]
> > > \definefontfamily[sch][math][tex gyre schola math]
> > > \definefontfamily[stx][math][stix two math]
> > > \starttext
> > > \starttabulate[|c|c|]
> > > \FL
> > > \NC \bf Font name \NC \bf Math prime \NR
> > > \ML
> > > \NC Latin modern \NC \m{x'} \NR
> > > \NC Termes \NC \switchtobodyfont[trm] \m{x'} \NR
> > > \NC Pagella \NC \switchtobodyfont[pag] \m{x'} \NR
> > > \NC Bonum \NC \switchtobodyfont[bon] \m{x'} \NR
> > > \NC Schola \NC \switchtobodyfont[sch] \m{x'} \NR
> > > \NC Stix \NC \switchtobodyfont[stx] \m{x'} \NR
> > > \BL
> > > \stoptabulate
> > > \stoptext
> > >
> > > on my machine, the prime symbols are being placed too high (except for
> > > latin modern which is normal).
> > > Running the same code on the wiki gives the correct output though.
> > > Does anyone else get the same output? Screenshot attached.
> >
> > Use \definetypeface to load/set the math fonts.
> >
> > \starttext
> >
> > \starttabulate[|l|c|]
> > \FL
> > \BC Font name  \BC Math prime\NC\NR
> > \ML
> > \NC Latin Modern Roman \NC\m{x'} \NC\NR
> > \NC TeX Gyre Termes\NC \switchtobodyfont[termes]  \m{x'} \NC\NR
> > \NC TeX Gyre Pagella   \NC \switchtobodyfont[pagella] \m{x'} \NC\NR
> > \NC TeX Gyre Bonum \NC \switchtobodyfont[bonum]   \m{x'} \NC\NR
> > \NC TeX Gyre Schola\NC \switchtobodyfont[schola]  \m{x'} \NC\NR
> > \NC STIX Two   \NC \switchtobodyfont[stixtwo] \m{x'} \NC\NR
> > \BL
> > \stoptabulate
> >
> > \stoptext
> >
> > Wolfgang
>
> Thanks, \definetypeface fixes it. Should I not be using \definefontfamily?
> I've just checked eulernova and the prime is still too high for this font.
>
> \switchtobodyfont[eulernova]
> \starttext
> \m{x'}
> \stoptext
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___


euler-math.lfg
Description: Binary data


type-imp-euler.mkiv
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] Math prime issues for some fonts

2021-11-26 Thread Jack Hill via ntg-context
On Fri, 26 Nov 2021 at 17:39, Wolfgang Schuster
 wrote:
>
> Jack Hill via ntg-context schrieb am 26.11.2021 um 18:18:
> > Hi list,
> >
> > When I run this test code
> >
> > \definefontfamily[trm][math][tex gyre termes math]
> > \definefontfamily[pag][math][tex gyre pagella math]
> > \definefontfamily[bon][math][tex gyre bonum math]
> > \definefontfamily[sch][math][tex gyre schola math]
> > \definefontfamily[stx][math][stix two math]
> > \starttext
> > \starttabulate[|c|c|]
> > \FL
> > \NC \bf Font name \NC \bf Math prime \NR
> > \ML
> > \NC Latin modern \NC \m{x'} \NR
> > \NC Termes \NC \switchtobodyfont[trm] \m{x'} \NR
> > \NC Pagella \NC \switchtobodyfont[pag] \m{x'} \NR
> > \NC Bonum \NC \switchtobodyfont[bon] \m{x'} \NR
> > \NC Schola \NC \switchtobodyfont[sch] \m{x'} \NR
> > \NC Stix \NC \switchtobodyfont[stx] \m{x'} \NR
> > \BL
> > \stoptabulate
> > \stoptext
> >
> > on my machine, the prime symbols are being placed too high (except for
> > latin modern which is normal).
> > Running the same code on the wiki gives the correct output though.
> > Does anyone else get the same output? Screenshot attached.
>
> Use \definetypeface to load/set the math fonts.
>
> \starttext
>
> \starttabulate[|l|c|]
> \FL
> \BC Font name  \BC Math prime\NC\NR
> \ML
> \NC Latin Modern Roman \NC\m{x'} \NC\NR
> \NC TeX Gyre Termes\NC \switchtobodyfont[termes]  \m{x'} \NC\NR
> \NC TeX Gyre Pagella   \NC \switchtobodyfont[pagella] \m{x'} \NC\NR
> \NC TeX Gyre Bonum \NC \switchtobodyfont[bonum]   \m{x'} \NC\NR
> \NC TeX Gyre Schola\NC \switchtobodyfont[schola]  \m{x'} \NC\NR
> \NC STIX Two   \NC \switchtobodyfont[stixtwo] \m{x'} \NC\NR
> \BL
> \stoptabulate
>
> \stoptext
>
> Wolfgang

Thanks, \definetypeface fixes it. Should I not be using \definefontfamily?
I've just checked eulernova and the prime is still too high for this font.

\switchtobodyfont[eulernova]
\starttext
\m{x'}
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Math prime issues for some fonts

2021-11-26 Thread Wolfgang Schuster via ntg-context

Jack Hill via ntg-context schrieb am 26.11.2021 um 18:18:

Hi list,

When I run this test code

\definefontfamily[trm][math][tex gyre termes math]
\definefontfamily[pag][math][tex gyre pagella math]
\definefontfamily[bon][math][tex gyre bonum math]
\definefontfamily[sch][math][tex gyre schola math]
\definefontfamily[stx][math][stix two math]
\starttext
\starttabulate[|c|c|]
\FL
\NC \bf Font name \NC \bf Math prime \NR
\ML
\NC Latin modern \NC \m{x'} \NR
\NC Termes \NC \switchtobodyfont[trm] \m{x'} \NR
\NC Pagella \NC \switchtobodyfont[pag] \m{x'} \NR
\NC Bonum \NC \switchtobodyfont[bon] \m{x'} \NR
\NC Schola \NC \switchtobodyfont[sch] \m{x'} \NR
\NC Stix \NC \switchtobodyfont[stx] \m{x'} \NR
\BL
\stoptabulate
\stoptext

on my machine, the prime symbols are being placed too high (except for 
latin modern which is normal).

Running the same code on the wiki gives the correct output though.
Does anyone else get the same output? Screenshot attached.


Use \definetypeface to load/set the math fonts.

\starttext

\starttabulate[|l|c|]
\FL
\BC Font name  \BC Math prime\NC\NR
\ML
\NC Latin Modern Roman \NC\m{x'} \NC\NR
\NC TeX Gyre Termes\NC \switchtobodyfont[termes]  \m{x'} \NC\NR
\NC TeX Gyre Pagella   \NC \switchtobodyfont[pagella] \m{x'} \NC\NR
\NC TeX Gyre Bonum \NC \switchtobodyfont[bonum]   \m{x'} \NC\NR
\NC TeX Gyre Schola\NC \switchtobodyfont[schola]  \m{x'} \NC\NR
\NC STIX Two   \NC \switchtobodyfont[stixtwo] \m{x'} \NC\NR
\BL
\stoptabulate

\stoptext

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

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


[NTG-context] Math prime issues for some fonts

2021-11-26 Thread Jack Hill via ntg-context
Hi list,

When I run this test code

\definefontfamily[trm][math][tex gyre termes math]
\definefontfamily[pag][math][tex gyre pagella math]
\definefontfamily[bon][math][tex gyre bonum math]
\definefontfamily[sch][math][tex gyre schola math]
\definefontfamily[stx][math][stix two math]
\starttext
\starttabulate[|c|c|]
\FL
\NC \bf Font name \NC \bf Math prime \NR
\ML
\NC Latin modern \NC \m{x'} \NR
\NC Termes \NC \switchtobodyfont[trm] \m{x'} \NR
\NC Pagella \NC \switchtobodyfont[pag] \m{x'} \NR
\NC Bonum \NC \switchtobodyfont[bon] \m{x'} \NR
\NC Schola \NC \switchtobodyfont[sch] \m{x'} \NR
\NC Stix \NC \switchtobodyfont[stx] \m{x'} \NR
\BL
\stoptabulate
\stoptext

on my machine, the prime symbols are being placed too high (except for
latin modern which is normal).
Running the same code on the wiki gives the correct output though.
Does anyone else get the same output? Screenshot attached.

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-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 in LMTX and definemathcommand

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

On 11/17/2021 10:59 PM, Otared Kavian via ntg-context wrote:

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.


you missed the multiple primes issue (a bit too agressive lua code 
reduction, fixed in next upload)



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


thanks, mikael collects all that


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)?


in principle we can scale individual glyphs (and when not default users 
can add their own lfg files)

The built-in commands $\liminf$ and $\limsup$ do not work properly with 
LucidaOT (I tried other fonts and there they are fine):


hm .. (in case of lucida, also check cambria and garamond as these have 
staircase kerns too so they are somewhat similar)


mikael is making test (and in the meantime i'm experimenting a bit 
forther with compact fonts because all has to work in that mode too)


Hans

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

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


[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] Math font tips and tricks

2021-11-11 Thread Marcus Vinicius Mesquita via ntg-context
Sometime ago I needed some basic math in Minion and I concocted something
like follows below:

% latin
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:mathematicalalphanumericsymbols,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:mathematicalalphanumericsymbols,range={1D50D,1D514},force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:miscellaneousmathematicalsymbolsa,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:miscellaneousmathematicalsymbolsb,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasenormal,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasenormal,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercaseitalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercaseitalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasebold,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasebold,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasebolditalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasebolditalic,force=yes]

% greek
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasegreeknormal,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasegreeknormal,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasegreekitalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasegreekitalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasegreekbold,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasegreekbold,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasegreekbolditalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasegreekbolditalic,force=yes]

% digits - need to be defined without node mode, which means no default set
\definefontfeature[inlinemath][lnum=yes,pnum=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:digitsnormal,features=inlinemath,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:digitsbold,features=inlinemath,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[superscriptsandsubscripts] [force=yes]
\setupmathematics[autopunctuation={all},ucgreek=italic,lcgreek=italic]

\definefallbackfamily [mainface] [math] [Minion Pro]
[tf=style:normal,range={0x27-0x2F,0x3C-0x3E,0xB1,0xD7,0xF7,0x3E,0x5B-0x5D,0x7B-0x7E,0x2111,0x1D50D,0x2128,0x2190,0x2192,0x210C-0x211C,0x212D,0x2202,0x2206,0x220F,0x2211,0x2212,0x2215,0x2219,0x221E,0x2248,0x2260,0x2264,0x2265,0x27E6-0x27E9,0x1D504-0x1D52F,0x2980}]%

\definefallbackfamily [mainface] [math] [Minion Pro]
[bf=style:bold,range={0x27-0x2F,0xD7,0xF7,0x3A-0x3C,0x3E,0x5B-0x5D,0x7B-0x7E,0x2111,0x1D50D,0x2128,0x210C-0x211C,0x212D,0x2212,0x27E6-0x27E9,0x1D504-0x1D52F,0x2980}]

\definefontfamily [mainface] [math] [Cambria Math]

\setupbodyfont[mainface,12pt]

\starttext

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

\bgroup\bf
\startformula
c^2 = a^2 + b^2
\stopformula
\egroup

\startformula
\cos (\gamma) = \Alpha \Gamma \Pi\sin (\alpha)
\stopformula

\bgroup\bf
\startformula
\cos (\gamma) = \Alpha \Gamma \Pi\sin (\alpha)
\stopformula
\egroup

\startformula
\[x\] - |y| + x^2 + y^2 -k² ≤ z^2; \quad \sin(\alpha)^2 + \cos(\beta)^2 = 1.
\stopformula

\bgroup\bf
\startformula
\[x\] - |y| + x^2 + y^2 -k² ≤ z^2; \quad \sin(\alpha)^2 + \cos(\beta)^2 = 1.
\stopformula
\egroup

\startformula
C^2 ≈ A^2 ∫ (B^2 ± \Theta \sin \gamma x) dx = \lim Z → ∞
\stopformula

\bgroup\bf
\startformula
C^2 ≈ A^2 ∫ (B^2 ± \Theta \sin \gamma x) dx = \lim Z → ∞
\stopformula
\egroup

\startformula
\sqrt{34×y\frac{21\alpha^2}{98.0 x_2}}Δθ = \sin(a)^2 + \cos(b)^2
\stopformula

\bgroup\bf
\startformula
\sqrt{34×y\frac{21\alpha^2}{98.0 x_2}}Δθ = \sin(a)^2 + \cos(b)^2
\stopformula
\egroup

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

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


Re: [NTG-context] Math font tips and tricks

2021-11-07 Thread Wolfgang Schuster via ntg-context

Hans Hagen via ntg-context schrieb am 07.11.2021 um 19:05:

On 11/6/2021 11:23 AM, Alexandre Christe via ntg-context wrote:

Dear all,

I'd like to know how best to work with font features regarding 
adaptations of math fonts.


For example, let's assume I'd like to use Minion Pro also for math 
typesetting. I've referred myself to this page of the Wiki 
https://wiki.contextgarden.net/Command/definefontfallback 
. I have 
tried the following, but it fails for greek letters in math mode.


\definefallbackfamily
      [mainface] [math] [Minion Pro]
  [range={math:lowercaseitalic,math:uppercaseitalic,math:lowercasenormal,math:uppercasenormal},force=yes] 


\definefallbackfamily
      [mainface] [math] [Minion Pro]
  [range={math:lowercasegreekitalic,math:uppercasegreekitalic,math:lowercasegreeknormal,math:uppercasegreeknormal},force=yes] 


\definefallbackfamily
      [mainface] [math] [Minion Pro]
      [range=math:digitsnormal,features=f:lining,force=yes]
\definefontfamily     [mainface] [math] [Libertinus Math]

Thanks in advance for your support.
Do you get results at all? Hard to check as that math font is a 
commercial one. If it's an otf font, I suppose it can be used directly 
as mainface math.


Libertinus is a free Math font and Minion Pro was available with older 
installations of the Adobe Reader.


To use the Minion font for math you have to create a new fallback for 
each set of characters because you need always a different argument for 
the offset key. To make everything a bit easier the fallbackfamily 
command provides preset list which already set he necessary values for 
range and offset.


% \definefallbackfamily [mainface] [math] [Minion Pro]
%   [range=lowercasenormal]

\definefallbackfamily [mainface] [math] [Minion Pro] 
[preset=math:lowercasenormal]


% \definefallbackfamily [mainface] [math] [Minion Pro]
%   [range=lowercasenormal,offset=lowercaseitalic,tf=style:italic]

\definefallbackfamily [mainface] [math] [Minion Pro] 
[preset=math:lowercaseitalic]


% \definefallbackfamily [mainface] [math] [Minion Pro]
%   [range=digitsnormal,features=f:lining]

\definefallbackfamily [mainface] [math] [Minion Pro] 
[preset=math:digitsnormal]


\definefontfamily [mainface] [math] [Libertinus Math]

\starttext

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

\switchtobodyfont[mainface]

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

\stoptext

Wolfgang

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

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


Re: [NTG-context] Math font tips and tricks

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

On 11/6/2021 11:23 AM, Alexandre Christe via ntg-context wrote:

Dear all,

I'd like to know how best to work with font features regarding 
adaptations of math fonts.


For example, let's assume I'd like to use Minion Pro also for math 
typesetting. I've referred myself to this page of the Wiki 
https://wiki.contextgarden.net/Command/definefontfallback 
. I have 
tried the following, but it fails for greek letters in math mode.


\definefallbackfamily
      [mainface] [math] [Minion Pro]
 
  [range={math:lowercaseitalic,math:uppercaseitalic,math:lowercasenormal,math:uppercasenormal},force=yes]

\definefallbackfamily
      [mainface] [math] [Minion Pro]
 
  [range={math:lowercasegreekitalic,math:uppercasegreekitalic,math:lowercasegreeknormal,math:uppercasegreeknormal},force=yes]

\definefallbackfamily
      [mainface] [math] [Minion Pro]
      [range=math:digitsnormal,features=f:lining,force=yes]
\definefontfamily     [mainface] [math] [Libertinus Math]

Thanks in advance for your support.
Do you get results at all? Hard to check as that math font is a 
commercial one. If it's an otf font, I suppose it can be used directly 
as mainface math.


Hans


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

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


[NTG-context] Math font tips and tricks

2021-11-06 Thread Alexandre Christe via ntg-context
Dear all,

I'd like to know how best to work with font features regarding adaptations
of math fonts.

For example, let's assume I'd like to use Minion Pro also for math
typesetting. I've referred myself to this page of the Wiki
https://wiki.contextgarden.net/Command/definefontfallback. I have tried the
following, but it fails for greek letters in math mode.

\definefallbackfamily
 [mainface] [math] [Minion Pro]

 
[range={math:lowercaseitalic,math:uppercaseitalic,math:lowercasenormal,math:uppercasenormal},force=yes]
\definefallbackfamily
 [mainface] [math] [Minion Pro]

 
[range={math:lowercasegreekitalic,math:uppercasegreekitalic,math:lowercasegreeknormal,math:uppercasegreeknormal},force=yes]
\definefallbackfamily
 [mainface] [math] [Minion Pro]
 [range=math:digitsnormal,features=f:lining,force=yes]
\definefontfamily [mainface] [math] [Libertinus Math]

Thanks in advance for your support.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 cases

2021-07-23 Thread Jack Hill

Thank you.
I've updated the wiki to reflect those changes. The wiki's version of 
ConTeXt still seems to use the old \NC and \MC commands though.


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

2021-07-22 Thread Aditya Mahajan
On Thu, 22 Jul 2021, Jack Hill wrote:

> Dear list,
> 
> I'm using ConTeXt version 2021.07.22 19:16 and the following code 
> typesets both columns in math mode
> 
> \starttext
> \startformula
> \delta_{ij} =
> \startcases
> \NC 1 \NC if i = j \NR
> \NC 0 \NC otherwise \NR
> \stopcases
> \stopformula
> \stoptext
> 
> The wiki states that the second column should be typeset in text mode. 
> Is this a bug or does ConTeXt now typeset the second column in math mode 
> by default?

Yes, we felt that it was more consistent with other align mechanisms to default 
to math. So, for the 2nd column, we now have \NC for a "normal" (i.e., math) 
column and \TC for a text column. So you can use:

\startformula
\delta_{ij} =
\startcases  
\NC 1 \TC if $i = j$ \NR
\NC 0 \TC otherwise \NR
\stopcases 
\stopformula   
\stoptext  

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
___


[NTG-context] Math cases

2021-07-22 Thread Jack Hill

Dear list,

I'm using ConTeXt version 2021.07.22 19:16 and the following code 
typesets both columns in math mode


\starttext
\startformula
\delta_{ij} =
\startcases
\NC 1 \NC if i = j \NR
\NC 0 \NC otherwise \NR
\stopcases
\stopformula
\stoptext

The wiki states that the second column should be typeset in text mode. 
Is this a bug or does ConTeXt now typeset the second column in math mode 
by default?


Thanks,
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-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 cases and text in math mode

2021-07-06 Thread Jack Hill

Hi,

I have two separate issues here. First, I'm struggling to get math cases 
to work. The wiki suggests that the following code


\starttext
\startformula
 f(x) = \startmathcases
   \NC x, \NC if $0 \le x \le \frac12$ \NR
   \NC 1-x ,\NC if $\frac12 \le x \le 1$ \NR
\stopmathcases
\stopformula
\stoptext

should typeset everything after the \NC in text mode, but when I compile 
it's still in math mode. Is this a bug or is the wiki out of date?



Secondly, how can I enter text mode whilst in a formula, whilst also 
only using the roman font? For example, I would like it so that even if 
the whole text is wrapped in {\em ...}, the text in the formulae are in 
roman font. I've tried the following:


\starttext
{\em
\startformula \startalign[align=left]
\NC {\rm multiple words of text} \NR % Does not provide spacing

\NC \mathrm{multiple words of text} \NR % Does not provide spacing

\NC \text{multiple words of text} \NR % Still italicised

% \NC \text{\rm multiple words of text} \NR % Error

% \NC {\rm \text{multiple words of text}} \NR % Error
\stopalign \stopformula
}
\stoptext

Thanks,
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-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: Nested Cases?

2021-03-18 Thread Aditya Mahajan
On Thu, 18 Mar 2021, Weber, Matthias wrote:

> Hello,
> 
> Is it possible to nest cases in math, like so:

In principle, it should be. But we never tested this and I suspect that there 
is some macro which doesn't get initialized correctly in nested cases. 

> \starttext
> \startformula
> x=
>\startcases[align={right,left},distance=3pt]
>\NC  a \NC =
>\startcases[align={right,left},distance=3pt]
>\NC  1 \NC  \text{case  a1} \NR
>\NC  2 \NC  \text{case  a2} \NR
>\stopcases
>\NR
>\NC b \NC =
>\startcases[align={right,left},distance=3pt]
>\NC  3 \NC  \text{case  b3}\NR
>\NC 4  \NC  \text{case  b4}\NR
>\stopcases
>\NR
>\stopcases
> \stopformula
> \stoptext
> 
> I get an error about a missing $ when I try a nested start/stop-cases.

The missing $ error is because the cases environment uses two column separators 
(for the second column): \NC for "normal text column" and \MC for "math 
column". This is so that in the typical case, you can just use:

\startformula
  x = \startcases
  \NC 1 \NC case $a_1$ \NR
  \NC 2 \NC case $a_2$ \NR
  \stopcases
\stopformula

So, in your cases, you should have used:

\starttext
\startformula
x=
   \startcases[align={right,left},distance=3pt]
   \NC  a \MC =
   \startcases[align={right,left},distance=3pt]
   \NC  1 \NC  case  a1 \NR
   \NC  2 \NC  case  a2 \NR
   \stopcases
   \NR
   \NC b \MC =
   \startcases[align={right,left},distance=3pt]
   \NC  3 \NC  case  b3\NR
   \NC 4  \NC  case  b4\NR
   \stopcases
   \NR
   \stopcases
\stopformula
\stoptext


But, something goes wrong and that doesn't work either (with a different error 
message). I suspect that something is not getting initialized correctly at 
\startcases and will look into that. 

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

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


[NTG-context] Math: Nested Cases?

2021-03-18 Thread Weber, Matthias
Hello,

Is it possible to nest cases in math, like so:

\starttext
\startformula
x=
   \startcases[align={right,left},distance=3pt]
   \NC  a \NC =
   \startcases[align={right,left},distance=3pt]
   \NC  1 \NC  \text{case  a1} \NR
   \NC  2 \NC  \text{case  a2} \NR
   \stopcases
   \NR
   \NC b \NC =
   \startcases[align={right,left},distance=3pt]
   \NC  3 \NC  \text{case  b3}\NR
   \NC 4  \NC  \text{case  b4}\NR
   \stopcases
   \NR
   \stopcases
\stopformula
\stoptext

I get an error about a missing $ when I try a nested start/stop-cases.

Thanks,

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 blackboard (bug?)

2021-01-09 Thread Hans Hagen

On 1/9/2021 1:31 PM, Johann Birnick wrote:

To write blackboard math, the syntax was

$\blackboard{N}$

, but now this also makes the rest of the text blackboard. So one has to use

${\blackboard N}$

. Is this indented? (the old way is a bit easier to use)

Secondly, I want to address the blackboard font. Try out

\starttext
${\blackboard NR}$
\stoptext

This looks different then in the past. It doesn't have serifs. It looks like the
wrong font, like sans. Is this a bug? To me it looks awful, honestly. It doesn't
fit the rest of the math font at all.
Basically we're talking alphabets here and in opentype math fonts these 
are complete alphabets. So, \blackboard is an alphabet switch. You can 
use \mathbb{X} as an argument variant.


About the shapes ... those are the ones that come with the font (and imo 
when blackboard is indeed that what gets drawn on blackboard serifs 
probaby make not that much sense, but that's personal).


Hans


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

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


Re: [NTG-context] Math align not working

2021-01-09 Thread Johann Birnick
Hi Aditya,

thank you very much, now I need to specify the alignment only for one "column"
and it gets applied for all of them. However, there is still the problem with
the standard setting of the alignment. For example, 

\starttext
\startformula \startalign[m=2, align={right,left}]
\NC ab \NC = cd
\NC efgh \NC = ijkl \NR
\NC efgh \NC = ijkl
\NC ab \NC = cd \NR
\stopalign \stopformula
\stoptext

works now. But the setting [align={right,left}] should be the standard when n is
not set. So (also according to your documentation) the following code 

\starttext
\startformula \startalign[m=2]
\NC ab \NC = cd
\NC efgh \NC = ijkl \NR
\NC efgh \NC = ijkl
\NC ab \NC = cd \NR
\stopalign \stopformula
\stoptext

should work, but it doesn't. The first column is right-oriented, the third (i.e.
the first in the right "column") not.

Could you please fix that?

Thanks you very much,
Johann


On Sat, 2021-01-02 at 02:15 -0500, Aditya Mahajan wrote:
> On Fri, 1 Jan 2021, Hans Hagen wrote:
> 
> > On 1/1/2021 8:21 AM, Aditya Mahajan wrote:
> > > \startformula \startalign[m=2,distance=8em,n=5,
> > > align={right,middle,middle,middle,left, 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
> > 
> > 
> > Aditya:
> > 
> > can you check this?
> > 
> > \def\math_build_eqalign
> >   {\scratchtoks\emptytoks
> >    \d_math_eqalign_distance\mathalignmentparameter\c!distance\relax
> >    \scratchcounterone\mathalignmentparameter\c!m
> >    \scratchcountertwo\mathalignmentparameter\c!n
> >    \etoksapp\scratchtoks{\the\t_math_align_a}%
> >    \scratchcounter\plusone
> >    \dorecurse{\numexpr\scratchcounterone*\scratchcountertwo-\plusone\relax}
> >  {\ifnum\scratchcounter=\scratchcountertwo
> >     \scratchcounter\plusone
> >     \etoksapp\scratchtoks{\math_eqalign_distance}%
> >     \etoksapp\scratchtoks{\global\c_math_eqalign_column\zerocount}%
> >   \else
> >     \advance\scratchcounter\plusone
> >   \fi
> >   \etoksapp\scratchtoks{\the\t_math_align_b}}%
> >    \etoksapp\scratchtoks{\the\t_math_align_c}}
> > 
> > 
> > I added:
> > 
> >     \etoksapp\scratchtoks{\global\c_math_eqalign_column\zerocount}%
> > 
> 
> This works nicely. Thanks.
> 
> I'll also go back to the mathalign document and try to update it for the
> current LMTX to catch other regressions which might have happened.
> 
> 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
___


[NTG-context] Math blackboard (bug?)

2021-01-09 Thread Johann Birnick
To write blackboard math, the syntax was

$\blackboard{N}$

, but now this also makes the rest of the text blackboard. So one has to use

${\blackboard N}$

. Is this indented? (the old way is a bit easier to use)

Secondly, I want to address the blackboard font. Try out

\starttext
${\blackboard NR}$
\stoptext

This looks different then in the past. It doesn't have serifs. It looks like the
wrong font, like sans. Is this a bug? To me it looks awful, honestly. It doesn't
fit the rest of the math font at all.

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
___


Re: [NTG-context] Math align not working

2021-01-01 Thread Aditya Mahajan
On Fri, 1 Jan 2021, Hans Hagen wrote:

> On 1/1/2021 8:21 AM, Aditya Mahajan wrote:
> > \startformula \startalign[m=2,distance=8em,n=5,
> > align={right,middle,middle,middle,left, 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
> 
> 
> Aditya:
> 
> can you check this?
> 
> \def\math_build_eqalign
>   {\scratchtoks\emptytoks
>\d_math_eqalign_distance\mathalignmentparameter\c!distance\relax
>\scratchcounterone\mathalignmentparameter\c!m
>\scratchcountertwo\mathalignmentparameter\c!n
>\etoksapp\scratchtoks{\the\t_math_align_a}%
>\scratchcounter\plusone
>\dorecurse{\numexpr\scratchcounterone*\scratchcountertwo-\plusone\relax}
>  {\ifnum\scratchcounter=\scratchcountertwo
> \scratchcounter\plusone
> \etoksapp\scratchtoks{\math_eqalign_distance}%
> \etoksapp\scratchtoks{\global\c_math_eqalign_column\zerocount}%
>   \else
> \advance\scratchcounter\plusone
>   \fi
>   \etoksapp\scratchtoks{\the\t_math_align_b}}%
>\etoksapp\scratchtoks{\the\t_math_align_c}}
> 
> 
> I added:
> 
> \etoksapp\scratchtoks{\global\c_math_eqalign_column\zerocount}%
> 

This works nicely. Thanks.

I'll also go back to the mathalign document and try to update it for the 
current LMTX to catch other regressions which might have happened.

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

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


Re: [NTG-context] Math align not working

2021-01-01 Thread Hans Hagen

On 1/1/2021 8:21 AM, Aditya Mahajan wrote:

\startformula \startalign[m=2,distance=8em,n=5,
align={right,middle,middle,middle,left, 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



Aditya:

can you check this?

\def\math_build_eqalign
  {\scratchtoks\emptytoks
   \d_math_eqalign_distance\mathalignmentparameter\c!distance\relax
   \scratchcounterone\mathalignmentparameter\c!m
   \scratchcountertwo\mathalignmentparameter\c!n
   \etoksapp\scratchtoks{\the\t_math_align_a}%
   \scratchcounter\plusone
   \dorecurse{\numexpr\scratchcounterone*\scratchcountertwo-\plusone\relax}
 {\ifnum\scratchcounter=\scratchcountertwo
\scratchcounter\plusone
\etoksapp\scratchtoks{\math_eqalign_distance}%
\etoksapp\scratchtoks{\global\c_math_eqalign_column\zerocount}%
  \else
\advance\scratchcounter\plusone
  \fi
  \etoksapp\scratchtoks{\the\t_math_align_b}}%
   \etoksapp\scratchtoks{\the\t_math_align_c}}


I added:

\etoksapp\scratchtoks{\global\c_math_eqalign_column\zerocount}%

Hans

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

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


Re: [NTG-context] Math align not working

2020-12-31 Thread Aditya Mahajan
On Wed, 30 Dec 2020, Johann Birnick wrote:

> Okay, but I think it's a bug, because as you see in the linked pdf it worked 
> the
> simple way some years ago...

Yes, something has changed internally. Earlier, if you used:

\startalign[align={right,left}, n=4]
 ...
\stopalign

then the alignment was right left right left, i.e., the alignment cycled. Now, 
the alignment is right left left left, i.e., unspecified alignments default to 
left. So, in your example, each column in the second "block" is left aligned. 
To change that, you can use:

\starttext 

\startformula \startalign[m=2,distance=8em,n=5,
align={right,middle,middle,middle,left, 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

But this is ugly. 

I haven't looked at the math alignment code in a while, but I'll check with 
Hans if the old behavior can be reintroduced. 

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

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


Re: [NTG-context] Math align not working

2020-12-30 Thread Hans Åberg
The developers might tune in; perhaps it was changed.


> On 30 Dec 2020, at 15:01, Johann Birnick  wrote:
> 
> Okay, but I think it's a bug, because as you see in the linked pdf it worked 
> the
> simple way some years ago...

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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-30 Thread Johann Birnick
Okay, but I think it's a bug, because as you see in the linked pdf it worked the
simple way some years ago...


On Wed, 2020-12-30 at 14:38 +0100, Hans Åberg wrote:
> One has to indicate the align pattern for all columns, otherwise it defaults
> to left, it seems:
> 
> \starttext
> 
> \startformula \startalign[m=2,distance=8em,n=5,
> align={right,middle,middle,middle,left,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
> 
> 
> > 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
> __
> _

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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-30 Thread Hans Åberg
One has to indicate the align pattern for all columns, otherwise it defaults to 
left, it seems:

\starttext

\startformula \startalign[m=2,distance=8em,n=5,
align={right,middle,middle,middle,left,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


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


Re: [NTG-context] Math align not working

2020-12-30 Thread Johann Birnick
Hi Alain,

I don't know what you mean by "you have two position in the second and one in
the first" ?

The 4 is not aligned correctly. Please see
https://dl.contextgarden.net/myway/mathalign.pdf where the example comes from.
The output looks different.

Best regards,
Johann

On Wed, 2020-12-30 at 11:26 +0100, Alain Delmotte wrote:
> Hi Johann,
> The 4 is right aligned, but for this column you have two position in the
> second and one in the first.
> You could try ~4 and it will align with 10.
> Best regards,
> Alain
> Le 29/12/2020 à 22:27, Johann Birnick a écrit :
> Hi Otared,
> 
> I'm using the same version. The problem is the "right"-alignment. See the 4 on
> the right side. It should be right-aligned. I attached my pdf.
> 
> Best regards,
> Johann
> 
> 
> On Tue, 2020-12-29 at 21:37 +0100, Otared Kavian wrote:
>  
> > 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
> > 
> > __
> > _
> >  
> >  
> > 
> > ___
> > If your question is of interest to others as well, please add an entry to
> > the Wiki!
> > 
> > maillist : ntg-context@ntg.nl /
> > http://www.ntg.nl/mailman/listinfo/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-30 Thread Alain Delmotte

  
  
Hi Johann,
The 4 is right aligned, but for this
column you have two position in the second and one in the first.
You could try ~4 and it will align
with 10.
Best regards,
Alain

Le 29/12/2020 à 22:27, Johann Birnick a
  écrit :


  Hi Otared,

I'm using the same version. The problem is the "right"-alignment. See the 4 on
the right side. It should be right-aligned. I attached my pdf.

Best regards,
Johann


On Tue, 2020-12-29 at 21:37 +0100, Otared Kavian wrote:

  
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
__
_



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 Johann Birnick
Hi Otared,

I'm using the same version. The problem is the "right"-alignment. See the 4 on
the right side. It should be right-aligned. I attached my pdf.

Best regards,
Johann


On Tue, 2020-12-29 at 21:37 +0100, Otared Kavian wrote:
> 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
> __
> _


test.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] 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] Math align not working

2020-12-29 Thread Johann Birnick
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
___


Re: [NTG-context] math symbol for "is an element of"

2020-11-06 Thread Sylvain Hubert
If you happen to use ibus on a linux, there's a emoji/unicode picker
,
where you can type `elem` and pick one from the
candidates “∈∉∊⋲⋳⋴⋵⋶⋷⋸⋹⟒⫙” .

On Thu, 5 Nov 2020 at 21:25,  wrote:

> A quick question for the ConTeXt mailing list:
>
> Other than typing it directly (or cutting and pasting it), how does one get
> the character ∈ (in case this gets garbled in emailing, this is supposed to
> be the mathematical symbol that looks more or less like an epsilon, and
> which is the mathematical symbol for "is an element of" a set).
>
> \showmathfontcharacters gives the following information about it:
>
> U+02208: ∈ ∈ element of
> width: 524262, height: 426798, depth: 33798, italic: 0
> mathclass: relation, mathname: in
>
> I'm not completely sure how to read this information, but if I read it
> correctly, perhaps this character should be gotten with \in. Also, the
> Basic
> Math page of the Wiki (https://wiki.contextgarden.net/Math/basic) states
> that you should be able to type this character with "\in". But that doesn't
> work (even inside a formula), since \in is used for references in ConTeXt.
> And in fact the link on the Basic Math page for \in takes you to the
> explanation of \in as used for ConTeXt references.
>
> This is a very common character in mathematics, so I wanted to ask: what is
> the recommended way to type this character? (I'm hoping to avoid having to
> cut and paste the character into the document every time I want to use it.
> And I don't have a utf enabled keyboard that would allow me to type this
> symbol readily from the keyboard.)
>
> Thanks in advance,
>
>
> Sciurus
>
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/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 symbol for "is an element of"

2020-11-06 Thread type
Thank you for your extremely thorough and helpful response, Hans! I'm still 
fairly new to ConTeXt, but I'm learning, and I have been helped greatly by all 
the support that is generously provided on this email list.

With thanks,


Sciurus

-Original Message-
From: Hans Hagen  
Sent: Friday, November 6, 2020 12:10 AM
To: mailing list for ConTeXt users ; 
t...@projectivespace.com
Subject: Re: [NTG-context] math symbol for "is an element of"

On 11/6/2020 12:24 AM, t...@projectivespace.com wrote:

> In this particular case, as Wolfgang pointed out, \in actually does work to 
> get the desired symbol in math mode. But it is good to know how to use text 
> substitutions too.
WHen you are in doubt you can do this:

\meaning\in

it will show you that the commands is adapting itself to math mode. 
There are a few such commands with 'clashing' names.

A variant on this is \NC which is the column separator but has a 
different meaning depending on where it's used. That one gets set to 
some meaning in environments.

Another overloaded one is \\ and it could be a space or newline or ...

Actually the last two are candidates for protectiopn against overload.

btw, users can run context with

--overloadmode=warning
--overloadmode=error

to see if their usage of commands or definitions bring conflicts. 
Currently \in is not yet protected against overload but it will be.

Hans



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

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

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


Re: [NTG-context] math symbol for "is an element of"

2020-11-06 Thread Hans Hagen

On 11/6/2020 12:24 AM, t...@projectivespace.com wrote:


In this particular case, as Wolfgang pointed out, \in actually does work to get 
the desired symbol in math mode. But it is good to know how to use text 
substitutions too.

WHen you are in doubt you can do this:

\meaning\in

it will show you that the commands is adapting itself to math mode. 
There are a few such commands with 'clashing' names.


A variant on this is \NC which is the column separator but has a 
different meaning depending on where it's used. That one gets set to 
some meaning in environments.


Another overloaded one is \\ and it could be a space or newline or ...

Actually the last two are candidates for protectiopn against overload.

btw, users can run context with

--overloadmode=warning
--overloadmode=error

to see if their usage of commands or definitions bring conflicts. 
Currently \in is not yet protected against overload but it will be.


Hans



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

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


Re: [NTG-context] math symbol for "is an element of"

2020-11-05 Thread type
Thank you, Hans! The links you gave me provide me with another useful tool in 
my toolbox (which I had not been aware of before).

In this particular case, as Wolfgang pointed out, \in actually does work to get 
the desired symbol in math mode. But it is good to know how to use text 
substitutions too.

Thanks,


Sciurus

-Original Message-
From: ntg-context  On Behalf Of Hans Åberg
Sent: Thursday, November 5, 2020 12:44 PM
To: mailing list for ConTeXt users 
Subject: Re: [NTG-context] math symbol for "is an element of"


> On 5 Nov 2020, at 21:22, t...@projectivespace.com wrote:
> 
> Other than typing it directly (or cutting and pasting it), how does one get
> the character ∈ (in case this gets garbled in emailing, this is supposed to
> be the mathematical symbol that looks more or less like an epsilon, and
> which is the mathematical symbol for "is an element of" a set).
…
> This is a very common character in mathematics, so I wanted to ask: what is
> the recommended way to type this character? (I'm hoping to avoid having to
> cut and paste the character into the document every time I want to use it.
> And I don't have a utf enabled keyboard that would allow me to type this
> symbol readily from the keyboard.)

There is no recommended way. One can have it in the input sources. The quickest 
way to both design and use I have found is text substitutions [1]. For the 
mathematical styles, TeX and Unicode do it differently, and ConTeXt follows the 
former unless one uses a command, see [2].

1. https://mailman.ntg.nl/pipermail/ntg-context/2020/099278.html
2. https://mailman.ntg.nl/pipermail/ntg-context/2020/099880.html


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 symbol for "is an element of"

2020-11-05 Thread type
My sincere apologies. I tried to do my homework to avoid wasting everybody 
else's time with a silly question, but apparently I did not do so adequately. 
You're quite right -- it works with no problem. It was something else nearby 
that was causing my minimal example (apparently not minimal enough) to fail.

That being said, the link to "\in" on the Math Basics page does point to the 
wrong place (the "\in" command used for references). I'll go correct that as my 
penance for asking such a ridiculous question.

Thanks, and again my apologies,


Sciurus

-Original Message-
From: Wolfgang Schuster  
Sent: Thursday, November 5, 2020 12:36 PM
To: mailing list for ConTeXt users 
Cc: t...@projectivespace.com
Subject: Re: [NTG-context] math symbol for "is an element of"

t...@projectivespace.com schrieb am 05.11.2020 um 21:22:
> A quick question for the ConTeXt mailing list:
> 
> Other than typing it directly (or cutting and pasting it), how does one get
> the character ∈ (in case this gets garbled in emailing, this is supposed to
> be the mathematical symbol that looks more or less like an epsilon, and
> which is the mathematical symbol for "is an element of" a set).
> 
> \showmathfontcharacters gives the following information about it:
> 
> U+02208: ∈ ∈ element of
> width: 524262, height: 426798, depth: 33798, italic: 0
> mathclass: relation, mathname: in
> 
> I'm not completely sure how to read this information, but if I read it
> correctly, perhaps this character should be gotten with \in. Also, the Basic
> Math page of the Wiki (https://wiki.contextgarden.net/Math/basic) states
> that you should be able to type this character with "\in". But that doesn't
> work (even inside a formula), since \in is used for references in ConTeXt.
> And in fact the link on the Basic Math page for \in takes you to the
> explanation of \in as used for ConTeXt references.
> 
> This is a very common character in mathematics, so I wanted to ask: what is
> the recommended way to type this character? (I'm hoping to avoid having to
> cut and paste the character into the document every time I want to use it.
> And I don't have a utf enabled keyboard that would allow me to type this
> symbol readily from the keyboard.)

Do you have a example where \in fails?

\starttext

\m {A \in B}

\startformula
A \in B
\stopformula

\stoptext

Wolfgang

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

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


Re: [NTG-context] math symbol for "is an element of"

2020-11-05 Thread Hans Åberg

> On 5 Nov 2020, at 21:22, t...@projectivespace.com wrote:
> 
> Other than typing it directly (or cutting and pasting it), how does one get
> the character ∈ (in case this gets garbled in emailing, this is supposed to
> be the mathematical symbol that looks more or less like an epsilon, and
> which is the mathematical symbol for "is an element of" a set).
…
> This is a very common character in mathematics, so I wanted to ask: what is
> the recommended way to type this character? (I'm hoping to avoid having to
> cut and paste the character into the document every time I want to use it.
> And I don't have a utf enabled keyboard that would allow me to type this
> symbol readily from the keyboard.)

There is no recommended way. One can have it in the input sources. The quickest 
way to both design and use I have found is text substitutions [1]. For the 
mathematical styles, TeX and Unicode do it differently, and ConTeXt follows the 
former unless one uses a command, see [2].

1. https://mailman.ntg.nl/pipermail/ntg-context/2020/099278.html
2. https://mailman.ntg.nl/pipermail/ntg-context/2020/099880.html


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 symbol for "is an element of"

2020-11-05 Thread Wolfgang Schuster

t...@projectivespace.com schrieb am 05.11.2020 um 21:22:

A quick question for the ConTeXt mailing list:

Other than typing it directly (or cutting and pasting it), how does one get
the character ∈ (in case this gets garbled in emailing, this is supposed to
be the mathematical symbol that looks more or less like an epsilon, and
which is the mathematical symbol for "is an element of" a set).

\showmathfontcharacters gives the following information about it:

U+02208: ∈ ∈ element of
width: 524262, height: 426798, depth: 33798, italic: 0
mathclass: relation, mathname: in

I'm not completely sure how to read this information, but if I read it
correctly, perhaps this character should be gotten with \in. Also, the Basic
Math page of the Wiki (https://wiki.contextgarden.net/Math/basic) states
that you should be able to type this character with "\in". But that doesn't
work (even inside a formula), since \in is used for references in ConTeXt.
And in fact the link on the Basic Math page for \in takes you to the
explanation of \in as used for ConTeXt references.

This is a very common character in mathematics, so I wanted to ask: what is
the recommended way to type this character? (I'm hoping to avoid having to
cut and paste the character into the document every time I want to use it.
And I don't have a utf enabled keyboard that would allow me to type this
symbol readily from the keyboard.)


Do you have a example where \in fails?

\starttext

\m {A \in B}

\startformula
A \in B
\stopformula

\stoptext

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

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


[NTG-context] math symbol for "is an element of"

2020-11-05 Thread type
A quick question for the ConTeXt mailing list:

Other than typing it directly (or cutting and pasting it), how does one get
the character ∈ (in case this gets garbled in emailing, this is supposed to
be the mathematical symbol that looks more or less like an epsilon, and
which is the mathematical symbol for "is an element of" a set).

\showmathfontcharacters gives the following information about it:

U+02208: ∈ ∈ element of
width: 524262, height: 426798, depth: 33798, italic: 0
mathclass: relation, mathname: in

I'm not completely sure how to read this information, but if I read it
correctly, perhaps this character should be gotten with \in. Also, the Basic
Math page of the Wiki (https://wiki.contextgarden.net/Math/basic) states
that you should be able to type this character with "\in". But that doesn't
work (even inside a formula), since \in is used for references in ConTeXt.
And in fact the link on the Basic Math page for \in takes you to the
explanation of \in as used for ConTeXt references.

This is a very common character in mathematics, so I wanted to ask: what is
the recommended way to type this character? (I'm hoping to avoid having to
cut and paste the character into the document every time I want to use it.
And I don't have a utf enabled keyboard that would allow me to type this
symbol readily from the keyboard.)

Thanks in advance,


Sciurus



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 fonts for Nimbus fonts

2020-09-21 Thread Otared Kavian


> On 21 Sep 2020, at 16:45, Wolfgang Schuster 
>  wrote:
> 
> Otared Kavian schrieb am 21.09.2020 um 15:30:
> […]
> I don't understand your problem because you tell ConTeXt to use upright 
> letters (normal = upright) in math mode with the following setup.
> 
>> \setupmathematics[integral=nolimits,lcgreek=normal,default=normal]

Oops… indeed. I was stupid to copy-paste \setupmathematics from another test 
file, without paying attention to « default=normal ».
The resaon for which I did this copy-paste was that with 
\definefontfamily [mainface] [mm] [STIX Math] [rscale=1.10]
the upper bound of the integral is misplaced and I don't know how to fix it.
In the archives I saw that there is « mathnolimitsmode » which can be added as 
a font feature, but its values and how to set it up are far from being clear to 
me.

Thank you so much for your help: Otared K.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Math fonts for Nimbus fonts

2020-09-21 Thread Wolfgang Schuster

Otared Kavian schrieb am 21.09.2020 um 15:30:

Hi,

I wish to use the Nimbus fonts, but since I didn't know which Math fonts is 
best adapted to this family, I tried several fonts such as Stix Math, TeX Gyre 
Math, and so on, but doing this the math-italic does not appear in these fonts: 
does this mean that I have to set explicitely math-italic in definefontfamily?


I don't understand your problem because you tell ConTeXt to use upright 
letters (normal = upright) in math mode with the following setup.



\setupmathematics[integral=nolimits,lcgreek=normal,default=normal]


Wolfgang

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

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


[NTG-context] Math fonts for Nimbus fonts

2020-09-21 Thread Otared Kavian
Hi,

I wish to use the Nimbus fonts, but since I didn't know which Math fonts is 
best adapted to this family, I tried several fonts such as Stix Math, TeX Gyre 
Math, and so on, but doing this the math-italic does not appear in these fonts: 
does this mean that I have to set explicitely math-italic in definefontfamily?

Also what is the best math font adapted for Nimbus?

Below is my definition of a fontfamily for Nimbus fonts.

Thanks in advance for any help: Otared K

%% begin definefontfamily-nimbus.tex
\definefontfamily [mainface] [rm] [Nimbus Roman No9 L]
\definefontfamily [mainface] [ss] [Nimbus Sans L] [rscale=0.85]
\definefontfamily [mainface] [tt] [Nimbus Mono] [features=none,rscale=0.95]
\definefontfamily [mainface] [mm] [STIX Math]

%\definefontfamily [mainface] [mm] [Asana Math]
%\definefontfamily [mainface] [mm] [Lucida Bright Math OT]
%\definefontfamily [mainface] [mm] [TeX Gyre Termes Math]
%\definefontfamily [mainface] [mm] [XITSMath]

\setupmathematics[integral=nolimits,lcgreek=normal,default=normal]


\setupbodyfont[mainface]

\starttext

{\rm\tf Regular \it Italic \bf Bold \bi BoldItalic}

{\ss\tf Regular \it Italic \bf Bold \bi BoldItalic}

{\tt\tf Regular \it Italic \bf Bold \bi BoldItalic}

And here are a few math formulas $\alpha^2 + \beta^2 + \gamma^2 = x^2 + y^2 + 
t^2$.
\startformula
\int_{0}^{2\pi} \sin(x)dx = 0, 
\qquad {\rm e}^{{\rm i}\pi} + 1 = 0, 
\qquad \sum_{n=1}^{\infty}{1 \over n^2} = {\pi^2 \over 6}.
\stopformula

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 delimiters across math alignment environments

2020-05-29 Thread Jairo A. del Rio
Hi dear list! I have a question about the use of delimiters.
There are commands as \left ... \right which allow delimiters of variable
size, but they are usually asymmetrical. AFAIK, ConTeXt has mechanisms of
the form \definemathfence[something][something][command=yes]. My question
is: is it possible to make math fences work in a math alignment, e.g.

\definemathfence[something][brace][command=yes]
\startformula
\startmathalignment[n=2,align={middle,middle}]
%This won't work (I didn't expected to work, anyway)
\NC \NC \something{\frac{1}{2} +  \NR
\NC \NC x} \NR
\stopmathalignment
\stopformula

so that the fences are the same size? Thank you in advance. Stay safe.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 font not embedded

2020-03-18 Thread Wolfgang Schuster

Hans Hagen schrieb am 18.03.2020 um 18:16:

On 3/18/2020 2:35 PM, Pablo Rodriguez wrote:

On 3/18/20 10:51 AM, Hans Hagen wrote:

On 3/18/2020 10:44 AM, Pablo Rodriguez wrote:

[...]


fonts   > math: unset for global bodyfont mainface at 12pt
that is weird .. question for Wolfgang: is selectfont sensitive for the 
order of looping over a hash?


I looked at the problem and the math font fails because I use too many 
\definefontsynonym entries for each file which is needed for fallback 
fonts but math needs a simpler lookup chain.


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

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


Re: [NTG-context] Math font not embedded

2020-03-18 Thread Hans Hagen

On 3/18/2020 2:35 PM, Pablo Rodriguez wrote:

On 3/18/20 10:51 AM, Hans Hagen wrote:

On 3/18/2020 10:44 AM, Pablo Rodriguez wrote:

\definefontfamily [mainface] [rm] [DejaVu Serif]
\definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]
\setupbodyfont[mainface]
\starttext
\m{\sin^2(t)^2 + \cos^2(t) = 1}
\setupbodyfont[pagella]
\m{\sin^2(t)^2 + \cos^2(t) = 1}
\stoptext


what if you wipe the cache?


Hans,

using this sample:

   \definefontfamily [mainface] [rm] [DejaVu Serif]
   \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]
   \setupbodyfont[mainface]
   \starttext
   \m{\sin^2(t)^2 + \cos^2(t) = 1}
   \stoptext

Although I get this message in line 38 from the log file:

mkiv lua stats  > loaded fonts: 2 files: texgyrepagella-math.otf,
dejavuserif.ttf

There is a previous message in lines 19 and 20 from the log file (same
message repeated twice):

fonts   > math: unset for global bodyfont mainface at 12pt
that is weird .. question for Wolfgang: is selectfont sensitive for the 
order of looping over a hash?


Hans

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

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


Re: [NTG-context] Math font not embedded

2020-03-18 Thread Pablo Rodriguez
On 3/18/20 10:51 AM, Hans Hagen wrote:
> On 3/18/2020 10:44 AM, Pablo Rodriguez wrote:
>> \definefontfamily [mainface] [rm] [DejaVu Serif]
>>\definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]
>>\setupbodyfont[mainface]
>>\starttext
>>\m{\sin^2(t)^2 + \cos^2(t) = 1}
>>\setupbodyfont[pagella]
>>\m{\sin^2(t)^2 + \cos^2(t) = 1}
>>\stoptext
>
> what if you wipe the cache?

Hans,

using this sample:

  \definefontfamily [mainface] [rm] [DejaVu Serif]
  \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]
  \setupbodyfont[mainface]
  \starttext
  \m{\sin^2(t)^2 + \cos^2(t) = 1}
  \stoptext

Although I get this message in line 38 from the log file:

mkiv lua stats  > loaded fonts: 2 files: texgyrepagella-math.otf,
dejavuserif.ttf

There is a previous message in lines 19 and 20 from the log file (same
message repeated twice):

fonts   > math: unset for global bodyfont mainface at 12pt

I have just checked and noticed that MkIV (LuaTeX 1.11 7226 + ConTeXt
MkIV 2020.01.30 14:13) embeds the font fine.

I hope this helps,

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

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


Re: [NTG-context] Math font not embedded

2020-03-18 Thread Jan Willem Flamma
Now also to  the list: Result are identical and attached. mtxrun --find-file dejavu-math.otf givesC:/data/context/tex/texmf/fonts/opentype/public/dejavu/dejavu-math.otf  From: Hans HagenSent: Wednesday, 18 March 2020 11:38To: mailing list for ConTeXt users; Jan Willem FlammaSubject: Re: [NTG-context] Math font not embedded On 3/18/2020 11:20 AM, Jan Willem Flamma wrote:> Wiping the cache directory > (C:\data\context\tex\texmf-cache\luatex-cache\context\5fe67e0bfe781ce0dde776fb1556f32e\fonts)> > and mtxrun --script fonts --reload --force> > has not solved my issue.> > Running Pablo’s example on a Mac and Windows machine gives the attached > logs and output.can you test this: \setupbodyfont[dejavu] \starttext    \m{\sin^2(t)^2 + \cos^2(t) = 1}    \switchtobodyfont[pagella]    \m{\sin^2(t)^2 + \cos^2(t) = 1} \stoptext is there a dejavu-math.otf file on your system?  -   Hans Hagen | PRAGMA ADE   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands    tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl- 

hans-mac.log
Description: Binary data


hans-mac.pdf
Description: Adobe PDF document


hans-win.log
Description: Binary data


hans-win.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] Math font not embedded

2020-03-18 Thread Hans Hagen

On 3/18/2020 11:20 AM, Jan Willem Flamma wrote:
Wiping the cache directory 
(C:\data\context\tex\texmf-cache\luatex-cache\context\5fe67e0bfe781ce0dde776fb1556f32e\fonts)


and mtxrun --script fonts --reload --force

has not solved my issue.

Running Pablo’s example on a Mac and Windows machine gives the attached 
logs and output.

can you test this:

\setupbodyfont[dejavu]

\starttext

  \m{\sin^2(t)^2 + \cos^2(t) = 1}

  \switchtobodyfont[pagella]

  \m{\sin^2(t)^2 + \cos^2(t) = 1}

\stoptext

is there a dejavu-math.otf file on your system?


-
  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] Math font not embedded

2020-03-18 Thread Jan Willem Flamma
Wiping the cache directory (C:\data\context\tex\texmf-cache\luatex-cache\context\5fe67e0bfe781ce0dde776fb1556f32e\fonts)and mtxrun --script fonts --reload --forcehas not solved my issue. Running Pablo’s example on a Mac and Windows machine gives the attached logs and output.--JW  From: Hans HagenSent: Wednesday, 18 March 2020 10:51To: mailing list for ConTeXt users; Pablo RodriguezSubject: Re: [NTG-context] Math font not embedded On 3/18/2020 10:44 AM, Pablo Rodriguez wrote:> \definefontfamily [mainface] [rm] [DejaVu Serif]>    \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]>    \setupbodyfont[mainface]>    \starttext>    \m{\sin^2(t)^2 + \cos^2(t) = 1}>    \setupbodyfont[pagella]>    \m{\sin^2(t)^2 + \cos^2(t) = 1}>    \stoptext what if you wipe the cache? --  -   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-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : https://bitbucket.org/phg/context-mirror/commits/wiki : http://contextgarden.net___ 

pablo-mac.log
Description: Binary data


pablo-mac.pdf
Description: Adobe PDF document


pablo-win.log
Description: Binary data


pablo-win.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] Math font not embedded

2020-03-18 Thread Hans Hagen

On 3/18/2020 10:44 AM, Pablo Rodriguez wrote:

\definefontfamily [mainface] [rm] [DejaVu Serif]
   \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]
   \setupbodyfont[mainface]
   \starttext
   \m{\sin^2(t)^2 + \cos^2(t) = 1}
   \setupbodyfont[pagella]
   \m{\sin^2(t)^2 + \cos^2(t) = 1}
   \stoptext


what if you wipe the cache?

--

-
  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] Math font not embedded

2020-03-18 Thread Pablo Rodriguez
On 3/18/20 9:59 AM, Jan Willem Flamma wrote:
> Dear list members,
>
> I have been running ConTeXt on a Mac for a number of years.
>
> I just installed ConTeXt LMTX on a new Windows machine following
> instructions from the Pragma-ADE website.
>
> When I process the below MWE on the Windows machine the formulas are not
> displayed in the correct font.

Hi Jan,

this sample shows the issue:

  \definefontfamily [mainface] [rm] [DejaVu Serif]
  \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]
  \setupbodyfont[mainface]
  \starttext
  \m{\sin^2(t)^2 + \cos^2(t) = 1}
  \setupbodyfont[pagella]
  \m{\sin^2(t)^2 + \cos^2(t) = 1}
  \stoptext

For some strange reason, ConTeXt latest (LuaTeX 2.05 20200229 + ConTeXt
MkIV 2020.03.10 14:52) doesn’t embed the font.

I’m using Linux 64bit (I wonder whether ConTeXt latest on macOS won’t
give the same output).

I think this may be a bug in ConTeXt latest.

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
___


[NTG-context] Math font not embedded

2020-03-18 Thread Jan Willem Flamma
Dear list members, I have been running ConTeXt on a Mac for a number of years.I just installed ConTeXt LMTX on a new Windows machine following instructions from the Pragma-ADE website. When I process the below MWE on the Windows machine the formulas are not displayed in the correct font. The log file shows the followingfonts   > math: unset for global bodyfont mainface at 9ptmkiv lua stats  > loaded fonts: 4 files: texgyretermes-math.otf, dejavusans.ttf, dejavusansmono.ttf, dejavuserif.ttfmkiv lua stats  > font embedding time: 0.025 seconds, 3 fonts Full log file attached. I tried the below without success.context --generatecontext --makemtxrun --script font –reloadmtxrun --script font --reload --force Regards,Jan Willem Flamma ===\definefontfamily [mainface] [serif] [DejaVu Serif]\definefontfamily [mainface] [sans]  [DejaVu Sans]\definefontfamily [mainface] [mono]  [DejaVu Sans Mono] [feature=none]\definefontfamily [mainface] [math]  [TeX Gyre Termes Math] [scale=1.1] \setupbodyfont[mainface,sans,9pt] \starttext {\rm\input ward 1 2 3 4 5 6 7 8 9 10} \blank[big] {\ss\input ward 1 2 3 4 5 6 7 8 9 10} \blank[big] {\tt\input ward 1 2 3 4 5 6 7 8 9 10} \blank[big] \m{\sin^2(t)^2 + \cos^2(t) = 1} \blank[big] \startformula\sin^2(t)^2 + \cos^2(t) = 1\stopformula \stoptext

test-win.log
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] math font

2020-02-07 Thread Hans Hagen

On 2/7/2020 3:34 PM, Thomas A. Schmitz wrote:




On 7. Feb 2020, at 15:14, Wolfgang Schuster  
wrote:

Does this also happen when you use \definetypeface to set the math font?

\definetypeface [thomas] [mm] [math] [xits] [default]


No, with this change, the warnings are gone. New syntax? Or user error?

I bet on user error.

We always need a math font because the math machinery has to be set up 
and context will kick in a fallback font when none has been set but that 
is done as last resort when \starttext happens. When this is done 
locally you will get the warnings. When you get a real error (abort), 
you probably have some content before fonts are set up.


Hans

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

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


Re: [NTG-context] math font

2020-02-07 Thread Thomas A. Schmitz


> On 7. Feb 2020, at 15:14, Wolfgang Schuster 
>  wrote:
> 
> Does this also happen when you use \definetypeface to set the math font?
> 
> \definetypeface [thomas] [mm] [math] [xits] [default]

No, with this change, the warnings are gone. New syntax? Or user error?

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
___


Re: [NTG-context] math font

2020-02-07 Thread Wolfgang Schuster
On Fri, 7 Feb 2020 15:01:42 +0100
"Thomas A. Schmitz"  wrote:

> Hi all, 
> 
> in my environment file, I have defined a math font:
> 
> \definefontfamily [thomas] [math]  [XITS Math]
> 
> and as far as I can see in the log file, this font is found:
> 
> system  >9: filename=xits-math.lfg filetype=tex 
> foundname=/Users/lmtx/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg 
> fullname=/Users/lmtx/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg 
> usedmethod=database
> 
> system  >   14: filename=XITSMath-Regular.otf filetype=otf format=otf 
> foundname=/Users/lmtx/tex/texmf/fonts/opentype/public/xits/XITSMath-Regular.otf
>  
> fullname=/Users/lmtx/tex/texmf/fonts/opentype/public/xits/XITSMath-Regular.otf
>  usedmethod=database
> 
> mkiv lua stats  > loaded fonts: 16 files: texgyretermes-bold.otf, 
> texgyretermes-italic.otf, texgyretermes-regular.otf, xitsmath-regular.otf, 
> dejavusansmono.ttf, gentiumalt-i.ttf, gentiumalt-r.ttf, myriadpro-it.otf, 
> myriadpro-regular.otf, kadmosu.otf, monotype  - timesnrmtpro-bold.otf, 
> monotype  - timesnrmtpro-italic.otf, monotype  - timesnrmtpro.otf, 
> timesbold.ttf, timesitalic.ttf, times-roman.ttf
> 
> nevertheless, on the terminal and in the log file, I get dozens of lines with 
> this message
> 
> fonts   > math: unset for global bodyfont thomas at 11pt
> 
> This is with the latest 2020.01.26 19:19. I have a slight suspicion that this 
> behavior is new, but I’m not totally sure. It’s just a small nuisance, but 
> something is wrong here, I would say?

Does this also happen when you use \definetypeface to set the math font?

\definetypeface [thomas] [mm] [math] [xits] [default]

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

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


[NTG-context] math font

2020-02-07 Thread Thomas A. Schmitz
Hi all, 

in my environment file, I have defined a math font:

\definefontfamily [thomas] [math]  [XITS Math]

and as far as I can see in the log file, this font is found:

system  >9: filename=xits-math.lfg filetype=tex 
foundname=/Users/lmtx/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg 
fullname=/Users/lmtx/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg 
usedmethod=database

system  >   14: filename=XITSMath-Regular.otf filetype=otf format=otf 
foundname=/Users/lmtx/tex/texmf/fonts/opentype/public/xits/XITSMath-Regular.otf 
fullname=/Users/lmtx/tex/texmf/fonts/opentype/public/xits/XITSMath-Regular.otf 
usedmethod=database

mkiv lua stats  > loaded fonts: 16 files: texgyretermes-bold.otf, 
texgyretermes-italic.otf, texgyretermes-regular.otf, xitsmath-regular.otf, 
dejavusansmono.ttf, gentiumalt-i.ttf, gentiumalt-r.ttf, myriadpro-it.otf, 
myriadpro-regular.otf, kadmosu.otf, monotype  - timesnrmtpro-bold.otf, monotype 
 - timesnrmtpro-italic.otf, monotype  - timesnrmtpro.otf, timesbold.ttf, 
timesitalic.ttf, times-roman.ttf

nevertheless, on the terminal and in the log file, I get dozens of lines with 
this message

fonts   > math: unset for global bodyfont thomas at 11pt

This is with the latest 2020.01.26 19:19. I have a slight suspicion that this 
behavior is new, but I’m not totally sure. It’s just a small nuisance, but 
something is wrong here, I would say?

All best

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

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


Re: [NTG-context] math align broken

2019-12-16 Thread Jeong Dal
Dear Hans,

I reinstall a new beta and test the previous file.
(LuaMetaTeX: version 2.03.4, ConTeXt version: 2019.12.16 18:54, format: 
2019.12.17)

The problem is gone!
The space in the aligned display math mode is normal.

Thank you so much.

Best regards,

Dalyoung


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

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


Re: [NTG-context] math align broken

2019-12-16 Thread Jeong Dal
Dear Hans, 

Here is a small example which shows a strange spacing in the aligned display 
math mode.
The same code is OK in both inline mode and just display mode, but it is not 
good in aligned mode.

I hope that it helps your fix .

Thank you.

Best regards,

Dalyoung

%
running luametatex version 2.03.3,   ConTeXt ver: 2019.12.12, format: 2019.12.14
%
\starttext

\startitemize
\head inline formula:

$1001 \times 23 \equiv 1  \quad \pmod {3837}$

\head display mode

\startformula
1001 \times 23 \equiv 1  \quad \pmod {3837}
\stopformula

\head aligned display mode

\startformula\startalign[m=2]
\NC 2^7 \equiv \qquad \NC \pmod {341},  \NC 14^7 \equiv \qquad \NC 
\pmod {341}, \NR
\NC 11^7 \equiv \qquad \NC \pmod {341}, \NC 3^7 \equiv \qquad \NC \pmod 
{341}, \NR
\stopalign\stopformula

\startformula\startalign[n=3]
\NC 1001 \times 23 \NC \equiv 1  \quad \NC\pmod {3837}  \NR
\NC \qquad \times 23 \NC \equiv \qquad \NC\pmod {3837}  \NR
\stopalign\stopformula

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

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


Re: [NTG-context] math align broken

2019-12-16 Thread Mikael P. Sundqvist
On Mon, Dec 16, 2019 at 3:08 PM Hans Hagen  wrote:

> On 12/16/2019 2:17 AM, Jeong Dal wrote:
> > Dear Mikael,
> >
> > I also confirm your problem.
> > I am using
> > "ConTeXt  ver: 2019.12.06 21:40 MKIV beta  fmt: 2019.12.9  int:
> english/english”
> >
> > However, if you change “\Bigl(“ to “\left(“, then the space between left
> parenthesis and text become narrower.
> >
> > I hope that it will be fixed soon.
>
> in next beta (something with spacing in math)
>
> Hans
>
>
Thanks for the quick fix, Hans! I just updated and compiled my lecture
notes and can confirm that it looks fine again!

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

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


Re: [NTG-context] math align broken

2019-12-16 Thread Hans Hagen

On 12/16/2019 2:17 AM, Jeong Dal wrote:

Dear Mikael,

I also confirm your problem.
I am using
"ConTeXt  ver: 2019.12.06 21:40 MKIV beta  fmt: 2019.12.9  int: english/english”

However, if you change “\Bigl(“ to “\left(“, then the space between left 
parenthesis and text become narrower.

I hope that it will be fixed soon.


in next beta (something with spacing in math)

Hans


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

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


Re: [NTG-context] math align broken

2019-12-15 Thread Jeong Dal
Dear Mikael,

I also confirm your problem. 
I am using
"ConTeXt  ver: 2019.12.06 21:40 MKIV beta  fmt: 2019.12.9  int: english/english”

However, if you change “\Bigl(“ to “\left(“, then the space between left 
parenthesis and text become narrower. 

I hope that it will be fixed soon.

Best regards,

Dalyoung

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

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


Re: [NTG-context] math align broken

2019-12-15 Thread Otared Kavian
Hi Mikael,

II tested your example and can confirm the issue, using lmtx version: 
2019.12.15 17:34 on MacOS.

Best regards: OK

> On 15 Dec 2019, at 16:54, Mikael P. Sundqvist  wrote:
> 
> Hi,
> 
> I hope this report is not a duplicate of another one. I updated lmtx today 
> (from http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip, a fresh 
> install in the folder), and found some strange things with math:
> 
> The file
> 
> %%% EXAMPLE
> \starttext
> \startformula
> \startalign
> \NC \int e^{2x}\sin 3x\,dx\NC=\int\Im e^{(2+3i)x}\,dx\NR
> \NC\NC =\Im\int e^{(2+3i)x}\,dx\NR
> \NC\NC = \Im\Bigl(\frac{1}{2+3i}e^{(2+3i)}\Bigr)\NR
> \stopalign
> \stopformula
> From this we see that $\lim_{n\to+\infty}f(n)=0$.
> \stoptext
> %%%
> 
> gives the attached ex1.pdf. As we can see the spacing inside \startalign  
> \stopalign is wrong. Also, the "lim" in the example after the displayed 
> formula has disappeared.
> 
> Any clues?
> 
> /Mikael
> 
> (I tried in any case to remove cache and rebuild, but since it was a fresh 
> install, I could not see why it could help here. Thought I mention it 
> anyways.)
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 align broken

2019-12-15 Thread Mikael P. Sundqvist
Hi,

I hope this report is not a duplicate of another one. I updated lmtx today
(from http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip, a fresh
install in the folder), and found some strange things with math:

The file

%%% EXAMPLE
\starttext
\startformula
\startalign
\NC \int e^{2x}\sin 3x\,dx\NC=\int\Im e^{(2+3i)x}\,dx\NR
\NC\NC =\Im\int e^{(2+3i)x}\,dx\NR
\NC\NC = \Im\Bigl(\frac{1}{2+3i}e^{(2+3i)}\Bigr)\NR
\stopalign
\stopformula
>From this we see that $\lim_{n\to+\infty}f(n)=0$.
\stoptext
%%%

gives the attached ex1.pdf. As we can see the spacing inside \startalign
\stopalign is wrong. Also, the "lim" in the example after the displayed
formula has disappeared.

Any clues?

/Mikael

(I tried in any case to remove cache and rebuild, but since it was a fresh
install, I could not see why it could help here. Thought I mention it
anyways.)


ex1.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] Math symbol for inexact differential

2019-11-13 Thread w n
Thanks, that is exactly what I wanted.

On Wed, Nov 13, 2019 at 11:13 AM Taco Hoekwater  wrote:

> Like this?
>
> \def\dbar{\mathop{\text{\it đ}}}
>
> I do not know whether you want it to be \mathop or \mathord
>
> > On 13 Nov 2019, at 10:35, w n  wrote:
> >
> > Can you give an example on how to use đ  (U+00111) in  \def\dbar{ ... }
>
> Taco Hoekwater
> Elvenkind BV
>
>
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/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 symbol for inexact differential

2019-11-13 Thread Taco Hoekwater
Like this?

\def\dbar{\mathop{\text{\it đ}}}

I do not know whether you want it to be \mathop or \mathord

> On 13 Nov 2019, at 10:35, w n  wrote:
> 
> Can you give an example on how to use đ  (U+00111) in  \def\dbar{ ... }

Taco Hoekwater
Elvenkind BV




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 symbol for inexact differential

2019-11-13 Thread w n
@Taco,

Can you give an example on how to use đ  (U+00111) in  \def\dbar{ ... }

Ideally I want to do
\startformula
d u = \dbar q + \dbar w
\stopformula

On Wed, Nov 13, 2019 at 9:40 AM Taco Hoekwater  wrote:

>
> How about  đ ? (U+00111)
>
> That is a character in Latin Extended-A, so most text fonts
> will have it (these days).
>
>
>
>
> > On 13 Nov 2019, at 01:59, w n  wrote:
> >
> > True, I should not have used the term inexact differential.
> > How can I get a math symbol with a "d" and a bar across ?
> >
> > On Wed, Nov 13, 2019 at 1:11 AM Hans Åberg  wrote:
> >
> > > On 13 Nov 2019, at 00:26, w n  wrote:
> > >
> > > Working on some thermodynamics and I need a math symbol for
> > > an inexact differential, it is the letter d with a bar across.
> >
> > Normally one is using a lowercase delta according to:
> >   https://en.wikipedia.org/wiki/Inexact_differential
> >
> >
> >
> >
> ___
> > If your question is of interest to others as well, please add an entry
> to the Wiki!
> >
> > maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/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
> >
> ___
>
> Taco Hoekwater
> Elvenkind BV
>
>
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/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 symbol for inexact differential

2019-11-13 Thread Taco Hoekwater

How about  đ ? (U+00111)

That is a character in Latin Extended-A, so most text fonts
will have it (these days).




> On 13 Nov 2019, at 01:59, w n  wrote:
> 
> True, I should not have used the term inexact differential. 
> How can I get a math symbol with a "d" and a bar across ?
> 
> On Wed, Nov 13, 2019 at 1:11 AM Hans Åberg  wrote:
> 
> > On 13 Nov 2019, at 00:26, w n  wrote:
> > 
> > Working on some thermodynamics and I need a math symbol for
> > an inexact differential, it is the letter d with a bar across. 
> 
> Normally one is using a lowercase delta according to:
>   https://en.wikipedia.org/wiki/Inexact_differential
> 
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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
> ___

Taco Hoekwater
Elvenkind BV




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 symbol for inexact differential

2019-11-12 Thread w n
True, I should not have used the term inexact differential.
How can I get a math symbol with a "d" and a bar across ?

On Wed, Nov 13, 2019 at 1:11 AM Hans Åberg  wrote:

>
> > On 13 Nov 2019, at 00:26, w n  wrote:
> >
> > Working on some thermodynamics and I need a math symbol for
> > an inexact differential, it is the letter d with a bar across.
>
> Normally one is using a lowercase delta according to:
>   https://en.wikipedia.org/wiki/Inexact_differential
>
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/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 symbol for inexact differential

2019-11-12 Thread Hans Åberg

> On 13 Nov 2019, at 00:26, w n  wrote:
> 
> Working on some thermodynamics and I need a math symbol for
> an inexact differential, it is the letter d with a bar across. 

Normally one is using a lowercase delta according to:
  https://en.wikipedia.org/wiki/Inexact_differential



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 symbol for inexact differential

2019-11-12 Thread w n
Working on some thermodynamics and I need a math symbol for
an inexact differential, it is the letter d with a bar across.
Tried the following but failed

\starttext
\def\dbar{{\mathchar'26\mkern-12mu d}}
\startformula
d u = \dbar q + \dbar w
\stopformula
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Math \not

2019-09-12 Thread Atsuhito Kohda
Dear Aditya and all,

> Is \nequiv defined as a binary operator when used in math

Sorry not binary but binomial.

2019年9月12日(木) 22:20 Aditya Mahajan :

>
> char-def.lua


Ah I should grep not "\nequiv" but "nequiv".  Is there any document
or wiki which explains math characters definition of ConTeXt?

Thanks for your help.
Best regards,
Atsuhito Kohda

>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/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 \not

2019-09-12 Thread Aditya Mahajan

On Thu, 12 Sep 2019, Atsuhito Kohda wrote:


Dear all,

\nequiv seems to work both in a math mode and in an
ordinary text mode so I'd like to clarify the situation.

Is \nequiv defined as a binary operator when used in math
mode (that is \math{A\nequiv B})?

When I grepped \nequiv in /usr/share/texmf/tex/context,
it hitted nothing at all.  Where \nequiv is defined?


char-def.lua

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
___


  1   2   3   4   5   6   7   >