ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Missing number error, related to setupcolumnsetlines
       [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
  2013-04-29 19:10 ` error: terminal: >> NOfTextColumns-1, ! Improper final value has been replaced by 0 Lars Huttar
  1 sibling, 2 replies; 7+ messages in thread
From: Lars Huttar @ 2013-04-22 14:24 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Missing number error, related to setupcolumnsetlines
  2013-04-22 14:24 ` Missing number error, related to setupcolumnsetlines Lars Huttar
@ 2013-04-22 16:59   ` Hans Hagen
  2013-04-24 13:56   ` Lars Huttar
  1 sibling, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2013-04-22 16:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Lars Huttar

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Missing number error, related to setupcolumnsetlines
  2013-04-22 14:24 ` Missing number error, related to setupcolumnsetlines Lars Huttar
  2013-04-22 16:59   ` Hans Hagen
@ 2013-04-24 13:56   ` Lars Huttar
  1 sibling, 0 replies; 7+ messages in thread
From: Lars Huttar @ 2013-04-24 13:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: error: terminal: >> NOfTextColumns-1, ! Improper final value has been replaced by 0
       [not found] <mailman.470.1366192042.2084.ntg-context@ntg.nl>
  2013-04-22 14:24 ` Missing number error, related to setupcolumnsetlines Lars Huttar
@ 2013-04-29 19:10 ` Lars Huttar
  2013-04-29 19:40   ` Hans Hagen
  1 sibling, 1 reply; 7+ messages in thread
From: Lars Huttar @ 2013-04-29 19:10 UTC (permalink / raw)
  To: ntg-context

On 4/26/2013, Hans Hagen wrote:
> ------------------------------------------------------------------------
> On 4/24/2013 5:30 PM, Lars Huttar wrote:
> >/ ...
> /
> It took me a while to figure it out as NOfTextColumns is only used in 
> very special cases and long gone from context (it dates from a previous 
> background implementation). Normally the obsolete code is never seen but 
> in your case consulting the variable might be triggered by the fact that
>
> multi_column_first_page_hack
>
> is set to true (looks like a quick hack i made for Jelle long ago).
>
> I commented it in the mkii source now, hopefully no error message any 
> longer.

Thank you. How can I make this change in our ConTeXt installations?
As noted previously, the only place I could find a mention of    /
     for i=1 upto NOfTextColumns-1/
was in some code that was already commented out. So I don't know how I
would comment it out any more effectively than that.


> Hans
>
> ps. sometimes there is some specific test code that then depends on 
> other experimental code being present
>
> ps. in mkiv it's all redone anyway and i will redo columnsets one of 
> these days too;

Jut to make sure it's clear, I'm running ConTeXt with mkiv.
(ConTeXt ver: 2012.05.30 11:26 MKIV fmt: 2013.3.11)

I mention that because I'm not sure if your statement about mkiv implies
that this error shouldn't be happening if I'm already using mkiv.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: error: terminal: >> NOfTextColumns-1, ! Improper final value has been replaced by 0
  2013-04-29 19:10 ` error: terminal: >> NOfTextColumns-1, ! Improper final value has been replaced by 0 Lars Huttar
@ 2013-04-29 19:40   ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2013-04-29 19:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Lars Huttar

On 4/29/2013 9:10 PM, Lars Huttar wrote:

> I mention that because I'm not sure if your statement about mkiv implies
> that this error shouldn't be happening if I'm already using mkiv.

maybe there's something in a style?

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: error: terminal: >> NOfTextColumns-1, ! Improper final value has been replaced by 0
  2013-04-24 15:30 Lars Huttar
@ 2013-04-26 10:24 ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2013-04-26 10:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Lars Huttar

On 4/24/2013 5:30 PM, Lars Huttar wrote:
> Hello,
>
> I'm encountering the following error, under ConTeXt  ver: 2012.05.30
> 11:26 MKIV  fmt: 2013.3.11  int: english/english:
>
> system > tex > error on line 27 in file
> data/three-volume-book-book-1.tex: terminal: >> NOfTextColumns-1
> ! Improper final value has been replaced by 0.
> <to be read again>
>                     :
> <*> for i=1 upto NOfTextColumns-1:
>                                      draw (rightboundary TextColumns[i])
> shif...
>
>
>   ...
>
> 17 \safeinput ./data/statistics-for-area-area-africa.tex
> 18 \safeinput ./data/statistics-for-area-area-europe.tex
> 19
> 20
> 21
> 22 \input ./macros/E16pagenohead.tex
> 23 \ifodd \pageno \else \noheaderandfooterlines \null \page[yes]\fi
> \noheade
> randfooterlines
> 24
> 25 \startptp{
> 26 \pagereference[Languages]\pnum{Part II}\ptitle{Language Listings}
> 27 >> }\stopptp
>
>
> This error is very odd because:
>
> a) The only place I can find code mentioning "NOfTextColumns-1" is in
> mp-core.mpii, where it's commented out!
>    % \startuseMPgraphic{whatever}
>    %     for i=1 upto NOfTextColumns-1 :
>    %         draw (rightboundary TextColumns[i]) shifted ...
>
> But maybe I just haven't been looking in the right places.
>
> b) The place in my .tex document where the error occurs, line 27, is at
> a \stopptp. Yet there is an essentially identical start/stopptp earlier
> in the document, where no such error is thrown:
>
>    \startptp{
>    \pagereference[Summaries]\pnum{Part I}\ptitle{Statistical Summaries}
>    }\stopptp
>
> So I guess there's some content in between the two starts/stop ptp's
> that's laying the stage for the error to occur.
> I'll be working on a minimal example, but that's time-consuming; and I
> thought in the meantime, there may be some clues in the above
> information that could help clarify the nature of the problem, to
> someone who understands the inner workings of ConTeXt.

It took me a while to figure it out as NOfTextColumns is only used in 
very special cases and long gone from context (it dates from a previous 
background implementation). Normally the obsolete code is never seen but 
in your case consulting the variable might be triggered by the fact that

multi_column_first_page_hack

is set to true (looks like a quick hack i made for Jelle long ago).

I commented it in the mkii source now, hopefully no error message any 
longer.

Hans

ps. sometimes there is some specific test code that then depends on 
other experimental code being present

ps. in mkiv it's all redone anyway and i will redo columnsets one of 
these days too;


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* error: terminal: >> NOfTextColumns-1, ! Improper final value has been replaced by 0
@ 2013-04-24 15:30 Lars Huttar
  2013-04-26 10:24 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Huttar @ 2013-04-24 15:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

I'm encountering the following error, under ConTeXt  ver: 2012.05.30
11:26 MKIV  fmt: 2013.3.11  int: english/english:

system > tex > error on line 27 in file
data/three-volume-book-book-1.tex: terminal: >> NOfTextColumns-1
! Improper final value has been replaced by 0.
<to be read again>
                   :
<*> for i=1 upto NOfTextColumns-1:
                                    draw (rightboundary TextColumns[i])
shif...


 ...

17 \safeinput ./data/statistics-for-area-area-africa.tex
18 \safeinput ./data/statistics-for-area-area-europe.tex
19
20
21
22 \input ./macros/E16pagenohead.tex
23 \ifodd \pageno \else \noheaderandfooterlines \null \page[yes]\fi
\noheade
randfooterlines
24
25 \startptp{
26 \pagereference[Languages]\pnum{Part II}\ptitle{Language Listings}
27 >> }\stopptp


This error is very odd because:

a) The only place I can find code mentioning "NOfTextColumns-1" is in
mp-core.mpii, where it's commented out!
  % \startuseMPgraphic{whatever}
  %     for i=1 upto NOfTextColumns-1 :
  %         draw (rightboundary TextColumns[i]) shifted ...

But maybe I just haven't been looking in the right places.

b) The place in my .tex document where the error occurs, line 27, is at
a \stopptp. Yet there is an essentially identical start/stopptp earlier
in the document, where no such error is thrown:

  \startptp{
  \pagereference[Summaries]\pnum{Part I}\ptitle{Statistical Summaries}
  }\stopptp

So I guess there's some content in between the two starts/stop ptp's
that's laying the stage for the error to occur.
I'll be working on a minimal example, but that's time-consuming; and I
thought in the meantime, there may be some clues in the above
information that could help clarify the nature of the problem, to
someone who understands the inner workings of ConTeXt.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-04-29 19:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.470.1366192042.2084.ntg-context@ntg.nl>
2013-04-22 14:24 ` Missing number error, related to setupcolumnsetlines Lars Huttar
2013-04-22 16:59   ` Hans Hagen
2013-04-24 13:56   ` Lars Huttar
2013-04-29 19:10 ` error: terminal: >> NOfTextColumns-1, ! Improper final value has been replaced by 0 Lars Huttar
2013-04-29 19:40   ` Hans Hagen
2013-04-24 15:30 Lars Huttar
2013-04-26 10:24 ` Hans Hagen

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).