From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79761 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: (XeTeX) trouble debugging a "Missing number" error Date: Wed, 5 Dec 2012 17:22:35 +0100 Message-ID: References: <50BF6C60.6000203@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1354724579 15196 80.91.229.3 (5 Dec 2012 16:22:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2012 16:22:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 05 17:23:09 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 1TgHkX-0000GM-IQ for gctc-ntg-context-518@m.gmane.org; Wed, 05 Dec 2012 17:23:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1EA1710292; Wed, 5 Dec 2012 17:22:53 +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 uEWuDb9fXW9z; Wed, 5 Dec 2012 17:22:46 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3B3AB1021D; Wed, 5 Dec 2012 17:22:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DFA5B1021D for ; Wed, 5 Dec 2012 17:22:44 +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 ds1GkOGfogDX for ; Wed, 5 Dec 2012 17:22:39 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id CE3611020C for ; Wed, 5 Dec 2012 17:22:39 +0100 (CET) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qB5GMcUm026992 for ; Wed, 5 Dec 2012 17:22:39 +0100 Original-Received: by mail-bk0-f41.google.com with SMTP id jg9so2671466bkc.14 for ; Wed, 05 Dec 2012 08:22:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=IHYVo05As1RT7lWpHZN493avNZbgCxX0V7lV0XH6OuM=; b=E19Hi9paleWi8+xUALURmTMw/8moWIYOPWEG2DcYpaVpPbMrqTs4kMkAFY5V+BkF09 P3FsOSWmcNdCj6o5suv+8M4gWYnE3SYupaoc6FkK6KZc1IqCIqUzxDvtUwvZAd71U4XI jcsJuYNNzsJvLAN0z7Lu0XFaElLpysikaBIAK4TBY87AUdlKAWZLwntzqBSf6nX4beB8 icFvUogc4DfcLjBG5E7L6m+FiogE3V24x34ygROz4v07JZ0GIkt7NRUDMVNe1fKzvfST 8/uXexgRH4Uch+e3DegWL6CfwaeS+3eXZ7VZX9cOOVvVQam7XSJUeGeYECpuWAoWpE39 fKgQ== Original-Received: by 10.204.131.78 with SMTP id w14mr5815364bks.83.1354724558421; Wed, 05 Dec 2012 08:22:38 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4dbfb451.pool.mediaWays.net. [77.191.180.81]) by mx.google.com with ESMTPS id d16sm4315258bkw.2.2012.12.05.08.22.37 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Dec 2012 08:22:37 -0800 (PST) In-Reply-To: <50BF6C60.6000203@sil.org> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TIvQmCdH - 32d35cdd5503 - 20121205 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:79761 Archived-At: Am 05.12.2012 um 16:46 schrieb Lars Huttar : > /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=3D{\setupbackgrounds[text][background=3Dverticalline] >> />/ \starttextbackground[text] >> />/ \setuptab[headstyle=3D{\switchtobodyfont[SansB,\SansBsize]},width=3D= 20mm,location=3Dleft] >> />/ \startcolumnset[abbcolumn] \startalignment[flushleft,nothyphenated]}, >> />/ after=3D{\stopalignment \stopcolumnset \stoptextbackground >> />/ \setupbackgrounds[text][background=3Doff]}] >> / >> you can try >> = >> \unexpanded\def\StartAbbList >> {\setupbackgrounds[text][background=3Dverticalline] >> \starttextbackground[text] >> = >> \setuptab[headstyle=3D{\switchtobodyfont[SansB,\SansBsize]},width=3D20mm= ,location=3Dleft] >> \startcolumnset[abbcolumn] >> \startalignment[flushleft,nothyphenated]} >> = >> \unexpanded\def\StopAbbList >> {\stopalignment >> \stopcolumnset >> \stoptextbackground >> \setupbackgrounds[text][background=3Doff]} >> = >> \definestartstop >> [abblist] >> [before=3D\StartAbbList, >> after=3D\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. Putting many command and setup in the before and after keys for \definestar= tstop isn=92t the nicest way to create start/stop command, Hans used a two step m= ethod and put all setups and separate commands which are now used by \definestart= stop. Defining command with \unexpanded\def\=85{=85} instead of \def\=85{=85} can= prevent you from unwanted side effects when you use command in headings etc. > After making this change, the behavior is unaffected... I still get the > "Missing number" error, etc. The information you provided aren sufficient to reproduce the error, according to the message there is a problem with columnsets but there is no way to tell why you get it. >> 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} Can you provide a working minimal example which does produce the error. >>> / >> />/ 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. There is no difference between \define and \def in MkII but for MkIV there is a difference because \define is \unexpanded\def and the new command \defineexpandable corresponds to the normal \def. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________