![](https://secure.gravatar.com/avatar/2539b057a569c28a2f7a3df6b41c8871.jpg?s=120&d=mm&r=g)
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.
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/2539b057a569c28a2f7a3df6b41c8871.jpg?s=120&d=mm&r=g)
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?
![](https://secure.gravatar.com/avatar/2539b057a569c28a2f7a3df6b41c8871.jpg?s=120&d=mm&r=g)
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
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?
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/2539b057a569c28a2f7a3df6b41c8871.jpg?s=120&d=mm&r=g)
Many thanks Wolfgang! BTW, how can i know what symbols are in range={0x002b,0x2212}?
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
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
participants (2)
-
Jose Luis Arellano
-
Wolfgang Schuster