ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Armin Varmaz <arvo_77@web.de>
To: ntg-context@ntg.nl
Subject: Re: abbreviations as macros (Aditya Mahajan) (Aditya Mahajan)
Date: Mon, 9 Aug 2010 18:08:24 +0200 (CEST)	[thread overview]
Message-ID: <1224385909.3258578.1281370104666.JavaMail.fmail@mwmweb073> (raw)
In-Reply-To: <mailman.3223.1281289261.4277.ntg-context@ntg.nl>

>\defineframedtext[important][style={\switchtobodyfont[24pt]\ImportantStyle}]
>
>(which will scale the math font, but not change it to Kurier-Bold).



>Or you can define a typescript for kurier-bold (see type-otf for 
>examples), and then use
>
>\usetypescript[kurier-bold]
>
>\defineframedtext[important][style={\switchtobodyfont[kurier-bold,24pt]}]
>
>Aditya
>

Hi Aditya,

your first solution works very well. You saved my day, thanks a lot! I think Hans tried to explain it to me but I didn't get him.

I have read the documentation about typescripts but I did not understand it well. Let's say I have the following simple example:

\starttypescript[sans][test]
 \definefontsynonym[Test]         [file:FuturaStd]    [features=default]   
\stoptypescript

how can I use it in 'usetypescript' now to change the font type? 

I tried 

\usetypescript[test] and \usetypescript[sans][test] 

followed by

\defineframedtext[important][style={\switchtobodyfont[test,24pt]}]

but it didn't work (to be specific, the font size is ok, but the font type did not change)

Armin
___________________________________________________________
WEB.DE DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für 
nur 19,99 ¿/mtl.!* http://web.de/DSL-Doppel-Flatrate/
___________________________________________________________________________________
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:[~2010-08-09 16:08 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <mailman.3223.1281289261.4277.ntg-context@ntg.nl>]

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=1224385909.3258578.1281370104666.JavaMail.fmail@mwmweb073 \
    --to=arvo_77@web.de \
    --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).