Re: [NTG-context] next beta

2017-06-17 Thread Jeong Dal
Dear Hans,

I updated ConTeXt beta today and run your sample for long formula.
It works nice and it is the feature what many math people want I think.
Thank you for your concern.

One thing that I’d like say is that a new line in the splitted long formula 
usually starts with operations in many math books.
But, in the ourput  of your example, every line ends with ‘+’ sign and begin a 
new line with a ‘number’.

Would you please check it once more?

Thank you again for your work, and have a nice weekend.

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] Choosing font range

2017-06-17 Thread Hans Åberg

> On 17 Jun 2017, at 15:16, Hans Åberg  wrote:
> 
>> On 17 Jun 2017, at 12:11, Pablo Rodriguez  wrote:
>> 
>> On 06/17/2017 10:11 AM, Hans Åberg wrote:
>>> [...]
>>> Yes, that is the problem. It works fine with latest beta.
>>> 
>>> I found a strange bug with the \tt command: when copying from the
>>> PDF, the spaces disappear. With your header above, I get (the
>>> comments is the text copy from the PDF):
>>> [...]
>>> That is, when adding a single symbol, above "α", but it does not
>>> seem to matter which, the spaces disappear.
>> 
>> I get right spaces with latest beta...
> 
> I do not get the Unicode subscript and superscript numbers in \tt and 
> \starttyping:

It is due to the font: they are in STIX Two Math:

\definefallbackfamily[mainface][tt][TeX Gyre Cursor]
[range={basiclatin, digitslatin}, force=yes]

\definefontfamily[mainface][rm][TeX Gyre Pagella]
\definefontfamily[mainface][mm][TeX Gyre Pagella Math]
\definefontfamily[mainface][tt][STIX Two Math]

\setupbodyfont[mainface]

\setupmathematics[lcgreek=normal, default=normal]

\starttext

\startformula
 푨¹₁, 푨¹₁ ⇒ 푩¹₁ ⊢ 푩¹₁.
\stopformula

\starttyping
 rule MP. 푨¹₁, 푨¹₁ ⇒ 푩¹₁ ⊢ 푩¹₁.
\stoptyping

{\tt rule MP. 푨¹₁, 푨¹₁ ⇒ 푩¹₁ ⊢ 푩¹₁.}

\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] Choosing font range

2017-06-17 Thread Hans Åberg

> On 17 Jun 2017, at 12:11, Pablo Rodriguez  wrote:
> 
> On 06/17/2017 10:11 AM, Hans Åberg wrote:
>> [...]
>> Yes, that is the problem. It works fine with latest beta.
>> 
>> I found a strange bug with the \tt command: when copying from the
>> PDF, the spaces disappear. With your header above, I get (the
>> comments is the text copy from the PDF):
>> [...]
>> That is, when adding a single symbol, above "α", but it does not
>> seem to matter which, the spaces disappear.
> 
> I get right spaces with latest beta...

I do not get the Unicode subscript and superscript numbers in \tt and 
\starttyping:

\definefallbackfamily[mainface][tt][TeX Gyre Cursor]
[range={basiclatin, digitslatin}, force=yes]

 \definefontfamily[mainface][rm][TeX Gyre Pagella]
 \definefontfamily[mainface][mm][TeX Gyre Pagella Math]
 \definefontfamily[mainface][tt][TeX Gyre Pagella Math]

 \setupbodyfont[mainface]

 \setupmathematics[lcgreek=normal, default=normal]

 \starttext

 \startformula
   푨¹₁, 푨¹₁ ⇒ 푩¹₁ ⊢ 푩¹₁.
 \stopformula

 \starttyping
   rule MP. 푨¹₁, 푨¹₁ ⇒ 푩¹₁ ⊢ 푩¹₁.
 \stoptyping

{\tt rule MP. 푨¹₁, 푨¹₁ ⇒ 푩¹₁ ⊢ 푩¹₁.}

 \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] STIX vs XITS

2017-06-17 Thread Hans Åberg

> On 17 Jun 2017, at 13:03, Hans Hagen  wrote:
> 
> On 6/17/2017 10:30 AM, Hans Åberg wrote:
>> It says that XITS is an OpenType version of STIX on [1], but the latter now 
>> supports it. Does that mean that one can now use the latter directly?
>> 1. http://wiki.contextgarden.net/Math_fonts
> i don't know as i never use those fonts in documents; maybe the design is 
> different; is xits maintained, that is the question ...

The glyphs should be the same.

