From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81295 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: "Missing number, treated as zero" error when using \definefont with \define'd dimension Date: Thu, 21 Mar 2013 15:58:55 -0400 Message-ID: <514B667F.6000202@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1363895946 22625 80.91.229.3 (21 Mar 2013 19:59:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2013 19:59:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 21 20:59:31 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UIle6-0004EZ-CF for gctc-ntg-context-518@m.gmane.org; Thu, 21 Mar 2013 20:59:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F07CD101EF; Thu, 21 Mar 2013 20:59:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id U2gAy69T2anJ; Thu, 21 Mar 2013 20:59:04 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id AE93D101E5; Thu, 21 Mar 2013 20:59:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C34D5101E5 for ; Thu, 21 Mar 2013 20:59:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id J8jeXnlFwv+4 for ; Thu, 21 Mar 2013 20:59:02 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 07A7B101E3 for ; Thu, 21 Mar 2013 20:59:01 +0100 (CET) Original-Received: from smtp2.wsfo.org (smtp2.wsfo.org [162.40.29.52]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r2LKIRgq020332 for ; Thu, 21 Mar 2013 21:18:28 +0100 Original-Received: from mail.link77.net (cgp1.mail.link77.net [172.22.65.13]) by smtp2.wsfo.org (8.14.4/8.14.4) with ESMTP id r2LJwuma018846 for ; Thu, 21 Mar 2013 15:58:56 -0400 X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.15 (ClamAV engine v0.96.5) X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.15 (ClamAV engine v0.96.5) X-ExtScanner: Niversoft's Find_Attachments Original-Received: from [172.22.10.239] (account lars_huttar@sil.org [172.22.10.239] verified) by cgp1.mail.link77.net (CommuniGate Pro SMTP 5.4.4) with ESMTPSA id 330323037; Thu, 21 Mar 2013 15:58:56 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 X-Enigmail-Version: 1.5.1 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-Scanned-By: MIMEDefang 2.73 on 172.22.65.24 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=162.40.29.52; country=US; region=NY; city=Ashville; postalcode=14710; latitude=42.0857; longitude=-79.4356; metrocode=514; areacode=716; http://maps.google.com/maps?q=42.0857,-79.4356&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01JekirP4 - 3a404dbad509 - 20130321 (trained as not-spam) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:81295 Archived-At: Hello, I reported a Missing Number error back in December (thread at http://www.ntg.nl/pipermail/ntg-context/2012/070471.html) but got sidetracked on another issue before finding a resolution. Now I'm back to the Missing Number error, and I have a short example that reproduces it: \define\largefontsize{13pt} % Works fine: \definefont[SerifL][Arial at 13pt] % Leads to error: \definefont[SerifL][Arial at \largefontsize] % "Missing number, treated as zero" error thrown on the following line: \starttext \SerifL{Hello} \stoptext Note that the SerifL font definition works fine (no error) if I hard-code in "13pt" instead of using an intervening \largefontsize definition. But if I hard-code the point size, it would hamper the modularity of our font configuration and the use of modes in which different size fonts are used. Maybe \define is just the wrong command to use when creating an identifier for a specified dimension? I tried changing it to \def and the error went away! I looked up the documentation of \define (http://wiki.contextgarden.net/Command/define) and \def, and couldn't find any obvious difference, except that \def is TeX and \define is ConTeXt. The wiki page I just linked to mentions differences between MkII and MkIV, but this error occurs in both (in XeTeX and LuaTeX). Can someone help me understand why I should not use \define for this case? (Or in general, when I should not use \define?) Or does the problem lie somewhere else? Thanks, Lars ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________