From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3153 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \definefont Date: Thu, 02 Nov 2000 11:15:20 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20001102111520.008f27c0@pop.wxs.nl> References: <200011020102.CAA03300@bar.loria.fr> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035393907 14676 80.91.224.250 (23 Oct 2002 17:25:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:25:07 +0000 (UTC) Cc: ntg-context@ntg.nl, roegel@lorraine.loria.fr Original-To: "Denis B. Roegel" In-Reply-To: <200011020102.CAA03300@bar.loria.fr> Xref: main.gmane.org gmane.comp.tex.context:3153 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3153 At 02:02 AM 11/2/00 +0100, Denis B. Roegel wrote: > >Another example of font problem is given below. >First, as in the previous examples, if I put `pos', >`ppl', or `pcr' in \setupbodyfont, the second run of pdfetex >gets stuck. Second, how do I access \RotFont below? >\definefont[RotFont][RegularBold] doesn't make >it accessible since I run into an error. >Finally, this example (from the metafun manual >page 141, September 25 version) uses \vbox\bgroup...\egroup. >Why not \vbox{...} which seems to work too? > >Thanks, > >Denis > >\setupcolors[state=start] >\starttext > >\startMPenvironment >%\setupbodyfont[loc,mt,ppl,pcr,10pt] >%\setupbodyfont[loc,mt,10pt] >\definefont[RotFont][RegularBold] >\stopMPenvironment > >% doesn't work if \bfd is replaced by \RotFont That's because the MPenvironment is invisible for the rest of tex, so you need to define that font also in your document pramble. \useMPlibrary[txt] will load some of the code presented in the metafun manual, you may want to take a look in that file. Concerning \bgroup and \egroup: \bgroup={ and \egroup=} so these are equivalents. You may even say: \vbox{bla\egroup. What alternative is use depends on (1) is I open/close a box in different macros [impossible with {}] or (2) on how I think the macro def looks best [which is quite personal]. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE 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 -------------------------------------------------------------------------