From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27618 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: Mixing fonts ? Date: Wed, 03 May 2006 19:06:25 +0200 Message-ID: <4458E311.2010106@boede.nl> References: <44588BEC.7070708@cs.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1146676118 14708 80.91.229.2 (3 May 2006 17:08:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 May 2006 17:08:38 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed May 03 19:08:35 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FbKpr-0000iI-0u for gctc-ntg-context-518@m.gmane.org; Wed, 03 May 2006 19:08:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 95AFA126F8; Wed, 3 May 2006 19:08:22 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16283-03; Wed, 3 May 2006 19:08:22 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B25461277F; Wed, 3 May 2006 19:06:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CE96F1277F for ; Wed, 3 May 2006 19:06:31 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16283-02 for ; Wed, 3 May 2006 19:06:30 +0200 (CEST) Original-Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by ronja.ntg.nl (Postfix) with SMTP id 9F1E6126F8 for ; Wed, 3 May 2006 19:06:28 +0200 (CEST) Original-Received: from [127.0.0.1] (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) (authenticated bits=0) by smtp-vbr15.xs4all.nl (8.13.6/8.13.6) with ESMTP id k43H6RYK075373 for ; Wed, 3 May 2006 19:06:27 +0200 (CEST) (envelope-from w.egger@boede.nl) User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <44588BEC.7070708@cs.com> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:27618 Archived-At: Hi Wim, You can have a look into the files in the distribution beginning with "type-". Most of the free fonts are already defined in those files.... \usetypescript[times][texnansi] ---> get times, this will result in tx-fonts for math. Otherwise define your own typeface: \starttypescript[myfont][texnansi] \definetypeface[Times-CMR][rm][serif][times][default][encoding=\typescripttwo] \definetypeface[Times-CMR][ss][sans] [helvetica] [default] [encoding=\typescripttwo,rscale=0.9] \definetypeface [Times-CMR] [tt] [mono] [modern] [default] [encoding=\typescripttwo,rscale=1.05] \definetypeface [Times-CMR] [mm] [math] [modern] [default] [encoding=\typescripttwo] \stoptypescript \usetypescript[myfont][texnansi] \setupbodyfont[Times-CMR, rm, 12pt] \starttext This is Times, \fontname\font \blank $$a^2 + b^2 = c^2$$ {\switchtobodyfont[ss,16pt] it works} \stoptext Another source for getting into this is the context wiki: http://wiki.contextgarden.net/Main_Page Kind regards Willi WN wrote: >I am trying to learn more about font switching (read the font manuals >but to no avail). >The thing I am trying to do is : > >* For normal text I want to use the Times-Roman font >* For math's I want to use a different font, i.e. Computer Modern > >I think I have to work with typescripts and use combinations of >\setupbodyfont but >I cannot work out the proper combination. > >Thanks for any help >Regards >Wim > >_______________________________________________ >ntg-context mailing list >ntg-context@ntg.nl >http://www.ntg.nl/mailman/listinfo/ntg-context > >