From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19702 Path: news.gmane.org!not-for-mail From: "Adam Lindsay" Newsgroups: gmane.comp.tex.context Subject: Re: Defining new font switches (solved?) Date: Sat, 9 Apr 2005 00:09:17 +0100 Message-ID: <20050409000917.6990@mail.comp.lancs.ac.uk> References: <4267D445@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=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1113001632 27013 80.91.229.2 (8 Apr 2005 23:07:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2005 23:07:12 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 09 01:07:07 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 1DK2Yz-0005Zj-J7 for gctc-ntg-context-518@m.gmane.org; Sat, 09 Apr 2005 01:06:57 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1E3C71277F; Sat, 9 Apr 2005 01:09:28 +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 18346-01-4; Sat, 9 Apr 2005 01:09:24 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6F844127A3; Sat, 9 Apr 2005 01:09:24 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1B452127A3 for ; Sat, 9 Apr 2005 01:09:23 +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 18346-01-3 for ; Sat, 9 Apr 2005 01:09:22 +0200 (CEST) Original-Received: from mail.comp.lancs.ac.uk (mail.comp.lancs.ac.uk [148.88.3.45]) by ronja.ntg.nl (Postfix) with ESMTP id 2F9F51277F for ; Sat, 9 Apr 2005 01:09:22 +0200 (CEST) Original-Received: from [192.168.31.104] (localhost [127.0.0.1]) by mail.comp.lancs.ac.uk (8.12.10/8.12.10) with ESMTP id j38N9I2f004598; Sat, 9 Apr 2005 00:09:18 +0100 (BST) Original-To: "mailing list for ConTeXt users" , "Idris Samawi Hamid" In-Reply-To: <4267D445@webmail.colostate.edu> X-Mailer: CTM PowerMail version 5.1 build 4340 English 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:19702 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19702 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. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-