From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17925 Path: main.gmane.org!not-for-mail From: Thomas A.Schmitz Newsgroups: gmane.comp.tex.context Subject: Re: finishing a module Date: Sun, 23 Jan 2005 15:42:30 +0100 Message-ID: <02549B04-6D4D-11D9-B338-000A95B9ADE2@uni-bonn.de> References: <05DB4B12-6CB6-11D9-92C7-000A95B9ADE2@uni-bonn.de> <41F36F54.1040000@elvenkind.com> <6018DAD8-6D43-11D9-B338-000A95B9ADE2@uni-bonn.de> <41F3AF5D.2090202@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1106491656 21380 80.91.229.6 (23 Jan 2005 14:47:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Jan 2005 14:47:36 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 23 15:47:30 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Csj1W-0002ZF-00 for ; Sun, 23 Jan 2005 15:47:30 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 55901127A5; Sun, 23 Jan 2005 15:47:30 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30421-01; Sun, 23 Jan 2005 15:47:29 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6B690127A3; Sun, 23 Jan 2005 15:45:46 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 40F16127A3 for ; Sun, 23 Jan 2005 15:45:45 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30079-06 for ; Sun, 23 Jan 2005 15:45:44 +0100 (CET) Original-Received: from mailout10.sul.t-online.com (unknown [194.25.134.21]) by ronja.ntg.nl (Postfix) with ESMTP id 505B31279E for ; Sun, 23 Jan 2005 15:45:44 +0100 (CET) Original-Received: from fwd10.aul.t-online.de by mailout10.sul.t-online.com with smtp id 1Csizo-000148-01; Sun, 23 Jan 2005 15:45:44 +0100 Original-Received: from [192.168.0.2] (VymRLrZpYe53Omg0Ny+C8PmJY452m1qAHLM5VM5L8qcGLYemWvLTgG@[217.81.187.7]) by fmrl10.sul.t-online.com with esmtp id 1Csiza-0Q75xw0; Sun, 23 Jan 2005 15:45:30 +0100 In-Reply-To: <41F3AF5D.2090202@elvenkind.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.619) X-ID: VymRLrZpYe53Omg0Ny+C8PmJY452m1qAHLM5VM5L8qcGLYemWvLTgG@t-dialin.net X-TOI-MSGID: 57aad81a-b0a8-44be-93a3-149acb5da509 X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17925 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17925 Taco, I feel bad taking your time, but still no go. For clarity's sake, I leave aside the scaling for the time being. I thought that after unprotect \def\setupgreek#1[#2]{% \getparameters[GG][Scale=,Font=,#2]%Font,Scale \xdef\MyScale{\GGScale}% \processaction[\GGFont] [ SomeFont=>\xdef\MyFont{somefont }]% } \protect the macro \MyFont would always expand to "somefont ". But it doesn't seem to do so in \definefont[Gf][\MyFont] I still get the error message. When I assign it "manually" \definefont[Gf][somefont ] it works. I tried every combination of \expanded, \xdef or \edef, but it doesn't seem to work (while it does work in \definebodyfont). So it must be something within ConTeXt that doesn't let it expand, and I don't see how I could escape this problem. The \definebodyfont is a workaround for now, but it has the problem that I have to give precise font dimensions, which might fail in certain circumstances. Thanks again Thomas On Jan 23, 2005, at 3:06 PM, Taco Hoekwater wrote: > Thomas A.Schmitz wrote: >>> This, however, will not work: >>> \definefont[Gf][\MyFont sa \MyScale] > >> It looks like \MyFont doesn't get expanded when the \definefont >> command is read, but this is an area of TeX that I find especially >> opaque... > > I see. You need > > \expanded{\definefont[Gf][\MyFont sa \MyScale]} > > Or you could \xdef the MyScale (instead of \edef), making it global. > > Greetings, Taco > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context >