ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Lars Huttar <lars_huttar@sil.org>
Subject: Re: Missing number error, related to setupcolumnsetlines
Date: Mon, 22 Apr 2013 18:59:07 +0200	[thread overview]
Message-ID: <51756C5B.10607@wxs.nl> (raw)
In-Reply-To: <5175482D.1010007@sil.org>

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
___________________________________________________________________________________


  reply	other threads:[~2013-04-22 16:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.470.1366192042.2084.ntg-context@ntg.nl>
2013-04-22 14:24 ` Lars Huttar
2013-04-22 16:59   ` Hans Hagen [this message]
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-18 21:13 Missing number error, related to setupcolumnsetlines Lars Huttar
2013-04-19 19:36 ` Hans Hagen

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=51756C5B.10607@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=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).