Re: [NTG-context] Placement of numbers in numbered equations on the left

2016-09-10 Thread Aditya Mahajan

On Sat, 10 Sep 2016, Otared Kavian wrote:


Hi Hans,

Following up the previous bug report, I tried the latest version, ConTeXt  ver: 
2016.09.09 08:21 MKIV beta, and noticed that you have solved one part of the 
problem with the placement of equation numbers on the left, when using 
\startalign.
Actually the location of those equation numbers is correct as far as the 
horizontal distance is concerned, but it is not vertically.
In the attached PDF (which is the result of the following example) one can see 
that equation number (5) is placed on the grid line 10, while it shoul dbe 
placed on line 11 in alignment with the corresponding formula. Moreover 
equation number (4) does not show up at all (that number should be placed a 
little bit below line 9 of the grid).


I think that we need to create a test suite for math alignment. The 
sources for my old article on math alignment could be the initial source 
of examples.


Unfortunately, these days I mostly use ConTeXt for presentations only (and 
use LaTeX for articles). So, my own documents no longer serve as a test 
suite for the math features.


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

Re: [NTG-context] Problem with \leqalignno

2016-09-10 Thread Aditya Mahajan

On Sun, 11 Sep 2016, Mingranina Gingranina wrote:


Hello All,

I am trying to compile the following example (from
http://wiki.contextgarden.net/Math/Display) with context:

\starttext

\placeformula
\startformula
\leqalignno{c^2 &= a^2 + b^2  &\formulanumber{a} \cr
  a^2 + b^2 &= c^2  &\subformulanumber{b} \cr
  d^2 &= e^2&\formulanumber\cr}
\stopformula

\stoptext

Am I doing something wrong? Any help would be gratefully appreciated.


How about:

\setupformulas[location=left]
\starttext

\startsubformulas
\placeformula[+] \startformula \startalign
  \NC c^2 \EQ a^2 + b^2 \NR[+]
  \NC a^2 + b^2 \EQ c^2 \NR[+]
  \NC d^2 \EQ e^2 \NR
\stopalign \stopformula
\stopsubformulas

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

[NTG-context] Problem with \leqalignno

2016-09-10 Thread Mingranina Gingranina
 Hello All,

 I am trying to compile the following example (from
http://wiki.contextgarden.net/Math/Display) with context:

\starttext

\placeformula
\startformula
\leqalignno{c^2 &= a^2 + b^2  &\formulanumber{a} \cr
   a^2 + b^2 &= c^2  &\subformulanumber{b} \cr
   d^2 &= e^2&\formulanumber\cr}
\stopformula

\stoptext

 but I get the following error message: {{{
.
.
.
tex error   > tex error on line 7 in file
/home/user/math-example.tex: ! Undefined control sequence

 ...er {a} \cr a^2 + b^2 &= c^2 &\subformulanumber
  {b} \cr d^2 &= e^2 &\formu...
\math_both_eqalign_no_normal ...ratchtoks \crcr #2
  \crcr \egroup \math_finish...
l.7d^2 &= e^2&\formulanumber\cr}


 1 \starttext
 2
 3 \placeformula
 4 \startformula
 5 \leqalignno{c^2 &= a^2 + b^2  &\formulanumber{a} \cr
 6a^2 + b^2 &= c^2  &\subformulanumber{b} \cr
 7 >> d^2 &= e^2&\formulanumber\cr}
 8 \stopformula
 9
10 \stoptext
11


?
}}}

 Am I doing something wrong? Any help would be gratefully appreciated.

 Thanks
 Mingranina

 --
 Luatex Version: 0.98.3
 ConTeXt Version: 2016.09.06 19:11 MKIV beta  fmt: 2016.9.9  int:
english/english
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-10 Thread Hans Åberg

> On 10 Sep 2016, at 18:19, Wolfgang Schuster  
> wrote:
> 
>> Hans Åberg 10. September 2016 um 17:31
>> 
>> Does it cover those listed here:
>> https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols
> \setupbodyfont[xits,30pt]

OK. Fine. Adding a comparison with Unicode input, with greek letters as well.

It seems that \mathcal expands to \mathscript: On the Unicode list, they 
mentioned that they plan to add a calligraphic style, parallel with the script 
style. This is the AMS calligraphic font style that originally was intended as 
a script style, but people feel it is a sufficiently different style that can 
be used in combination with the script style.


\setupbodyfont[xits,10pt]

\setupmathematics[lcgreek=normal, default=normal]

\starttext

\startformula
  \startalign
  \NC
{\mathtf A}
{\mathbf A}
{\mathit A}
{\mathbi A}
{\mathss A}
{\mathss\mathbf A}
{\mathss\mathit A}
{\mathss\mathbi A}
{\mathscript A}
{\mathscript\mathbf A}
{\mathfraktur A}
{\mathfraktur\mathbf A}
{\mathtt A}
{\mathblackboard A}
  \,\NC
{\mathtf α}
{\mathbf α}
{\mathit α}
{\mathbi α}
{\mathss\mathbf α}
{\mathss\mathbi α}
  \NR
  \NC A 퐀 퐴 푨 햠 헔 혈 혼 풜 퓐 프 핬 홰 픸\,\NC α 훂 훼 휶 흰 힪\NR
  \stopalign
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-10 Thread Wolfgang Schuster

Hans Åberg 
10. September 2016 um 17:31

Does it cover those listed here:
https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols

\setupbodyfont[xits,30pt]

\starttext

\startformula
{\mathtf A}
{\mathit A}
{\mathbf A}
{\mathbi A}
{\mathss A}
{\mathss\mathit A}
{\mathss\mathbf A}
{\mathss\mathbi A}
{\mathtt A}
{\mathscript A}
{\mathscript\mathbf A}
{\mathfraktur A}
{\mathfraktur\mathbf A}
{\mathblackboard A}
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-10 Thread Hans Åberg

> On 10 Sep 2016, at 17:13, Aditya Mahajan  wrote:
> 
> On Sat, 10 Sep 2016, Hans Åberg wrote:
> 
>>> On 10 Sep 2016, at 16:06, Hans Hagen  wrote:
>>> On 9/10/2016 12:57 PM, Hans Åberg wrote:
>> 
 The STIX fonts, and XITS then, support Unicode math semantic styles. So 
 perhaps the TeX commands should expand to these:
>>> what tex commands ... we're talking characters and they don't expand
>> 
>> If one writes ASCII ${\bf x} {\bi x}$, it would expand to the expected 
>> Unicode $퐱 풙$.
> 
> That is already the case.

Does it cover those listed here:
  https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols


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

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

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-10 Thread Aditya Mahajan

On Sat, 10 Sep 2016, Hans Åberg wrote:


On 10 Sep 2016, at 16:06, Hans Hagen  wrote:

On 9/10/2016 12:57 PM, Hans Åberg wrote:



The STIX fonts, and XITS then, support Unicode math semantic styles. So perhaps 
the TeX commands should expand to these:


what tex commands ... we're talking characters and they don't expand


If one writes ASCII ${\bf x} {\bi x}$, it would expand to the expected Unicode 
$퐱 풙$.


That is already the case.

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

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-10 Thread Hans Åberg

> On 10 Sep 2016, at 16:06, Hans Hagen  wrote:
> 
> On 9/10/2016 12:57 PM, Hans Åberg wrote:

>> The STIX fonts, and XITS then, support Unicode math semantic styles. So 
>> perhaps the TeX commands should expand to these:
> 
> what tex commands ... we're talking characters and they don't expand

If one writes ASCII ${\bf x} {\bi x}$, it would expand to the expected Unicode 
$퐱 풙$.


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

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

Re: [NTG-context] Placement of numbers in numbered equations on the left

2016-09-10 Thread Otared Kavian
Hi Hans,

Following up the previous bug report, I tried the latest version, ConTeXt  ver: 
2016.09.09 08:21 MKIV beta, and noticed that you have solved one part of the 
problem with the placement of equation numbers on the left, when using 
\startalign.
Actually the location of those equation numbers is correct as far as the 
horizontal distance is concerned, but it is not vertically.
In the attached PDF (which is the result of the following example) one can see 
that equation number (5) is placed on the grid line 10, while it shoul dbe 
placed on line 11 in alignment with the corresponding formula. Moreover 
equation number (4) does not show up at all (that number should be placed a 
little bit below line 9 of the grid).

Thanks in advance for your time.
Best regards: OK

%%% begin example bug-mathalign.tex
\showgrid

\starttext
With the default setting, that is \type{\setupformulas[location=right]} one 
gets:
\placeformula
\startformula
\startalign
\NC \exp(t_1)\exp(t_2)\NC = x_1x_2=\exp(\log(x_1x_2))\NR[eq:explag0]
\NC \NC =\exp(\log x_1+\log x_2) = \exp(t_1+t_2).\NR[eq:explag1]
\stopalign
\stopformula

\placeformula
\startformula
1+1=2
\stopformula

\setupformulas[location=left]
While with \type{\setupformulas[location=left]} one gets:

\placeformula
\startformula
\startalign
\NC \exp(t_1)\exp(t_2)\NC = x_1x_2=\exp(\log(x_1x_2))\NR[eq:explag0]
\NC \NC =\exp(\log x_1+\log x_2) = \exp(t_1+t_2).\NR[eq:explag1]
\stopalign
\stopformula

\placeformula
\startformula
2+3=5
\stopformula
\stoptext
%%% begin example bug-mathalign.tex



bug-mathalign-left.pdf
Description: Adobe PDF document



> On 7 Sep 2016, at 20:25, Otared Kavian  wrote:
> 
> Hi Hans,
> 
> Thank you for having fixed the issue with numbered equations in math aligned 
> environment, noticed and reported by Mikael Sundqvist. 
> However the problem is solved only when the numbers are on the right: when 
> the numbers are on the left, there is still a discrepancy between the 
> location of numbers in equations numbered in an aligned environment and those 
> which are by themselves.
> Please have a look at the attached PDF which is the result of the following 
> example (using ConTeXt  ver: 2016.09.06 19:11 MKIV beta).
> Best regards: OK
> 
> %%% begin math-align.tex
> \starttext
> \placeformula
> \startformula
> \startalign
> \NC \exp(t_1)\exp(t_2)\NC = x_1x_2=\exp(\log(x_1x_2))\NR
> \NC \NC =\exp(\log x_1+\log x_2) = \exp(t_1+t_2).\NR[eq:explag1]
> \stopalign
> \stopformula
> 
> \placeformula
> \startformula
> 1+1=2
> \stopformula
> 
> \setupformulas[location=left]
> with \type{\setupformulas[location=left]}
> 
> \placeformula
> \startformula
> \startalign
> \NC \exp(t_1)\exp(t_2)\NC = x_1x_2=\exp(\log(x_1x_2))\NR
> \NC \NC =\exp(\log x_1+\log x_2) = \exp(t_1+t_2).\NR[eq:explag1]
> \stopalign
> \stopformula
> 
> \placeformula
> \startformula
> 2+3=5
> \stopformula
> \stoptext
> %%% end math-align.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-10 Thread Hans Hagen

On 9/10/2016 12:57 PM, Hans Åberg wrote:



On 10 Sep 2016, at 10:09, Wolfgang Schuster  wrote:



Most math fonts come only with a regular style which provides upright, italic, 
bold and bolditalic symbols but all of them part of the same font, only a few 
fonts provide also a bold style (which is usefull in sections) which comes also 
with upright – and sometimes bold – symbols.


\setupbodyfont[xits]
…


The STIX fonts, and XITS then, support Unicode math semantic styles. So perhaps 
the TeX commands should expand to these:


what tex commands ... we're talking characters and they don't expand

there is a pseudo bold mode but the number of bold symbols is small so 
it's not that useful



\setupbodyfont[xits,10pt]

\setupmathematics[lcgreek=normal, default=normal]

\starttext

\startformula
  x 퐱 푥 풙 헑 혅 혹 홭 퓍 픁 픵 햝 횡 합 ξ 훏 휉 흃 흽 ힷ
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

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

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

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-10 Thread Wolfgang Schuster

Jose Luis Arellano 
10. September 2016 um 11:20
Thanks Wolfgang for explanation, as always very clear.

Another related question:
If I want to use italic numbers in math, I use:
\definefallbackfamily[...][math][...][tf=style:italic,preset=math:digitsnormal]

But I lose upright numbers this way.

How can I solve this issue. I've tried without success:
\definefallbackfamily[...][math][...][preset=math:digitsitalic]

Math symbols in MkIV are (mostly?) restricted to Unicode which
doesn’t define italic digits (but you can choose between regular,
bold, sans serif, sans serif bold and monospaced).

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

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-10 Thread Jose Luis Arellano
Thanks Wolfgang for explanation, as always very clear.

Another related question:
If I want to use italic numbers in math, I use:
\definefallbackfamily[...][math][...][tf=style:italic,preset=math:digitsnormal]

But I lose upright numbers this way.

How can I solve this issue. I've tried without success:
\definefallbackfamily[...][math][...][preset=math:digitsitalic]

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

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

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-10 Thread Hans Hagen

On 9/10/2016 10:09 AM, Wolfgang Schuster wrote:

Jose Luis Arellano 
10. September 2016 um 09:56

For Math.

The \tf and \bf commands in math aren’t font switches like in text.

Most math fonts come only with a regular style which provides upright,
italic, bold and bolditalic symbols but all of them part of the same
font, only a few fonts provide also a bold style (which is usefull in
sections) which comes also with upright – and sometimes bold – symbols.


\setupbodyfont[xits]

\starttext

\startformula
{\tf xyz} \; xyz \; {\bf xyz} \; {\bi xyz} \quad
\mb {\tf xyz} \; xyz \; {\bf xyz} \; {\bi xyz}
\stopformula

\stoptext


Depending on if the font project can arrange funding funding for it, the 
texgyre project will come up with a few bold math fonts (so bold + 
heavy) and sans math for titling etc. as well as a monospace math font 
(dejavu based) for editing and documentation.


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

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-10 Thread Wolfgang Schuster

Jose Luis Arellano 
10. September 2016 um 09:56

For Math.

The \tf and \bf commands in math aren’t font switches like in text.

Most math fonts come only with a regular style which provides upright, 
italic, bold and bolditalic symbols but all of them part of the same 
font, only a few fonts provide also a bold style (which is usefull in 
sections) which comes also with upright – and sometimes bold – symbols.



\setupbodyfont[xits]

\starttext

\startformula
{\tf xyz} \; xyz \; {\bf xyz} \; {\bi xyz} \quad
\mb {\tf xyz} \; xyz \; {\bf xyz} \; {\bi xyz}
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-10 Thread Jose Luis Arellano
2016-09-10 4:54 GMT-03:00 Wolfgang Schuster :
> Is this for normal text or math?
>
> Wolfgang

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

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

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-10 Thread Wolfgang Schuster

Jose Luis Arellano 
10. September 2016 um 09:38
Dear Wolfgang.
There is way to instruct to (\definefallbackfamily) to use shapes
defined in typescript (eg: mi,mb)?

Is this for normal text or math?

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

Re: [NTG-context] Bold italic font in Math (\definefallbackfamily)

2016-09-10 Thread Jose Luis Arellano
Dear Wolfgang.
There is way to instruct to (\definefallbackfamily) to use shapes
defined in typescript (eg: mi,mb)?

\starttypescript [serif] [Minion Pro]
\definebodyfont [default] [rm]
[tf=name:minionproregular sa 1,
it=name:minionproit sa 1,
mb=name:minionpromedium sa 1,
mi=name:minionpromediumit sa 1,
bf=name:minionprobold sa 1,
bi=name:minionproboldit sa 1]
\stoptypescript
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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