From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19704 Path: news.gmane.org!not-for-mail From: Idris Samawi Hamid Newsgroups: gmane.comp.tex.context Subject: RE: Defining new font switches (solved?) Date: Fri, 8 Apr 2005 20:07:58 -0600 Message-ID: <426918C5@webmail.colostate.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1113012548 18696 80.91.229.2 (9 Apr 2005 02:09:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Apr 2005 02:09:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 09 04:09:03 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DK5PD-0001ic-35 for gctc-ntg-context-518@m.gmane.org; Sat, 09 Apr 2005 04:09:03 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A6BD912809; Sat, 9 Apr 2005 04:11:34 +0200 (CEST) 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 18911-07; Sat, 9 Apr 2005 04:11:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A6139127F0; Sat, 9 Apr 2005 04:08:03 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 865DE127F0 for ; Sat, 9 Apr 2005 04:08:02 +0200 (CEST) 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 18911-05 for ; Sat, 9 Apr 2005 04:08:00 +0200 (CEST) Original-Received: from eagle.colostate.edu (eagle.acns.colostate.edu [129.82.100.90]) by ronja.ntg.nl (Postfix) with ESMTP id E51EB127ED for ; Sat, 9 Apr 2005 04:07:59 +0200 (CEST) Original-Received: from lamar.colostate.edu (lamar.acns.colostate.edu [129.82.100.75]) by eagle.colostate.edu (AIX5.1/8.11.6p2/8.11.0) with ESMTP id j3927wS1411878; Fri, 8 Apr 2005 20:07:58 -0600 Original-Received: from webmail.colostate.edu (csunts4.acns.colostate.edu [129.82.100.135]) by lamar.colostate.edu (AIX5.1/8.11.6p2/8.11.0) with ESMTP id j3927pH695036; Fri, 8 Apr 2005 20:07:51 -0600 X-WebMail-UserID: ishamid Original-To: "Adam Lindsay" , mailing list for ConTeXt users X-EXP32-SerialNo: 00002247, 00002264 X-Mailer: Infinite Mobile Delivery (Hydra) SMTP v3.62.01 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: news.gmane.org gmane.comp.tex.context:19704 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19704 Hi Adam, Thank you very much for explaining this. After some more research, I actually finally figured it out a few hours ago (including the examination of type-ini), but felt embarrased at bothering the list yet again about it;-) At least I'm "back in business" once again:-) Hopefully my hours of struggling with things like this will pay off in the end... Thnx again, Adam and my best to all Idris >===== Original Message From "Adam Lindsay" ===== >Idris Samawi Hamid said this at Fri, 8 Apr 2005 15:43:49 -0600: > >> \definetypeface [mytest] [rm] [serif] [mystyle] >> %[mystyle] [encoding=default] > >>Consider the \definetypeface line. If we leave the comment in place, >>then the >>\tf switch will work (and give us small caps) while the \mv switch will give >>an undefined control sequence. If we uncomment the last two options in >>\definetypeface, then \mv will also work. > >this is absolutely consistent! >The second mystyle argument, the one that you commented out, is the >argument for the "size" typescripts. As you only define the mv >alternative in [serif] [mystyle] [size], that makes perfect sense. > >For further details, look at the definition in type-ini, which reduces >down to: >\def\definetypeface[#1][#2][#3][#4][#5][#6] > {\usetypescript[#3,map][#4][name,default,\typefaceencoding,special] > \usetypescript[#3][#5][size]} > >In the commented out version, there's no #5, so it defaults to the >[serif] [default] [size] typescript. There's no \mv definition there, so >ConTeXt complains. When you correctly tell ConTeXt where to look, all is >right with the world. ============================ Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523