From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79756 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: (XeTeX) trouble debugging a "Missing number" error Date: Wed, 05 Dec 2012 05:19:58 -0500 Message-ID: <50BF1FCE.2000605@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000500030708030202050209" X-Trace: ger.gmane.org 1354702818 11323 80.91.229.3 (5 Dec 2012 10:20:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2012 10:20:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 05 11:20:30 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 1TgC5c-0002xO-7W for gctc-ntg-context-518@m.gmane.org; Wed, 05 Dec 2012 11:20:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0B19A10292; Wed, 5 Dec 2012 11:20:14 +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 9tpyRaS++J+6; Wed, 5 Dec 2012 11:20:06 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4A5B91020D; Wed, 5 Dec 2012 11:20:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BAA6A1021D for ; Wed, 5 Dec 2012 11:20:04 +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 tCETWLoxyI0B for ; Wed, 5 Dec 2012 11:20:02 +0100 (CET) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id BF577101E8 for ; Wed, 5 Dec 2012 11:20:02 +0100 (CET) Original-Received: from smtp2.wsfo.org (smtp2.wsfo.org [208.145.81.52]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qB5AJxG6021723 for ; Wed, 5 Dec 2012 11:20:01 +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 qB5AJv7m026904 for ; Wed, 5 Dec 2012 05:19:58 -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-AttachExt: log X-ExtScanner: Niversoft's Find_Attachments Original-Received: from [173.189.48.166] (account lars_huttar@sil.org HELO [192.168.254.4]) by cgp1.mail.link77.net (CommuniGate Pro SMTP 5.4.4) with ESMTPSA id 319190867; Wed, 05 Dec 2012 05:19:57 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 X-Enigmail-Version: 1.4.6 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-Scanned-By: MIMEDefang 2.73 on 172.22.65.24 X-Bayes-Prob: 0.005 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=208.145.81.52; 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: 04IvKjXf8 - e413c2fa1433 - 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:79756 Archived-At: This is a multi-part message in MIME format. --------------000500030708030202050209 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Hi all, I'm working with some code that was developed by someone else. The document I'm typesetting is now giving the following error: ! Missing number, treated as zero. \otr:1:27 \OTRSETdoifcellelse ...er #1:\number #2\endcsname \@EA \secondoftwoarguments... \@@ar@@1 ...ellelse {\mofcolumns }\columnlastcell {\global \advance \columnl... \redoloop ->\expandrecursecontent \endofloop { 28 ... l.12 \startabblist { ? I haven't been able to figure out what's wrong or how to fix it. I had just made changes to refactor the definitions of fonts. (I confirmed that these changes really are a necessary cause of the error: when I back out just these changes, the error goes away.) >>From the above error message I understand the error was detected during the expansion of \startabblist. Here's the definition of abblist: % 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]}] >>From that, one might guess that the font SansB or the font dimension \SansBsize were the problem. But those definitions haven't changed (though I would like to confirm that empirically with a run-time trace message). Here are the font settings changes that did occur: E16fonts.tex: changed this block: \definefont[SerifXLI][name:GentiumBookBasic-Italic at 10pt] \definefont[SerifXXL][name:GentiumBookBasic at 12pt] \definefont[SerifXXLB][name:GentiumBookBasic-Bold at 12pt] to use size dimensions defined elsewhere: \definefont[SerifXLI][name:GentiumBookBasic-Italic at \XLfontsize] \definefont[SerifXXL][name:GentiumBookBasic at \XXLfontsize] \definefont[SerifXXLB][name:GentiumBookBasic-Bold at \XXLfontsize] 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. I also created a log file, which I'll attach. There is also a version with \tracingmacros=1, but it's 600K, so I'll put it at http://www.huttar.net/tmp/country-report-country_id-15-tracing.log Thanks for taking a look. Please let me know what further information I need to provide. I can provide the .tex files themselves upon request. I would especially like to know better techniques for debugging -- how I can induce TeX/ConTeXt to tell me more about what's going on. I realize that as a macro language, this is inherently difficult with TeX. We are heavily invested in XeTeX, so switching to LuaTeX in the near term is not an option. ConTeXt version: ConTeXt ver: 2012.05.30 11:26 MKII fmt: 2012.11.14 int: english/english (From TeX Live 2012) XeTeX version: 3.1415926-2.4-0.9998 (TeX Live 2012) (format=cont-en 2012.11.14) Lars --------------000500030708030202050209 Content-Type: text/plain; charset=windows-1252; name="country-report-country_id-15.log" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="country-report-country_id-15.log" This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012) (format=cont-en 2012.11.14) 4 DEC 2012 14:17 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **country-report-country_id-15.tex (./country-report-country_id-15.tex ConTeXt ver: 2012.05.30 11:26 MKII fmt: 2012.11.14 int: english/english system : cont-new.mkii loaded (/usr/local/texlive/2012/texmf-dist/tex/context/base/cont-new.mkii systems : beware: some patches loaded from cont-new.mkii ) system : cont-sys.rme loaded (/usr/local/texlive/2012/texmf-dist/tex/context/user/cont-sys.rme (/usr/local/texlive/2012/texmf-dist/tex/context/base/type-siz.mkii) (/usr/local/texlive/2012/texmf-dist/tex/context/base/type-otf.mkii) (/usr/local/texlive/2012/texmf-dist/tex/context/base/type-xtx.mkii)) system : country-report-country_id-15.top loaded (./country-report-country_id-15.top) bodyfont : 12pt rm is loaded language : patterns nl->default:default->1->2:2 us->default:default->2-> 2:3 de->default:default->3->3:3 da->default:default->4->2:2 sv->default:default ->5->2:2 af->default:default->6->2:2 gb->default:default->7->2:2 fr->default:de fault->8->2:2 es->default:default->9->2:2 ca->default:default->10->2:2 it->defa ult:default->11->2:2 la->default:default->12->2:2 pt->default:default->13->2:2 ro->default:default->14->2:2 pl->default:default->15->2:2 cs->default:default-> 16->2:2 sk->default:default->17->2:2 hr->default:default->18->2:2 sl->default:d efault->19->2:2 tr->default:default->20->2:2 tk->default:default->21->1:2 lt->d efault:default->22->2:2 agr->default:default->24->2:2 fi->default:default->25-> 2:2 hu->default:default->26->2:2 ru->default:default->28->2:2 uk->default:defau lt->29->3:3 loaded specials : dvips loaded \openout3 = `country-report-country_id-15.tui'. \openout0 = `country-report-country_id-15-mpgraph.mp'. language : language en is active specials : loading definition file dpx (/usr/local/texlive/2012/texmf-dist/tex/context/base/spec-dpx.mkii specials : loading definition file fdf (/usr/local/texlive/2012/texmf-dist/tex/context/base/spec-fdf.mkii)) specials : loading definition file xet (/usr/local/texlive/2012/texmf-dist/tex/context/base/spec-xet.mkii) system : module ethnologue loaded (./p-ethnologue.tex loading : Context User Module / Typesetting Ethnologue 16 (./macros/E16safeinput.tex) (./macros/E16settings.tex color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is global activated ) (./macros/E16fonts.tex) (./macros/E16cropmark.tex) (./macros/E16style.tex) (./macros/E16pagesize.tex) (./macros/E16hyphen.tex) (./macros/E16hyphenationlist.tex) (./macros/E16textheaders.tex system : mark countryheader defined [subject] system : mark countryheadernumber defined [subjectnumber] ) (./macros/E16column.tex (./config/abbreviations.tex) (./config/introduction.tex) (./config/statsum.tex) (./config/africa.tex) (./config/americas.tex) (./config/asia.tex) (./config/europe.tex) (./config/pacific.tex) (./config/bibliography.tex) (./config/nameindex.tex) (./config/codeindex.tex) (./config/countryindex.tex)) (./macros/E16table.tex system : module database (mkii) loaded (/usr/local/texlive/2012/texmf-dist/tex/context/base/m-database.mkii)) (./macros/E16maps.tex) (./macros/E16part0.tex) (./macros/E16index.tex) (./macros/E16graphics.tex) (./macros/E16verticalline.tex)) (./country-report-country_id-15.tuo) (./country-report-country_id-15.tuo) (./country-report-country_id-15.tuo) (./country-report-country_id-15.tuo) (./country-report-country_id-15.tuo) (./country-report-country_id-15.tuo) (./country-report-country_id-15.tuo) (./country-report-country_id-15.tuo) (./country-report-country_id-15.tuo) (./country-report-country_id-15.tuo) (./country-report-country_id-15.tuo) publications : file country-report-country_id-15.bbl not found, waiting for bibtex (./country-report-country_id-15.tuo) systems : begin file country-report-country_id-15 at line 2 (./macros/E16pagenohead.tex) (./data/front-matter-report-world-all.tex figures : dimensions of SILlogo.pdf loaded from figurefile itself fonts : resetting map file list (/usr/local/texlive/2012/texmf-dist/tex/context/base/sort-def.mkii) (/usr/local/texlive/2012/texmf-dist/tex/context/base/sort-lan.mkii Invalid UTF-8 byte or sequence at line 102 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 102 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 103 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 103 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 104 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 104 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 105 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 105 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 106 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 106 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 107 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 107 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 108 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 108 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 109 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 109 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 110 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 110 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 115 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 115 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 116 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 116 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 117 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 117 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 150 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 150 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 152 replaced by U+FFFD. Invalid UTF-8 byte or sequence at line 152 replaced by U+FFFD. ) [1.1]) (./data/table-of-contents-world-all.tex [2.2] chapter : - references : unknown reference [][Abbreviations] references : unknown reference [][Overview] references : unknown reference [][Languages] references : unknown reference [][Bibliography] references : unknown reference [][Maps] references : unknown reference [][CodeIndex] references : unknown reference [][NameIndex] ) [3.3] chapter : - ! Missing number, treated as zero. \otr:1:27 \OTRSETdoifcellelse ...er #1:\number #2\endcsname \@EA \secondoftwoarguments... \@@ar@@1 ...ellelse {\mofcolumns }\columnlastcell {\global \advance \columnl... \redoloop ->\expandrecursecontent \endofloop { 28 ... l.14 \startabblist { ? x Here is how much of TeX's memory you used: 9488 strings out of 459417 178776 string characters out of 2578995 4688454 words of memory out of 7189059 47676 multiletter control sequences out of 15000+200000 12561 words of font info for 51 fonts, out of 3000000 for 9000 307 hyphenation exceptions out of 8191 66i,18n,92p,358b,1070s stack positions out of 5000i,500n,10000p,200000b,50000s Output written on country-report-country_id-15.pdf (3 pages). --------------000500030708030202050209 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --------------000500030708030202050209--