From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17923 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 14:33:32 +0100 Message-ID: <6018DAD8-6D43-11D9-B338-000A95B9ADE2@uni-bonn.de> References: <05DB4B12-6CB6-11D9-92C7-000A95B9ADE2@uni-bonn.de> <41F36F54.1040000@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; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1106487408 12061 80.91.229.6 (23 Jan 2005 13:36:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Jan 2005 13:36:48 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 23 14:36:42 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 1Cshv0-0007jK-00 for ; Sun, 23 Jan 2005 14:36:42 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 74E81127A5; Sun, 23 Jan 2005 14:36:41 +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 29837-01; Sun, 23 Jan 2005 14:36:39 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A14971277F; Sun, 23 Jan 2005 14:36:39 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 75E671277F for ; Sun, 23 Jan 2005 14:36:37 +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 29721-03 for ; Sun, 23 Jan 2005 14:36:36 +0100 (CET) Original-Received: from mailout10.sul.t-online.com (unknown [194.25.134.21]) by ronja.ntg.nl (Postfix) with ESMTP id 6D0F51276D for ; Sun, 23 Jan 2005 14:36:36 +0100 (CET) Original-Received: from fwd10.aul.t-online.de by mailout10.sul.t-online.com with smtp id 1Cshuu-0005v0-00; Sun, 23 Jan 2005 14:36:36 +0100 Original-Received: from [192.168.0.2] (X7scmqZZgeuwePUVFNAHM9twBd-+brRVwxv1w0nSh-8tqMliM2nmcu@[217.81.187.7]) by fmrl10.sul.t-online.com with esmtp id 1Cshur-1I1EO00; Sun, 23 Jan 2005 14:36:33 +0100 In-Reply-To: <41F36F54.1040000@elvenkind.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.619) X-ID: X7scmqZZgeuwePUVFNAHM9twBd-+brRVwxv1w0nSh-8tqMliM2nmcu@t-dialin.net X-TOI-MSGID: ff6f2b2e-113c-42f0-b5e5-07144357419e 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:17923 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17923 Taco, thanks so much! I really appreciate the wonderful ConTeXt community without whose help I would never have been able to even get started. On Jan 23, 2005, at 10:33 AM, Taco Hoekwater wrote: > This, however, will not work: > \definefont[Gf][\MyFont sa \MyScale] > Both work for me. Unless I misunderstood what it is supposed to do. > \Gf is later used in the macros to define the Greek font. When defined with the \definebodyfont alternative, this works; when I try the \definefont, I get this error message: ! Undefined control sequence. ...else \getvalue {MyFont} sa \MyScale \@@@instring \expanded ...\long \xdef \@@expanded {\noexpand #1 }\@@expanded \p!doifinstringelse ...{\pp!doifinstringelse #2#1} @@\war \dodoifinstringelse ...tringelse \@@@instring {#1} \@EA \firstoftwoarguments ... \dodefinefont ...2][#3]->\doifinstringelse { }{#2} {\ifthirdargument \unexpa... \par l.19 ? 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... > Rude, but effective: > > \define\koppa {{\Gf \char37}} > Yes, this works and is just what I want. Great! > Greetings, Taco > > ---------- > \def\setupgreek#1[#2]{% > \getparameters[GG][Scale=,Font=,#2] > \edef\MyScale{\GGScale}% > \processaction[\GGFont] > [ SomeFont1=>\def\MyFont{cmbx10}, > SomeFont2=>\def\MyFont{cmtt10}]% > } > \setupgreek[Scale=5,Font=SomeFont1] > > \definebodyfont[4pt,5pt,6pt,7pt,8pt,9pt,10pt,10.5pt,11pt,12pt,14pt,14.4 > pt,16pt,18pt,20pt,22pt][rm][rm=\getvalue{MyFont} sa \MyScale] > > \definefont[Gf][\getvalue{MyFont} sa \MyScale] > > \starttext > Beo {\switchtobodyfont[20pt]Beolarge} Beo {\Gf Beolarge} > \stoptext > Thanks a lot, Taco! Best Thomas