ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* About \definefallbackfamily
@ 2016-08-28  4:44 Jose Luis Arellano
  2016-08-28 21:21 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Jose Luis Arellano @ 2016-08-28  4:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 785 bytes --]

Hello guys, am working with some basic maths here and the latest version of
ConTexT. However, i think something has changed in ConTexT, because the
following MWE, from Aditya, was working fine before:

\definefontfamily[mainface][rm][Minion Pro]
\definefallbackfamily[mainface][math][Minion
Pro][math:lowercaseitalic][force=yes]
\definefallbackfamily[mainface][math][Minion
Pro][math:digitsnormal][force=yes]
\definefontfamily[mainface][math][TeX Gyre Pagella Math]
\setupbodyfont[mainface]

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

Now, the italic font of Minion Pro is replaced for regular.
Well, i have two questions:

1) How can i set the Minion Pro italic font for math?
2) Is there any way to set the italic font for numbers too in math?

Thank you guys.

[-- Attachment #1.2: Type: text/html, Size: 1043 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: About \definefallbackfamily
  2016-08-28  4:44 About \definefallbackfamily Jose Luis Arellano
@ 2016-08-28 21:21 ` Wolfgang Schuster
  2016-08-28 22:45   ` Jose Luis Arellano
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2016-08-28 21:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1227 bytes --]

> Jose Luis Arellano <mailto:jose.4rellano@gmail.com>
> 28. August 2016 um 06:44
> Hello guys, am working with some basic maths here and the latest 
> version of ConTexT. However, i think something has changed in ConTexT, 
> because the following MWE, from Aditya, was working fine before:
>
> \definefontfamily[mainface][rm][Minion Pro]
> \definefallbackfamily[mainface][math][Minion 
> Pro][math:lowercaseitalic][force=yes]
> \definefallbackfamily[mainface][math][Minion 
> Pro][math:digitsnormal][force=yes]
> \definefontfamily[mainface][math][TeX Gyre Pagella Math]
> \setupbodyfont[mainface]
>
> \starttext
> \startformula
> c^2 = a^2 + b^2
> \stopformula
> \stoptext
>
> Now, the italic font of Minion Pro is replaced for regular.
It’s a bug but I fixed it.
> Well, i have two questions:
>
> 1) How can i set the Minion Pro italic font for math?
Wait for the next ConTeXt version.
> 2) Is there any way to set the italic font for numbers too in math?
\definefontfamily     [mainface] [rm] [Minion Pro]
\definefallbackfamily [mainface] [mm] [Minion Pro] 
[range=digitsnormal,tf=style:italic]
\definefontfamily     [mainface] [mm] [TeX Gyre Pagella Math]

\setupbodyfont[mainface]

\starttext
\m{123}
\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 3073 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: About \definefallbackfamily
  2016-08-28 21:21 ` Wolfgang Schuster
@ 2016-08-28 22:45   ` Jose Luis Arellano
  2016-08-29  5:06     ` Jose Luis Arellano
  2016-08-29  7:31     ` Wolfgang Schuster
  0 siblings, 2 replies; 8+ messages in thread
From: Jose Luis Arellano @ 2016-08-28 22:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks Wolfgang,

For now, am using this work around to get italic in maths:

\definefallbackfamily[mainface][math][Minion
Pro][tf=style:italic,preset=math:lowercaseitalic]

I have another couple of questions:

1) I am using a font that have the feature onum enabled by default, so
how can i unset this feature for math (lnum,tnum)?
2)  Is there any way to use only some symbols like +, - from Minion
Pro in math mode?
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: About \definefallbackfamily
  2016-08-28 22:45   ` Jose Luis Arellano
@ 2016-08-29  5:06     ` Jose Luis Arellano
  2016-08-29  7:37       ` Wolfgang Schuster
  2016-08-29  7:31     ` Wolfgang Schuster
  1 sibling, 1 reply; 8+ messages in thread
From: Jose Luis Arellano @ 2016-08-29  5:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello list,
I have another question for you, it is about diacritic's replacement
in math mode.

\definefontfamily[mainface][serif][Minion Pro]
\definefallbackfamily[mainface][math][Minion
Pro][tf=style:italic,preset=math:lowercaseitalic]
\definefallbackfamily[mainface][math][Minion
Pro][tf=style:italic,preset=math:uppercaseitalic]
\definefontfamily[mainface][math][Latin Modern Math]
\setupbodyfont[mainface]

\starttext
{\it Piña}\par
\m{Pi\tilde{n}a}\par
{\it Canción}\par
\m{Canci\acute{o}n}
\stoptext

As you can see, the accents are replaced with Latin Modern Math font.
So, how can i use accents from Minion Pro?

