From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4312 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: call for help with context Date: Sat, 10 Mar 2001 14:18:52 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010310141852.0098e3a0@server-1> References: <3.0.6.32.20010308173450.00b8bcc0@server-1> <3.0.6.32.20010308154432.0169d4b0@server-1> <20010308150340.A8765@anxur.fi.muni.cz> <3.0.6.32.20010308154432.0169d4b0@server-1> <20010308161652.A25283@anxur.fi.muni.cz> <3.0.6.32.20010308173450.00b8bcc0@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394992 24722 80.91.224.250 (23 Oct 2002 17:43:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:43:12 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Han The Thanh In-Reply-To: <20010309103435.A23785@anxur.fi.muni.cz> Xref: main.gmane.org gmane.comp.tex.context:4312 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4312 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 -------------------------------------------------------------------------