> \usemodule[math-repertoire]
> 
> \showmathcharacterssetbodyfonts{xits,stixtwo,modern,pagella,termes,bonum,schola,dejavu}
> 
> \starttext
>\showmathfontrepertoire
> \stoptext
> 
> some chars in stixtwo are smaller, some larger, so not compatible

It is different font, so not compatible. Of the other fonts, STIX has very tall 
and narrow integral signs. There, Pagella looks better, but has strange looking 
Greek italic. There, Termes is even better, and nice weight on the sums, but 
has very narrow universal quantifiers. It has otherwise a nice weight in text 
boldface. Bonum has strange open Greek letters, and very thin, weird looking 
summation sign. I looked for serif DejaVu monospace, but could not find it: 
sans-serif thought to aid low resolution screens, but one is switching now.


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

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

2017-06-17 Thread Hans Åberg

> On 17 Jun 2017, at 12:11, Pablo Rodriguez  wrote:
> 
> On 06/17/2017 10:11 AM, Hans Åberg wrote:
>> [...]
>> Yes, that is the problem. It works fine with latest beta.
>> 
>> I found a strange bug with the \tt command: when copying from the
>> PDF, the spaces disappear. With your header above, I get (the
>> comments is the text copy from the PDF):
>> [...]
>> That is, when adding a single symbol, above "α", but it does not
>> seem to matter which, the spaces disappear.
> 
> I get right spaces with latest beta from:

> I used evince, xpdf, Acrobat, FoxitReader and mupdf. (Output enclosed
> with \starttext commented.)

It looks right in the PDF, but not when copying them and pasting into a text 
only file. 

>> It does not happen with \starttext, though.
> 
> Sorry, but I’m afraid I don’t know what you mean. I get the same results
> commenting \starttext.

By contrast, copy-PDF paste text came our right here.


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

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

2017-06-17 Thread Hans Hagen

On 6/17/2017 10:30 AM, Hans Åberg wrote:

It says that XITS is an OpenType version of STIX on [1], but the latter now 
supports it. Does that mean that one can now use the latter directly?

1. http://wiki.contextgarden.net/Math_fonts
i don't know as i never use those fonts in documents; maybe the design 
is different; is xits maintained, that is the question ...



\usemodule[math-repertoire]

\showmathcharacterssetbodyfonts{xits,stixtwo,modern,pagella,termes,bonum,schola,dejavu}

\starttext
\showmathfontrepertoire
\stoptext

some chars in stixtwo are smaller, some larger, so not compatible

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] Choosing font range

2017-06-17 Thread Pablo Rodriguez
On 06/17/2017 10:11 AM, Hans Åberg wrote:
> [...]
> Yes, that is the problem. It works fine with latest beta.
> 
> I found a strange bug with the \tt command: when copying from the
> PDF, the spaces disappear. With your header above, I get (the
> comments is the text copy from the PDF):
> [...]
> That is, when adding a single symbol, above "α", but it does not
> seem to matter which, the spaces disappear.

I get right spaces with latest beta from:

\definefallbackfamily[mainface][tt][TeX Gyre Cursor]
 [range={basiclatin, digitslatin}, force=yes]

\definefontfamily[mainface][rm][TeX Gyre Pagella]
\definefontfamily[mainface][mm][TeX Gyre Pagella Math]
\definefontfamily[mainface][tt][TeX Gyre Pagella Math]

\setupbodyfont[mainface]

\setupmathematics[lcgreek=normal, default=normal]

\starttext
{\tt axiom A1. 푨 ⇒ 푩.}


{\tt axiom A1. 푨 ⇒ 푩 α.}
\stoptext

I used evince, xpdf, Acrobat, FoxitReader and mupdf. (Output enclosed
with \starttext commented.)

> It does not happen with \starttext, though.

Sorry, but I’m afraid I don’t know what you mean. I get the same results
commenting \starttext.

Pablo
-- 
http://www.ousia.tk


a.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] Choosing font range

2017-06-17 Thread Hans Åberg

> On 17 Jun 2017, at 08:33, Henri Menke  wrote:
> 
> The fallback mechanism has changed in a non-trivial manner since TL2017.  You 
> have to go with beta.

I looked at various fonts, and they all have at least some math characters that 
look strange to me. So I figure one has to make a virtual font from ranges.


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

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

2017-06-17 Thread Hans Åberg
It says that XITS is an OpenType version of STIX on [1], but the latter now 
supports it. Does that mean that one can now use the latter directly?

1. http://wiki.contextgarden.net/Math_fonts


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

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

2017-06-17 Thread Hans Åberg

