Re: [NTG-context] mathdigits no longer works

2017-05-14 Thread Mohammad Hossein Bateni
The version in tex/texmf-context/tex/context/fonts/mkiv/type-imp-mathdigits.mkiv
is a typescript.  Here is a simpler version using defintfontfamily and
definefallbackfamily, which doesn't work in the recent beta (but worked
well back in January).


\definefontfamily [minionmath] [rm] [Minion Pro]
\definefallbackfamily [minionmath] [mm] [dejavusansmono]
[range=digitsextendedarabicindic,offset=digitsnormal]
\definefallbackfamily [minionmath] [mm] [dejavusansmono]
[range=digitsextendedarabicindic,offset=digitsbold,tf=style:bold]
\definefontfamily [minionmath] [mm] [TeX Gyre Pagella Math]

\startttext

\switchtobodyfont[minionmath]

\startformula
{\tf xyz} xyz {\bf xyz} {\bi xyz}, 2+3, {\bf 2+3}
\stopformula

\stoptext


With beta version 2017.01.17 17:37 it used to work and change the digits to
Indic inside math.  With beta version 2017.04.27 01:00, the digits do not
change to Indic.  However, everything in math changes to dejavusansmono
(bold, because that was the last fallback definition?).

On Fri, May 12, 2017 at 7:34 PM, Mohammad Hossein Bateni 
wrote:

> Hi,
>
> The example for replacing Arabic numerals by Indic digits inside math used
> to work (at least) until version 2017.01.17 17:37.
>
> tex/texmf-context/tex/context/fonts/mkiv/type-imp-mathdigits.mkiv
>
> Now in version 2017.04.27 01:00, this does not produce the desired output:
> it's all "Latin" digits.
>
> Has something changed regarding fontfallback definitions?
>
> Thanks,
> MHB
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Location of primes and strange latin modern font

2017-05-14 Thread Akira Kakuto

Will the primes also get fixed? In the latest standalone (I downloaded
it minutes ago), I get the attached result running the same test file.


It seems that the primes are not yet fixed in
mtx-context | current version: 2017.05.14 19:09

It requires, for example:

\starttext
Compare ${u_p}\hskip-.5em''$ and $u''_{\hskip-.63em p}$ with $u''$
\stoptext

Best,
Akira

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

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

Re: [NTG-context] bug with en and em dashes

2017-05-14 Thread Mikael P. Sundqvist
On Sun, May 14, 2017 at 8:21 PM, Pablo Rodriguez  wrote:
> On 05/11/2017 09:25 PM, Mikael P. Sundqvist wrote:
>> I'm not sure what you see but I attach the resulting file, and I see no 
>> problem.
>>
>> $ uname -a
>> Linux hurf 4.8.0-41-generic #44-Ubuntu SMP Fri Mar 3 15:27:17 UTC 2017
>> x86_64 x86_64 x86_64 GNU/Linux
>>
>> mtx-context | current version: 2017.05.09 10:14
>
> Hi Mikael,
>
> sorry for not being accurate enough before (I have just realized it).
>
> It is about copying from the generated document (it also happens with
> your attached PDF file):
>
> \starttext
> \startTEXpage[offset=1em]
> -- ---
>
> – —
> \stopTEXpage
> \stoptext
>
> Select all, copy and paste it on a pure-text editor. You will get two
> and four hyphens for en and em dashes, respectively.
>
> Could you confirm this? Until very recently, I copied en and em dashes
> from PDF documents generated by ConTeXt.
>
> Many thanks for your help,
>
> Pablo
> --
> http://www.ousia.tk
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

Sorry for the misunderstanding. Indeed, I get two and four dashes for
en and em dashes respectively.

/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] bug with en and em dashes

2017-05-14 Thread Pablo Rodriguez
On 05/11/2017 09:25 PM, Mikael P. Sundqvist wrote:
> I'm not sure what you see but I attach the resulting file, and I see no 
> problem.
> 
> $ uname -a
> Linux hurf 4.8.0-41-generic #44-Ubuntu SMP Fri Mar 3 15:27:17 UTC 2017
> x86_64 x86_64 x86_64 GNU/Linux
> 
> mtx-context | current version: 2017.05.09 10:14

Hi Mikael,

sorry for not being accurate enough before (I have just realized it).

It is about copying from the generated document (it also happens with
your attached PDF file):

\starttext
\startTEXpage[offset=1em]
-- ---

– —
\stopTEXpage
\stoptext

Select all, copy and paste it on a pure-text editor. You will get two
and four hyphens for en and em dashes, respectively.

Could you confirm this? Until very recently, I copied en and em dashes
from PDF documents generated by ConTeXt.

Many thanks for your help,

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

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

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

2017-05-14 Thread Pablo Rodriguez
On 05/12/2017 07:58 PM, Jose Luis Arellano wrote:
> Dear list.
> Please your help
> I've troubles to use this code from Wolfgang.
> 
> \definefontfamily [minionmath] [rm] [Minion Pro]
> \definefallbackfamily [minionmath] [mm] [Minion Pro]
> [preset=math:lowercasenormal]
> \definefallbackfamily [minionmath] [mm] [Minion Pro]
> [preset=math:lowercaseitalic]
> \definefallbackfamily [minionmath] [mm] [Minion Pro]
> [preset=math:lowercasebold]
> \definefallbackfamily [minionmath] [mm] [Minion Pro]
> [preset=math:lowercasebolditalic]
> \definefontfamily [minionmath] [mm] [TeX Gyre Pagella Math]
> 
> \setupbodyfont[pagella]

Hi José Luis,

I see two issues here:

1. AfaIk, \definefontfamily should be placed always after
\definefallbackfamily.

2. \setupbodyfont should be set to [minionmath]. With [pagella] you
don’t need to define any font or fallback families.

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] Bug with Enumeration and \dfrac{}{} with Standalone ?

2017-05-14 Thread Fabrice Couvreur
Hello,
I am posting again on the same subject but with more precision.
I use Standalone Context in its latest version.
We can observe that the alignment is not correct with \dfrac{}{} but it is
with {}\ over{}. But if I use Texlive 2016 there are no problems.
Thank you
Fabrice

#
\starttext

\startitemize[n][stopper={.},style=bold,color=darkred]
\item  Soit \math{f} la fonction définie pour tout réel \m{x} différent de
\m{-1} par \math{f(x)=\dfrac{x+2}{x+1}} et \math{\cal C} sa courbe
représentative dans un repère du plan.
  \startitemize[a][stopper={.},style=bold,color=darkred]
   \item L'image de 3 par la fonction \math{f} est :

\startitemize[i,columns,joinedup,three]
 [stopper={.},style=bold,color=darkred,grid=line]

\item \math{{14}\over {3}}

\item \math{{5}\over {4}}

\item \math{2}

\stopitemize

\startitemize[i,columns,joinedup,three]
 [stopper={.},style=bold,color=darkred,grid=line]

\item \math{\dfrac{14}{3}}

\item \math{\dfrac{5}{4}}

\item \math{2}

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

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