[NTG-context] fonts and function in math mode

Flavien Lambert petit.lepton at gmail.com
Mon Apr 28 15:14:53 CEST 2014


Thanks Wolfgang. I set it by hand because I was using the light version and
the bold version of the light one does not exist ;) I just put regular for
the example.


On 28 April 2014 20:59, Wolfgang Schuster <schuster.wolfgang at gmail.com>wrote:

>
> Am 28.04.2014 um 13:46 schrieb Flavien Lambert <petit.lepton at gmail.com>:
>
> > Hi everyone, could you tell me how to use the Ubuntu font for the math
> command \max in the following example?
> >
> > \definefontfamily [mainface] [sans] [Ubuntu]
> [regularfont=ubuntu,italicfont=ubuntuitalic,boldfont=ubuntubold]
> > \definefallbackfamily [mainface] [math] [Ubuntu]
> [preset=math:lowercaseitalic,tf=name:ubuntu]
> > \definefontfamily     [mainface] [math] [Latin Modern Math]
> >
> > \setupbodyfont[mainface]
> >
> > \starttext
> > $ abc \max$ abc max
> > \stoptext
>
> \definefontfamily [mainface] [sans] [Ubuntu]
>
> \definefallbackfamily [mainface] [math] [Ubuntu]
> [preset=math:lowercaseitalic]
> \definefallbackfamily [mainface] [math] [Ubuntu]
> [preset=math:lowercasenormal]
> \definefontfamily     [mainface] [math] [Latin Modern Math]
>
> \setupbodyfont[mainface]
>
> \starttext
> $ abc \max$ abc max
> \stoptext
>
> BTW: Why do you set the upright, italic etc. styles by hand?
>
> > I am also interesting by knowing where I can find all the features
> "preset=math:" possible.
>
> The presets are defined in font-eel.mkvi with the \definefontfamilypreset
> command.
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at 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
>
> ___________________________________________________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20140428/423d7851/attachment.html>


More information about the ntg-context mailing list