From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54675 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Heros condensed and Font switching Date: Mon, 23 Nov 2009 16:36:15 +0100 Message-ID: <4B0AABEF.5080809@wxs.nl> References: <08D3FEEEF0C94F6A8F63469A88E80F2D@rechenknecht><3AA6E3F2-FBEA-4E93-A732-AA039E82EBDE@boede.nl> <72F9BBEC40484C89AE42D6BF745E39F0@rechenknecht> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258990600 6614 80.91.229.12 (23 Nov 2009 15:36:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2009 15:36:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 23 16:36:30 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NCaxo-0001hk-DW for gctc-ntg-context-518@m.gmane.org; Mon, 23 Nov 2009 16:36:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A75D6C9AC1; Mon, 23 Nov 2009 16:33:46 +0100 (CET) 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 BxiksMw+uCmh; Mon, 23 Nov 2009 16:33:44 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2B644C9AAA; Mon, 23 Nov 2009 16:33:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A0329C9AAA for ; Mon, 23 Nov 2009 16:33:43 +0100 (CET) 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 TXCBanTqb2sW for ; Mon, 23 Nov 2009 16:33:41 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id 6F723C9A9C for ; Mon, 23 Nov 2009 16:33:41 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2a3) with ESMTP id 6398-1713362 for ; Mon, 23 Nov 2009 16:35:25 +0100 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <72F9BBEC40484C89AE42D6BF745E39F0@rechenknecht> X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:54675 Archived-At: Wolfgang Murth wrote: > > Thank you all for your input at suggestions. Before I posted my question I did a search in the Wiki and the mailinglist archive but > didn't find a clue. > > Finaly I got a working minimal example. The with \definedfont[file:...] I found out that I can use every Font that ist installed on > my Windows System. > > Is this a correct way for font switching for a special markup or is there a better or more correct way? depends on your need, > % Define language > \language[de] > \mainlanguage[de] no need for \language as you already use \mainlanguage > %------------------------------------ > % > % Bodyfont Helvetica > \usetypescript[helvetica][texnansi] > \setupbodyfont[helvetica,ss,10pt] > > %------------------------------------ > % > % Excel Funcions and Formulas > \def\xlf#1{{\definedfont[file:texgyreheroscn-bold*regular at 10pt]#1}} \def\xlf#1{{\definedfont[SansBold sa 1]#1}} (current SansBold at bodyfontsize) \def\xlf#1{{\definedfont[Bold sa 1]#1}} (current Bold at bodyfontsize) > \starttext > \chapter{Excel Time and Date} > > When using Time and Date calculations with Excel important functions are \xlf{DATUM} and \xlf{ZEIT}. best use some uppercase in yoru own names as \xlf can be a pretty important low level command some day Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________