ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Math fonts for Nimbus fonts
@ 2020-09-21 13:30 Otared Kavian
  2020-09-21 14:45 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Otared Kavian @ 2020-09-21 13:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I wish to use the Nimbus fonts, but since I didn't know which Math fonts is best adapted to this family, I tried several fonts such as Stix Math, TeX Gyre Math, and so on, but doing this the math-italic does not appear in these fonts: does this mean that I have to set explicitely math-italic in definefontfamily?

Also what is the best math font adapted for Nimbus?

Below is my definition of a fontfamily for Nimbus fonts.

Thanks in advance for any help: Otared K

%% begin definefontfamily-nimbus.tex
\definefontfamily [mainface] [rm] [Nimbus Roman No9 L]
\definefontfamily [mainface] [ss] [Nimbus Sans L] [rscale=0.85]
\definefontfamily [mainface] [tt] [Nimbus Mono] [features=none,rscale=0.95]
\definefontfamily [mainface] [mm] [STIX Math]

%\definefontfamily [mainface] [mm] [Asana Math]
%\definefontfamily [mainface] [mm] [Lucida Bright Math OT]
%\definefontfamily [mainface] [mm] [TeX Gyre Termes Math]
%\definefontfamily [mainface] [mm] [XITSMath]

\setupmathematics[integral=nolimits,lcgreek=normal,default=normal]


\setupbodyfont[mainface]

\starttext

{\rm\tf Regular \it Italic \bf Bold \bi BoldItalic}

{\ss\tf Regular \it Italic \bf Bold \bi BoldItalic}

{\tt\tf Regular \it Italic \bf Bold \bi BoldItalic}

And here are a few math formulas $\alpha^2 + \beta^2 + \gamma^2 = x^2 + y^2 + t^2$.
\startformula
\int_{0}^{2\pi} \sin(x)dx = 0, 
\qquad {\rm e}^{{\rm i}\pi} + 1 = 0, 
\qquad \sum_{n=1}^{\infty}{1 \over n^2} = {\pi^2 \over 6}.
\stopformula

\stoptext
%% end definefontfamily-nimbus.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Math fonts for Nimbus fonts
  2020-09-21 13:30 Math fonts for Nimbus fonts Otared Kavian
@ 2020-09-21 14:45 ` Wolfgang Schuster
  2020-09-21 17:22   ` Otared Kavian
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2020-09-21 14:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Otared Kavian

Otared Kavian schrieb am 21.09.2020 um 15:30:
> Hi,
>
> I wish to use the Nimbus fonts, but since I didn't know which Math fonts is best adapted to this family, I tried several fonts such as Stix Math, TeX Gyre Math, and so on, but doing this the math-italic does not appear in these fonts: does this mean that I have to set explicitely math-italic in definefontfamily?

I don't understand your problem because you tell ConTeXt to use upright 
letters (normal = upright) in math mode with the following setup.

> \setupmathematics[integral=nolimits,lcgreek=normal,default=normal]

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Math fonts for Nimbus fonts
  2020-09-21 14:45 ` Wolfgang Schuster
@ 2020-09-21 17:22   ` Otared Kavian
  0 siblings, 0 replies; 3+ messages in thread
From: Otared Kavian @ 2020-09-21 17:22 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users



> On 21 Sep 2020, at 16:45, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
> 
> Otared Kavian schrieb am 21.09.2020 um 15:30:
> […]
> I don't understand your problem because you tell ConTeXt to use upright letters (normal = upright) in math mode with the following setup.
> 
>> \setupmathematics[integral=nolimits,lcgreek=normal,default=normal]

Oops… indeed. I was stupid to copy-paste \setupmathematics from another test file, without paying attention to « default=normal ».
The resaon for which I did this copy-paste was that with 
	\definefontfamily [mainface] [mm] [STIX Math] [rscale=1.10]
the upper bound of the integral is misplaced and I don't know how to fix it.
In the archives I saw that there is « mathnolimitsmode » which can be added as a font feature, but its values and how to set it up are far from being clear to me.

Thank you so much for your help: Otared K.
___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2020-09-21 17:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 13:30 Math fonts for Nimbus fonts Otared Kavian
2020-09-21 14:45 ` Wolfgang Schuster
2020-09-21 17:22   ` Otared Kavian

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).