ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Heros condensed and Font switching
Date: Mon, 23 Nov 2009 16:36:15 +0100	[thread overview]
Message-ID: <4B0AABEF.5080809@wxs.nl> (raw)
In-Reply-To: <72F9BBEC40484C89AE42D6BF745E39F0@rechenknecht>

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
___________________________________________________________________________________


  reply	other threads:[~2009-11-23 15:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-21 15:06 Wolfgang Murth
2009-11-23  9:07 ` Wolfgang Murth
2009-11-23  9:35   ` Thomas A. Schmitz
2009-11-23  9:51 ` Willi Egger
2009-11-23 10:14   ` Wolfgang Schuster
2009-11-23 15:27     ` Wolfgang Murth
2009-11-23 15:36       ` Hans Hagen [this message]
2009-11-23 17:34         ` Wolfgang Murth
2009-11-23 17:36           ` Hans Hagen
2009-11-23 18:05           ` Wolfgang Schuster

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=4B0AABEF.5080809@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).