Re: [NTG-context] Missing number error, related to setupcolumnsetlines

2013-04-24 Thread Lars Huttar
On /Mon Apr 22 18:59:07 CEST 2013, Hans Hagen wrote:
/
 On 4/22/2013 4:24 PM, Lars Huttar wrote:
 / On /Fri Apr 19 21:36:41 CEST 2013 /Hans Hagen wrote:
 // On 4/18/2013 11:13 PM, Lars Huttar wrote:
 // / \definecolumnset [abbcolumn] [n=2,distance=5mm,balancing=yes]
 // //
 // //  \setupcolumnsetlines[abbcolumn][1][1][60]
 // //  \setupcolumnsetlines[abbcolumn][1][2][60]
 // /
 // the 60 exceeds the number of lines
 //
 // Hans, thanks for responding.
 //
 // I don't understand the above statement. What number of lines does 60
 // exceed? Is there a hard-coded limit? (We didn't seem to have a problem
 // with this code before we migrated from XeTeX / mkii to LuaTeX / mkiv,
 // but I couldn't guarantee what else is different.)
 /
 Column sets allocates a box for each line but does that dynamically 
 (i.e. at the start of a columnset) but the min/max settings in the above 
 command don't check for that so if you have a 55 line layout you get an 
 overflow.

OK, I think I understand now.

 / Is there a workaround for us now?
 /
 I've added a check.

I'm not sure what this means. I guess it will prevent the error message
from occurring.
Is it something I would get from a nightly development snapshot?
If so, where do I find it?

But it also sounds like there's no point in our having a setting of 60
lines when there are only 42 lines in our layout (that's the number
above which this error occurs). So I need to either tweak our layout, or
reduce the number of lines I'm asking for in a columnset.

Thanks,
Lars


 / I could leave out the \setupcolumnsetlines commands for the moment, and
 // hope we don't overflow the page. Actually I'm not sure what will happen
 // if we leave the number of lines at the default (which is apparently 
 zero?).
 /
 no, more like 55 or so (depends on the layout settings)

 / Regards,
 // Lars
 //
 //
 // /  \starttext
 // //  \startcolumnset[abbcolumn]
 // //  foo
 // //  \stopcolumnset
 // //  \stoptext
 // /
 // i'll add a check
 //
 // (i will redo columnsets at some point in a more mkiv-ish way)
 //
 // Hans
 /



___
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
___


Re: [NTG-context] Missing number error, related to setupcolumnsetlines

2013-04-22 Thread Lars Huttar
On /Fri Apr 19 21:36:41 CEST 2013 /Hans Hagen wrote:
 On 4/18/2013 11:13 PM, Lars Huttar wrote:
 / \definecolumnset [abbcolumn] [n=2,distance=5mm,balancing=yes]
 //
 //  \setupcolumnsetlines[abbcolumn][1][1][60]
 //  \setupcolumnsetlines[abbcolumn][1][2][60]
 /
 the 60 exceeds the number of lines

Hans, thanks for responding.

I don't understand the above statement. What number of lines does 60
exceed? Is there a hard-coded limit? (We didn't seem to have a problem
with this code before we migrated from XeTeX / mkii to LuaTeX / mkiv,
but I couldn't guarantee what else is different.)

Is there a workaround for us now?
I could leave out the \setupcolumnsetlines commands for the moment, and
hope we don't overflow the page. Actually I'm not sure what will happen
if we leave the number of lines at the default (which is apparently zero?).

Regards,
Lars


 /  \starttext
 //  \startcolumnset[abbcolumn]
 //  foo
 //  \stopcolumnset
 //  \stoptext
 /
 i'll add a check

 (i will redo columnsets at some point in a more mkiv-ish way)

 Hans

___
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
___


Re: [NTG-context] Missing number error, related to setupcolumnsetlines

2013-04-22 Thread Hans Hagen

On 4/22/2013 4:24 PM, Lars Huttar wrote:

On /Fri Apr 19 21:36:41 CEST 2013 /Hans Hagen wrote:

On 4/18/2013 11:13 PM, Lars Huttar wrote:

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

//
//  \setupcolumnsetlines[abbcolumn][1][1][60]
//  \setupcolumnsetlines[abbcolumn][1][2][60]
/
the 60 exceeds the number of lines


Hans, thanks for responding.

I don't understand the above statement. What number of lines does 60
exceed? Is there a hard-coded limit? (We didn't seem to have a problem
with this code before we migrated from XeTeX / mkii to LuaTeX / mkiv,
but I couldn't guarantee what else is different.)


Column sets allocates a box for each line but does that dynamically 
(i.e. at the start of a columnset) but the min/max settings in the above 
command don't check for that so if you have a 55 line layout you get an 
overflow.



Is there a workaround for us now?


I've added a check.


I could leave out the \setupcolumnsetlines commands for the moment, and
hope we don't overflow the page. Actually I'm not sure what will happen
if we leave the number of lines at the default (which is apparently zero?).


no, more like 55 or so (depends on the layout settings)


Regards,
Lars




/  \starttext

//  \startcolumnset[abbcolumn]
//  foo
//  \stopcolumnset
//  \stoptext
/
i'll add a check

(i will redo columnsets at some point in a more mkiv-ish way)

Hans


___
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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Missing number error, related to setupcolumnsetlines

2013-04-19 Thread Hans Hagen

On 4/18/2013 11:13 PM, Lars Huttar wrote:

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

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


the 60 exceeds the number of lines


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


i'll add a check

(i will redo columnsets at some point in a more mkiv-ish way)

Hans

--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


[NTG-context] Missing number error, related to setupcolumnsetlines

2013-04-18 Thread Lars Huttar
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
___