ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: h h extern <pragma@wxs.nl>
Subject: Re: Fonts switching and styles ..
Date: Mon, 22 Nov 2004 00:19:41 +0100	[thread overview]
Message-ID: <41A1228D.1080007@wxs.nl> (raw)
In-Reply-To: <BAY23-F29863140031A70E6BAD25DFBC50@phx.gbl>

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
-----------------------------------------------------------------

  reply	other threads:[~2004-11-21 23:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-21 15:49 Dirar BOUGATEF
2004-11-21 23:19 ` h h extern [this message]
2004-11-22 12:34   ` Dirar BOUGATEF
2004-11-22 13:26     ` Hans Hagen
2004-11-22 14:47       ` Dirar BOUGATEF
2004-11-22 19:42         ` Willi Egger
2004-11-23  7:53           ` Dirar BOUGATEF
2004-11-23 10:32             ` Willi Egger
2004-11-23 12:32             ` Christopher Creutzig
2004-11-23 14:10               ` Dirar BOUGATEF
2004-11-22 19:15 ` Problem with index generation Matthias Weber
2004-11-22 22:15   ` Hans Hagen
2004-11-23  2:22     ` How to patch ConText on the Mac for beginners (was: Problem with index generation) Matthias Weber
2004-11-23  2:46       ` Index and publication list conflict Matthias Weber
2004-11-24 12:59         ` Taco Hoekwater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41A1228D.1080007@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).