[NTG-context] Linetables

2014-09-23 Thread Willi Egger
Good morning!

I would like to use the line table environment. - In order to get started I 
copied the code from the wiki. After it did not work with the dorecurse 
commands I simplified the code to

\starttext
\setuplinetable[n=6,lines=40]

\setuplinetable[c][1]   [width=2cm,background=color,backgroundcolor=red]
\setuplinetable[c][4]   [width=3cm,background=color,backgroundcolor=yellow]
\setuplinetable[c][6]   [width=3cm,background=color,backgroundcolor=magenta]
\setuplinetable[r][odd] [background=color,backgroundcolor=gray]
\setuplinetable[r][even][background=color,backgroundcolor=green]


\showframe \showstruts

\setupcolors[state=start]

\startlinetable
\NC aaa\crlf aaa \NC bb \NC c \NC d \NC  \NC ff} \NC \NR
\stoplinetable

\stoptext

However with and without the dorecurse commands in it i get the following error:

Missing number, treated as zero

to be read again 
d
\s!depth d-d
epth
\pack_black_rule_indeed ...\p_height \fi \s!depth 
  \ifx \p_depth \v!max \stru...
argument ...meter {x\c!depth }, \c!width =\wd \scratchbox ]
  \hskip -\wd \scratchbox \b...
\firstoftwoarguments #1#2c-#1
 
\stoplinetablecell ...ox }\fi }{\box \scratchbox }
  \fi \egroup 
...
l.48 \NC aaa\crlf aaa \NC
bb \NC c \NC d \NC  \NC ff} \NC \NR

38 \setuplinetable[c][6]   
[width=3cm,background=color,backgroundcolor=magenta]
39 \setuplinetable[r][odd] [background=color,backgroundcolor=gray]
40 \setuplinetable[r][even][background=color,backgroundcolor=green]
41 
42 
43 \showframe \showstruts
44 
45 \setupcolors[state=start]
46 
47 \startlinetable
48   \NC aaa\crlf aaa \NC bb \NC c \NC d \NC  \NC ff} \NC \NR
49 \stoplinetable
50 
51 \stoptext

I have no clue why is going wrong here…

Thank you and kind regards

Willi
___
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] Erratic error message

2014-09-23 Thread Robert Blackstone

On 23 Sep 2014, at  11:34:45 +0600, Henning Hraban Ramm te...@fiee.net wrote
 
 Am 2014-09-18 um 01:37 schrieb Robert Blackstone 
 blackstone.rob...@gmail.com:
 
 I would not know how to make a minimal example that will consistently give 
 the error.
 I had hoped that this text in the error message: ?Attempt to double-free dir 
 node 54467, ignored? would contain some information as to what might be 
 wrong, but apparently it does not.
 
 Might that mean something like ?too many open files??
 Did you try to change you OS?s settings? See 
 http://wiki.contextgarden.net/LilyPond#Too_many_open_files
 
 Or maybe too many files in a working directory (that containing your files or 
 a temp dir of ConTeXt)?

Thanks, Hraban, for your advice.
I’ve no idea whether or not the error is connected with “too many open files”. 
The Project needs some 40 files but its working directory contains some 120 
files  (most of them only for testing purposes). Moreover, I usually only have 
the “project-file open during processing (but I don’t know if that is 
important here).
Surprisingly, as I wrote in my first post on this subject, the error up till 
now only occurs when I use interaction, and it usually does not occur anymore, 
at least on the same day, after I processed it once without interaction. But 
the next day, after sleep (of the Mac), the error may occur again.

I did not change the settings but I will in case the problem gets worse.

Best regards,
Robert


___
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] Erratic error message

2014-09-23 Thread Taco Hoekwater

On 23 Sep 2014, at 12:51, Robert Blackstone blackstone.rob...@gmail.com wrote:

 
 On 23 Sep 2014, at  11:34:45 +0600, Henning Hraban Ramm te...@fiee.net wrote
 
 Am 2014-09-18 um 01:37 schrieb Robert Blackstone 
 blackstone.rob...@gmail.com:
 
 I would not know how to make a minimal example that will consistently give 
 the error.
 I had hoped that this text in the error message: ?Attempt to double-free 
 dir node 54467, ignored? would contain some information as to what might be 
 wrong, but apparently it does not.
 
 Might that mean something like ?too many open files??
 Did you try to change you OS?s settings? See 
 http://wiki.contextgarden.net/LilyPond#Too_many_open_files
 
 Or maybe too many files in a working directory (that containing your files 
 or a temp dir of ConTeXt)?
 
 Thanks, Hraban, for your advice.
 I’ve no idea whether or not the error is connected with “too many open 
 files”. 

It is not. “dir node” means “direction node” in this context. Nodes are LuaTeX 
internal data structure objects.
Various bits of ConTeXt manipulate these objects, and sometimes the reference 
counting goes off and one
whose memory has already been given back to the operating system is asked to 
release its memory again.

The message is harmless, but it points to a small lua programming error 
somewhere in the source (either
by the author or by ConTeXt).

Best wishes,
Taco
___
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] Linetables

2014-09-23 Thread Herbert Voss
Am 23.09.2014 um 10:59 schrieb Willi Egger:

 I would like to use the line table environment. - In order to get started I 
 copied the code from the wiki. After it did not work with the dorecurse 
 commands I simplified the code to
 
 \starttext
 \setuplinetable[n=6,lines=40]
 
 \setuplinetable[c][1]   [width=2cm,background=color,backgroundcolor=red]
 \setuplinetable[c][4]   [width=3cm,background=color,backgroundcolor=yellow]
 \setuplinetable[c][6]   [width=3cm,background=color,backgroundcolor=magenta]
 \setuplinetable[r][odd] [background=color,backgroundcolor=gray]
 \setuplinetable[r][even][background=color,backgroundcolor=green]

it is a problem with reading the parameter [c]. Use l or r instead and
it will work:



\starttext
\setuplinetable[n=6,lines=40]

\setuplinetable[l][1]   [width=2cm,background=color,backgroundcolor=red]
\setuplinetable[l][4]   [width=3cm,background=color,backgroundcolor=yellow]
\setuplinetable[l][6]   [width=3cm,background=color,backgroundcolor=magenta]
\setuplinetable[r][odd] [background=color,backgroundcolor=gray]
\setuplinetable[r][even][background=color,backgroundcolor=green]
\showframe \showstruts

\setupcolors[state=start]

\startlinetable
\NC aaa\crlf aaa \NC bb \NC c \NC d \NC  \NC ff \NC \NR
\dorecurse{100}{\NC aaa \NC bb \NC c \NC d \NC  \NC ff \NC \NR}
\stoplinetable

\stoptext


Herbert

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