ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Lars Huttar <lars_huttar@sil.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Missing number error, related to setupcolumnsetlines
Date: Thu, 18 Apr 2013 17:13:07 -0400	[thread overview]
Message-ID: <517061E3.9010904@sil.org> (raw)

Hello,
I've got a "Missing number error, treated as zero". I've whittled the
problem code down to this minimal example:

    \definecolumnset [abbcolumn] [n=2,distance=5mm,balancing=yes]

    \setupcolumnsetlines[abbcolumn][1][1][60]
    \setupcolumnsetlines[abbcolumn][1][2][60]

    \starttext
    \startcolumnset[abbcolumn]
    foo
    \stopcolumnset
    \stoptext


By contrast, if I remove the \setupcolumnsetlines commands, the error
goes away. (But I think I need those commands, in case the text has more
than 60 lines.)

Also, if I run the example shown on this page
http://wiki.contextgarden.net/Command/setupcolumnsetlines
which seems very similar to mine, it works fine; no errors.

Based on the latter working example, I tried adding the following to my
minimal example that fails:

	\switchtobodyfont[small]
or
	\setupcolumnsetstart[abbcolumn][1][1][1]
	\setupcolumnsetstart[abbcolumn][1][2][1]


but neither one solved the problem.

Here is more of the error output I received when running TeX on the
minimal example shown at the start of this email:

! Missing number, treated as zero.

system          > tex > error on line 8 in file minimalex-133.tex:
Missing number, treated as zero ...

 1     \definecolumnset [abbcolumn] [n=2,distance=5mm,balancing=yes]
 2
 3     \setupcolumnsetlines[abbcolumn][1][1][60]
 4     \setupcolumnsetlines[abbcolumn][1][2][60]
 5
 6     \starttext
 7     \startcolumnset[abbcolumn]
 8 >>  foo
 9     \stopcolumnset
10     \stoptext
11

<to be read again>
                   \otr:1:43
\OTRSETdoifcellelse ...er #1:\number #2\endcsname
                                                  \@EA
\secondoftwoarguments...
\@@ar@@1 ...ellelse {\mofcolumns }\columnlastcell
                                                  {\global \advance
\columnl...
\redoloop ->\expandrecursecontent
                                  \endofloop
<to be read again>
                   {
<inserted text>
                44
...
l.8 f
     oo
?



Here is some of the earlier output, include the version info:

> context --mode=windows,report,border --nomapfiles --verbose 
minimalex-133.tex

resolvers       | resolving | creating instance
resolvers       | resolving | variable 'SELFAUTOLOC' set to
'c:/texlive/2012/bin/win32'
...
resolvers       | resolving |
resolvers       | resolving | unknown configuration file
'C:/Users/huttarl/texmf/web2c/texmfcnf.lua'
resolvers       | resolving | unknown configuration file
'c:/texlive/2012/bin/win32/texmfcnf.lua'
...
This is LuaTeX, Version beta-0.70.2-2012080612 (TeX Live 2012/W32TeX)
 \write18 enabled.
(minimalex-133.tex

ConTeXt  ver: 2012.05.30 11:26 MKIV  fmt: 2013.3.11  int: english/english


Thanks for any help!

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
___________________________________________________________________________________


             reply	other threads:[~2013-04-18 21:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18 21:13 Lars Huttar [this message]
2013-04-19 19:36 ` Hans Hagen
     [not found] <mailman.470.1366192042.2084.ntg-context@ntg.nl>
2013-04-22 14:24 ` Lars Huttar
2013-04-22 16:59   ` Hans Hagen
2013-04-24 13:56   ` Lars Huttar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=517061E3.9010904@sil.org \
    --to=lars_huttar@sil.org \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).