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 via email to