From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87148 Path: news.gmane.org!not-for-mail From: Flavien Lambert Newsgroups: gmane.comp.tex.context Subject: Re: fonts and function in math mode Date: Mon, 28 Apr 2014 21:14:53 +0800 Message-ID: References: <01E0A8BF-059F-4D4D-B4E8-E55E88ACAB09@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1769217350==" X-Trace: ger.gmane.org 1398690924 27317 80.91.229.3 (28 Apr 2014 13:15:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2014 13:15:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 28 15:15:18 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WelOr-0008Ao-Kq for gctc-ntg-context-518@m.gmane.org; Mon, 28 Apr 2014 15:15:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2788E10281 for ; Mon, 28 Apr 2014 15:15:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uvi1FxzAgg6A for ; Mon, 28 Apr 2014 15:15:13 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id DF67F10261 for ; Mon, 28 Apr 2014 15:15:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D6C4D101E9 for ; Mon, 28 Apr 2014 15:15:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JRjJKPddaMTr for ; Mon, 28 Apr 2014 15:15:03 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 94229101E7 for ; Mon, 28 Apr 2014 15:14:55 +0200 (CEST) Original-Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3SDEsJV004608 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 28 Apr 2014 15:14:54 +0200 Original-Received: by mail-wi0-f179.google.com with SMTP id z2so5619801wiv.12 for ; Mon, 28 Apr 2014 06:14:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FNBJQIyO9Lu3f22irKPEpiqZG4LkDiNQQx3GJsKz4Bg=; b=SaQuGhk9wK9WXQhtg73fZwpJ4krNWtumEXvea4OOzJZTB9wgW/PdzHl6t9ppd8oOeM VP/dQU5SkXWhcERUzyMnN4j1tldVzQkdJT7LJlydz2alF3b3qPwFd0Kx/a2GumTEjBn/ Hw9NDjYgMhNvQbc30EmbTDTeMW88ADEtHzswrapDRCcBAlDiEd+IpQwQhqyN49BGuZRD ChMzsF4jZ+6WFxQR2EvGL1Lq+L+12BZx8BpIJlIjbstyk+MMBSpkcn22pzlEiSDXJXTp NGqzdZXB6e/qINylRn/IKbfTgoSR4HrXBs1K21p77vhnVjIAfnAnH62QIZJFH6Zb9s8e 6Gsg== X-Received: by 10.180.24.72 with SMTP id s8mr15433216wif.20.1398690893991; Mon, 28 Apr 2014 06:14:53 -0700 (PDT) Original-Received: by 10.217.106.202 with HTTP; Mon, 28 Apr 2014 06:14:53 -0700 (PDT) In-Reply-To: <01E0A8BF-059F-4D4D-B4E8-E55E88ACAB09@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::233; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06LTpeSIg - c65afe3a7be7 - 20140428 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87148 Archived-At: --===============1769217350== Content-Type: multipart/alternative; boundary=f46d0438933fe316da04f81a19e0 --f46d0438933fe316da04f81a19e0 Content-Type: text/plain; charset=UTF-8 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 wrote: > > Am 28.04.2014 um 13:46 schrieb Flavien Lambert : > > > 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@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 > > ___________________________________________________________________________________ > --f46d0438933fe316da04f81a19e0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 jus= t put regular for the example.


On 28 April 2014 20:59, Wolfgang Schuster <schuster.wolfgang@gma= il.com> wrote:

Am 28.04.2014 um 13:46 schrieb Flavien Lambert <petit.lepton@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=3Dubuntu,ita= licfont=3Dubuntuitalic,boldfont=3Dubuntubold]
> \definefallbackfamily [mainface] [math] [Ubuntu] [preset=3Dmath:lowerc= aseitalic,tf=3Dname:ubuntu]
> \definefontfamily =C2=A0 =C2=A0 [mainface] [math] [Latin Modern Math]<= br> >
> \setupbodyfont[mainface]
>
> \starttext
> $ abc \max$ abc max
> \stoptext

\definefontfamily [mainface] [sans] [Ubuntu]

\definefallbackfamily [mainface] [math] [Ubuntu] [preset=3Dmath:lowercaseit= alic]
\definefallbackfamily [mainface] [math] [Ubuntu] [preset=3Dmath:lowercaseno= rmal]
\definefontfamily =C2=A0 =C2=A0 [mainface] [math] [Latin Mo= dern 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 &qu= ot;preset=3Dmath:" possible.

The presets are defined in font-eel.mkvi with the \definefontfamilypr= eset command.

Wolfgang

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =C2=A0: http= ://www.pragma-ade.nl / http://tex.aanhet.net
archive =C2=A0: http://foundry.supelec.fr/projects/contextrev/
wiki =C2=A0 =C2=A0 : http://contextgarden.net
___________________________________________________________________________= ________

--f46d0438933fe316da04f81a19e0-- --===============1769217350== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1769217350==--