2016-08-28 19:45 GMT-03:00 Jose Luis Arellano <jose.4rellano@gmail.com>:
> Thanks Wolfgang,
>
> For now, am using this work around to get italic in maths:
>
> \definefallbackfamily[mainface][math][Minion
> Pro][tf=style:italic,preset=math:lowercaseitalic]
>
> I have another couple of questions:
>
> 1) I am using a font that have the feature onum enabled by default, so
> how can i unset this feature for math (lnum,tnum)?
> 2)  Is there any way to use only some symbols like +, - from Minion
> Pro in math mode?
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: About \definefallbackfamily
  2016-08-28 22:45   ` Jose Luis Arellano
  2016-08-29  5:06     ` Jose Luis Arellano
@ 2016-08-29  7:31     ` Wolfgang Schuster
  1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2016-08-29  7:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1139 bytes --]

> Jose Luis Arellano <mailto:jose.4rellano@gmail.com>
> 29. August 2016 um 00:45
> Thanks Wolfgang,
>
> For now, am using this work around to get italic in maths:
>
> \definefallbackfamily[mainface][math][Minion
> Pro][tf=style:italic,preset=math:lowercaseitalic]
>
> I have another couple of questions:
>
> 1) I am using a font that have the feature onum enabled by default, so
> how can i unset this feature for math (lnum,tnum)?
You have to create a font feature where you change the number style and 
apply it with the features key.

\definefontfeature[mathdigits][default][mode=base,onum=no,lnum=yes]

\definefallbackfamily [...] [mm] [...] 
[preset=math:digitsnormal,features=mathdigits]

> 2) Is there any way to use only some symbols like +, - from Minion
> Pro in math mode?
You can select certain characters with the range key but you have to 
know the unicode numbers.

\definefontfamily     [mainface] [rm] [Minion Pro]
\definefallbackfamily [mainface] [mm] [Minion Pro] [range={0x002b,0x2212}]
\definefontfamily     [mainface] [mm] [TeX Gyre Pagella Math]

\setupbodyfont[mainface]

\starttext
\m{12 + -3}
\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2531 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: About \definefallbackfamily
  2016-08-29  5:06     ` Jose Luis Arellano
@ 2016-08-29  7:37       ` Wolfgang Schuster
  2016-08-29  8:38         ` Jose Luis Arellano
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2016-08-29  7:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1046 bytes --]

> Jose Luis Arellano <mailto:jose.4rellano@gmail.com>
> 29. August 2016 um 07:06
> Hello list,
> I have another question for you, it is about diacritic's replacement
> in math mode.
>
> \definefontfamily[mainface][serif][Minion Pro]
> \definefallbackfamily[mainface][math][Minion
> Pro][tf=style:italic,preset=math:lowercaseitalic]
> \definefallbackfamily[mainface][math][Minion
> Pro][tf=style:italic,preset=math:uppercaseitalic]
> \definefontfamily[mainface][math][Latin Modern Math]
> \setupbodyfont[mainface]
>
> \starttext
> {\it Piña}\par
> \m{Pi\tilde{n}a}\par
> {\it Canción}\par
> \m{Canci\acute{o}n}
> \stoptext
>
> As you can see, the accents are replaced with Latin Modern Math font.
> So, how can i use accents from Minion Pro?
Use the \mathtext (ot \mathtextit, \mathtextbf etc.) command.

\definefontfamily [mainface] [rm] [Minion Pro]
\definefontfamily [mainface] [mm] [Latin Modern Math]

\setupbodyfont[mainface]

\starttext

{\it Piña}

\m{\mathtextit{Piña}}

{\it Canción}

\m{\mathtextit{Canción}}

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2140 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: About \definefallbackfamily
  2016-08-29  7:37       ` Wolfgang Schuster
@ 2016-08-29  8:38         ` Jose Luis Arellano
  2016-08-29  8:48           ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Jose Luis Arellano @ 2016-08-29  8:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Many thanks Wolfgang!
BTW, how can i know what symbols are in range={0x002b,0x2212}?
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: About \definefallbackfamily
  2016-08-29  8:38         ` Jose Luis Arellano
@ 2016-08-29  8:48           ` Wolfgang Schuster
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2016-08-29  8:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 258 bytes --]

> Jose Luis Arellano <mailto:jose.4rellano@gmail.com>
> 29. August 2016 um 10:38
> Many thanks Wolfgang!
> BTW, how can i know what symbols are in range={0x002b,0x2212}?
http://www.decodeunicode.org/en/u+002B
http://www.decodeunicode.org/en/u+2212

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1428 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-08-29  8:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-28  4:44 About \definefallbackfamily Jose Luis Arellano
2016-08-28 21:21 ` Wolfgang Schuster
2016-08-28 22:45   ` Jose Luis Arellano
2016-08-29  5:06     ` Jose Luis Arellano
2016-08-29  7:37       ` Wolfgang Schuster
2016-08-29  8:38         ` Jose Luis Arellano
2016-08-29  8:48           ` Wolfgang Schuster
2016-08-29  7:31     ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).