ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: call for help with context
Date: Sat, 10 Mar 2001 14:18:52 +0100	[thread overview]
Message-ID: <3.0.6.32.20010310141852.0098e3a0@server-1> (raw)
In-Reply-To: <20010309103435.A23785@anxur.fi.muni.cz>

At 10:34 AM 3/9/01 +0100, Han The Thanh wrote:
>Hans,
>
>many thanks for the great hints -- it works now. But for completeness: how
>can I define a new style like \bf, \it in a new family? For example I tried
>a \zz style:
>
>\definebodyfont [12pt,11pt,10pt] [aa] [ 
>    tf=LexiconNo2RomanA-Txt8y,
>    zz=LexiconNo2RomanD-Txt8y]

you should add the sa 1 [scaled a 1 time the current bodyfont] otherwise it
gets the whatever-it-is design size

>but when switching to \zz, it seems to go into an endless loop: I had to
>use `killall pdfetex' to stop it. 

The number of families is limited in tex (which is quite annoying since
it's one of the reasons why macro(packages) are more complicated than
needed when it comes down to fonts). Families are kind of tricky anyway
since in math the fonts are resolved afterwards which means that one cannot
temporarily overload a family. 

In context, there are a number of predefined families
(tf,bf,sl,it,bs,bi,sc) and technically one can extend this list. One way is
to misuse a family that you would not use anyway, so using the bi slot fo
rinstance, but an alternative is to hitch hike on an existing one like: 

  tf=...,
  tfmine=LexiconFontWithAVeryLongAndFunnyNameEncodedInASpecialWayByThanh sa
1, 

This would behave like tfa etc, which is ok outside math; in the
bodyfontenvironment you could specify 'mine' as size 1 so that you could
say 'sa mine']. 

Hans  
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


  reply	other threads:[~2001-03-10 13:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20010308150340.A8765@anxur.fi.muni.cz>
2001-03-08 14:44 ` Hans Hagen
2001-03-08 15:16   ` Han The Thanh
2001-03-08 15:54     ` Berend de Boer
2001-03-08 16:36       ` Hans Hagen
     [not found]       ` <20010309130110.A2783@anxur.fi.muni.cz>
2001-03-10 13:24         ` Hans Hagen
2001-03-08 16:34     ` Hans Hagen
2001-03-09  9:34       ` Han The Thanh
2001-03-10 13:18         ` Hans Hagen [this message]
2001-03-08 17:48   ` Re[2]: " Giuseppe Bilotta

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=3.0.6.32.20010310141852.0098e3a0@server-1 \
    --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).