ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Setting style for \mfunction
@ 2017-10-08 13:27 Aditya Mahajan
  2017-10-09  9:56 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2017-10-08 13:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

In the past, it was possible to use the text font for math functions using
\setupmathematics[style=normal]
https://mailman.ntg.nl/pipermail/ntg-context/2015/082212.html

However, that does not work now. Here is a minimal example:

\usetypescriptfile[euler]
\definetypeface[mainfont][rm][serif][pagella][default]
\definetypeface[mainfont][mm][math] [pagellaovereuler][default]
\definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8, features=none]

\setupbodyfont[mainfont]

\setupmathematics[lcgreek=normal, ucgreek=normal, default=normal]
\setupmathematics[functionstyle=normal]

\starttext
$sin$ vs $\sin$
\stoptext

Notice that $\sin$ prints $normalsin$.

If I change to `function=\tf`, even then $\sin$ uses mathrm font rather 
than textrm font.

How do I get textrm for math functions?

Thanks,
Aditya
___________________________________________________________________________________
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: Setting style for \mfunction
  2017-10-08 13:27 Setting style for \mfunction Aditya Mahajan
@ 2017-10-09  9:56 ` Hans Hagen
  2017-10-09 13:50   ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2017-10-09  9:56 UTC (permalink / raw)
  To: ntg-context

On 10/8/2017 3:27 PM, Aditya Mahajan wrote:
> Hi,
> 
> In the past, it was possible to use the text font for math functions using
> \setupmathematics[style=normal]
> https://mailman.ntg.nl/pipermail/ntg-context/2015/082212.html
> 
> However, that does not work now. Here is a minimal example:
> 
> \usetypescriptfile[euler]
> \definetypeface[mainfont][rm][serif][pagella][default]
> \definetypeface[mainfont][mm][math] [pagellaovereuler][default]
> \definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8, 
> features=none]
> 
> \setupbodyfont[mainfont]
> 
> \setupmathematics[lcgreek=normal, ucgreek=normal, default=normal]
> \setupmathematics[functionstyle=normal]
> 
> \starttext
> $sin$ vs $\sin$
> \stoptext
> 
> Notice that $\sin$ prints $normalsin$.
> 
> If I change to `function=\tf`, even then $\sin$ uses mathrm font rather 
> than textrm font.
> 
> How do I get textrm for math functions?
in math-ini.mkiv replace

\??alternativestyles

by

\??alternativestyle

(so singular)

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
___________________________________________________________________________________

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

* Re: Setting style for \mfunction
  2017-10-09  9:56 ` Hans Hagen
@ 2017-10-09 13:50   ` Aditya Mahajan
  0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2017-10-09 13:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 9 Oct 2017, Hans Hagen wrote:

> On 10/8/2017 3:27 PM, Aditya Mahajan wrote:
>> Hi,
>> 
>> In the past, it was possible to use the text font for math functions 
> using
>> \setupmathematics[style=normal]
>> https://mailman.ntg.nl/pipermail/ntg-context/2015/082212.html
>> 
>> However, that does not work now.
>> How do I get textrm for math functions?
> in math-ini.mkiv replace
>
> \??alternativestyles
>
> by
>
> \??alternativestyle
>
> (so singular)

Thanks. That fixes the issue.

Regards,
Aditya
___________________________________________________________________________________
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:[~2017-10-09 13:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-08 13:27 Setting style for \mfunction Aditya Mahajan
2017-10-09  9:56 ` Hans Hagen
2017-10-09 13:50   ` Aditya Mahajan

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