From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17192 Path: main.gmane.org!not-for-mail From: h h extern Newsgroups: gmane.comp.tex.context Subject: Re: Fonts switching and styles .. Date: Mon, 22 Nov 2004 00:19:41 +0100 Message-ID: <41A1228D.1080007@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1101111650 27320 80.91.229.6 (22 Nov 2004 08:20:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Nov 2004 08:20:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 22 09:20:35 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CW9R5-0001QE-00 for ; Mon, 22 Nov 2004 09:20:35 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 75DDD1278E; Mon, 22 Nov 2004 09:20:34 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16163-04-3; Mon, 22 Nov 2004 09:20:31 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C0DB3126F8; Mon, 22 Nov 2004 09:20:30 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5B53E1278E for ; Mon, 22 Nov 2004 09:20:29 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16163-04 for ; Mon, 22 Nov 2004 09:20:29 +0100 (CET) Original-Received: from mailrelay02.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id F189A126F8 for ; Mon, 22 Nov 2004 09:20:28 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id iAM8KRml024974 for ; Mon, 22 Nov 2004 09:20:27 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id DDD6617D1A; Mon, 22 Nov 2004 09:20:27 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 9EBCF17CBF for ; Mon, 22 Nov 2004 08:20:25 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay02 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17192 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17192 Dirar BOUGATEF wrote: > Hi all, > > I am working to setup styles in heads with the typeface karat, that i > define as follows: > > \starttypescript [karat] > \definetypeface [karat] [ss] [sans] [karat] [default] [encoding=texnansi] > \stoptypescript > > Here is my head definition: > > \setuphead[part] > [align=left, > page=right, > placehead=yes, > style=???????, > before={\hbox{}\vfill}, > after={\vfill}, > command=\MyPart] > > Question: what command should i use to define this head to use the karat > typeface above as its style ? ...,style={\switchtobodyfont[karat]\bfc},... or, when no math is used, \setupbodyfont[karat] \definefont[MyPartFont][SansBold at 24pt] \setuphead[part][style=\MyPartFont] you could also add more faces to: \starttypescript [karat] \definetypeface [gold] [rm] [serif][gold] [default] [encoding=texnansi] \definetypeface [karat] [ss] [sans] [karat] [default] [encoding=texnansi] \stoptypescript and then (say that the body font is rm (gold)), do \setuphead[part][style=\ss\bfd] etc etc 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 -----------------------------------------------------------------