> On 17 Jun 2017, at 08:33, Henri Menke  wrote:
> 
> On Fri, 2017-06-16 at 22:07 +0200, Hans Åberg wrote:
>>> 
>>> On 16 Jun 2017, at 21:46, Pablo Rodriguez  wrote:
>>> 
>>> On 06/16/2017 09:34 PM, Hans Åberg wrote:
 
 Thank you for the help. But the math characters do not show in \tt,
 as in the example below. (Tried with TeX Live 2017.)
>>> I don’t do math (at all, not only with ConTeXt), but the following
>>> command seems to work:
>>> 
>>>\definefontfamily[mainface][tt][TeX Gyre Pagella Math]
>> Great! That seems to work in \tt, but for some reson not with \starttyping. 
>> Probably one should
>> set the font, But I can't find info about it.
> 
> The fallback mechanism has changed in a non-trivial manner since TL2017.  You 
> have to go with beta.

Yes, it works in latest beta. There is a TeX Live updating utility, at least on 
the MacOS distribution, that allows for server synchronizations between the 
yearly updates.  

I found a strange bug with the \tt command, where the spaces disappear when 
copying from the PDF—see my other post in this thread. It occurs when adding a 
single symbol; it does not seem to matter which. It does not happen with 
\starttext, though.


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

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

2017-06-17 Thread Hans Åberg

> On 17 Jun 2017, at 07:36, Pablo Rodriguez  wrote:
> 
> On 06/16/2017 10:07 PM, Hans Åberg wrote:
>>> On 16 Jun 2017, at 21:46, Pablo Rodriguez  wrote:
>>> [...]
>>> I don’t do math (at all, not only with ConTeXt), but the following
>>> command seems to work:
>>> 
>>>   \definefontfamily[mainface][tt][TeX Gyre Pagella Math]
>> 
>> Great! That seems to work in \tt, but for some reason not with
>> \starttyping. Probably one should set the font, But I can't find info
>> about it.
> 
> This is my sample:
> 
>\definefallbackfamily[mainface][tt][TeX Gyre Cursor]
> [range={basiclatin, digitslatin}, force=yes]
> 
>\definefontfamily[mainface][rm][TeX Gyre Pagella]
>\definefontfamily[mainface][mm][TeX Gyre Pagella Math]
>\definefontfamily[mainface][tt][TeX Gyre Pagella Math]
> 
>\setupbodyfont[mainface]
> 
>\setupmathematics[lcgreek=normal, default=normal]
> 
>\starttext
>\startformula
>  푨 ⇒ (푩 ⇒ 푨)
>\stopformula
> 
>\starttyping
>  axiom B1. 푨 ⇒ (푩 ⇒ 푨).
>\stoptyping
> 
>{\tt axiom A1. 푨 ⇒ (푩 ⇒ 푨).}
> 
> With latest beta (from 2017.06.15 22:10) and LuaTeX-1.05.0, I get three
> formulas typeset with Pagella Math. (Output attached.)
> 
> If this doesn’t work with TeX Live 2017, you might try the latest beta
> from the ConTeXt Suite.


Yes, that is the problem. It works fine with latest beta.

I found a strange bug with the \tt command: when copying from the PDF, the 
spaces disappear. With your header above, I get (the comments is the text copy 
from the PDF):

{\tt axiom A1. 푨 ⇒ 푩.}
%axiom A1. 푨 ⇒ 푩.

{\tt axiom A1. 푨 ⇒ 푩 α.}
%axiomA1. 푨⇒푩α.

That is, when adding a single symbol, above "α", but it does not seem to matter 
which, the spaces disappear.

It does not happen with \starttext, though.


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

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

2017-06-17 Thread Henri Menke
On Fri, 2017-06-16 at 22:07 +0200, Hans Åberg wrote:
> > 
> > On 16 Jun 2017, at 21:46, Pablo Rodriguez  wrote:
> > 
> > On 06/16/2017 09:34 PM, Hans Åberg wrote:
> > > 
> > > Thank you for the help. But the math characters do not show in \tt,
> > > as in the example below. (Tried with TeX Live 2017.)
> > I don’t do math (at all, not only with ConTeXt), but the following
> > command seems to work:
> > 
> >    \definefontfamily[mainface][tt][TeX Gyre Pagella Math]
> Great! That seems to work in \tt, but for some reson not with \starttyping. 
> Probably one should
> set the font, But I can't find info about it.

The fallback mechanism has changed in a non-trivial manner since TL2017.  You 
have to go with beta.

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