From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79759 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: Re: (XeTeX) trouble debugging a "Missing number" error Date: Wed, 05 Dec 2012 10:46:40 -0500 Message-ID: <50BF6C60.6000203@sil.org> References: 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 1354722433 29020 80.91.229.3 (5 Dec 2012 15:47:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2012 15:47:13 +0000 (UTC) Cc: pragma@wxs.nl To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 05 16:47:22 2012 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 1TgHBt-0008MB-Jq for gctc-ntg-context-518@m.gmane.org; Wed, 05 Dec 2012 16:47:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1F26910240; Wed, 5 Dec 2012 16:47:05 +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 p793kxpIHn3b; Wed, 5 Dec 2012 16:46:58 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A6DA11020C; Wed, 5 Dec 2012 16:46:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A2CC21020C for ; Wed, 5 Dec 2012 16:46:57 +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 kYcm8Ck8QKqD for ; Wed, 5 Dec 2012 16:46:48 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 4FE58101FA for ; Wed, 5 Dec 2012 16:46:48 +0100 (CET) Original-Received: from smtp1.wsfo.org (smtp1.wsfo.org [208.145.81.51]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qB5FkhFD013540 for ; Wed, 5 Dec 2012 16:46:47 +0100 Original-Received: from mail.link77.net (cgp2.mail.link77.net [172.22.65.14]) by smtp1.wsfo.org (8.14.4/8.14.4) with ESMTP id qB5FkeZ3001435; Wed, 5 Dec 2012 10:46:41 -0500 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.216] (account lars_huttar@sil.org [172.22.10.216] verified) by cgp2.mail.link77.net (CommuniGate Pro SMTP 5.4.4) with ESMTPSA id 103646637; Wed, 05 Dec 2012 10:46:40 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: X-Enigmail-Version: 1.4.6 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-Scanned-By: MIMEDefang 2.73 on 172.22.65.23 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=208.145.81.51; country=US; region=NC; city=Waxhaw; postalcode=28173; latitude=34.9273; longitude=-80.7278; metrocode=517; areacode=704; http://maps.google.com/maps?q=34.9273,-80.7278&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QIvPKHh3 - 634def49ced9 - 20121205 (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:79759 Archived-At: /Hans Hagen wrote (///Wed Dec 5 14:10:12 CET 2012/):/ > > > ------------------------------------------------------------------------ > On 12/5/2012 11:19 AM, Lars Huttar wrote: > >/ Hi all, > /> /... / > / > />/ > />/ % Abbreviations > />/ \definestartstop > />/ [abblist] > />/ [before={\setupbackgrounds[text][background=verticalline] > />/ \starttextbackground[text] > />/ \setuptab[headstyle={\switchtobodyfont[SansB,\SansBsize]},width=20mm,location=left] > />/ \startcolumnset[abbcolumn] \startalignment[flushleft,nothyphenated]}, > />/ after={\stopalignment \stopcolumnset \stoptextbackground > />/ \setupbackgrounds[text][background=off]}] > / > you can try > > \unexpanded\def\StartAbbList > {\setupbackgrounds[text][background=verticalline] > \starttextbackground[text] > > \setuptab[headstyle={\switchtobodyfont[SansB,\SansBsize]},width=20mm,location=left] > \startcolumnset[abbcolumn] > \startalignment[flushleft,nothyphenated]} > > \unexpanded\def\StopAbbList > {\stopalignment > \stopcolumnset > \stoptextbackground > \setupbackgrounds[text][background=off]} > > \definestartstop > [abblist] > [before=\StartAbbList, > after=\StopAbbList] Thanks, I will try this. Is the goal of this change to fix the error? To help diagnose it? I don't really understand the use of \unexpanded. After making this change, the behavior is unaffected... I still get the "Missing number" error, etc. > > in such case best make a small example, for instance how is abblist used? \startabblist{ \tab{\ITC{alt.}}\AE{alternate name for}\par ... \tab{USDS}\AE{US Department of State}\par }\stopabblist where \AE is defined as: \def\AE#1{\hskip -3mm \SerifL{#1} \vskip 1mm} > >/ > />/ E16settings.tex: I added these definitions: > />/ \define\XLfontsize{14pt} > />/ \define\XXLfontsize{16pt} > />/ > />/ There are modes involved, so things are a bit more complicated, but I > />/ believe that is the only effective difference. > / > and how about: > > \def\XLfontsize{14pt} > \def\XXLfontsize{16pt} I will try that, but all our font size definitions have always used \define, and it used to work fine without errors. On http://wiki.contextgarden.net/Command/define it says that \define is like the TeX primitive \def, but "will print an error to the log file if the new definition overwrites an existing command". I checked the log file, and there is no error mentioning XLfontsize. So the purpose of your suggestion is to remove the possibility of reporting a duplicate definition? (There's probably more to it than that - I'm just trying to understand.) I tried changing \define to \def as you suggested. The result was unchanged - same error. Regards, 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 ___________________________________________________________________________________