Re: [NTG-context] Cld-files

2010-12-22 Thread luigi scarso
On Wed, Dec 22, 2010 at 4:32 PM, Hans Hagen  wrote:
> On 22-12-2010 4:20, Willi Egger wrote:
>>
>> Hi Peter,
>>
>> thanks for the tip, indeed the {} must be separated by , - this works!
>
> more precise: multiple arguments to a function
>
> f({1}{2}) is no valid lua, while f({1},{2}) is
that's what I meant with
"Are you sure of this syntax ?"

-- 
luigi
___
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] Cld-files

2010-12-22 Thread Hans Hagen

On 22-12-2010 4:20, Willi Egger wrote:

Hi Peter,

thanks for the tip, indeed the {} must be separated by , - this works!


more precise: multiple arguments to a function

f({1}{2}) is no valid lua, while f({1},{2}) is


-
  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] Cld-files

2010-12-22 Thread Willi Egger
Hi Luigi,

deducing from what is written in the cld-manual it is at least the direction of 
looking...

Willi
On 22 Dec 2010, at 15:03, luigi scarso wrote:

> On Wed, Dec 22, 2010 at 2:59 PM, Willi Egger  wrote:
>> Hi again,
>> 
>> hm, I need to pass a \setupTABLE command ...
>> 
>> context.setupTABLE({column}{each}{width=number.todimen(.041*tex.dimen.textwidth),align="flushright",offset="1pt"})
> Are you sure of this syntax ?
> 
> -- 
> luigi
> ___
> 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
> ___

___
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] Cld-files

2010-12-22 Thread Willi Egger
Hi Peter,

thanks for the tip, indeed the {} must be separated by , - this works!

Willi
On 22 Dec 2010, at 15:07, Peter Münster wrote:

> On Wed, Dec 22 2010, Willi Egger wrote:
> 
>> context.setupTABLE({column}{each}{width=number.todimen(.041*tex.dimen.textwidth),align="flushright",offset="1pt"})
> 
> context.setupTABLE({"column"}, {"each"}, {width=...
> 
> (not tested...)
> 
> Peter
> 
> -- 
> Contact information: http://pmrb.free.fr/contact/
> ___
> 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
> ___

___
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] Cld-files

2010-12-22 Thread Peter Münster
On Wed, Dec 22 2010, Willi Egger wrote:

> context.setupTABLE({column}{each}{width=number.todimen(.041*tex.dimen.textwidth),align="flushright",offset="1pt"})

context.setupTABLE({"column"}, {"each"}, {width=...

(not tested...)

Peter

-- 
Contact information: http://pmrb.free.fr/contact/
___
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] Cld-files

2010-12-22 Thread luigi scarso
On Wed, Dec 22, 2010 at 2:59 PM, Willi Egger  wrote:
> Hi again,
>
> hm, I need to pass a \setupTABLE command ...
>
> context.setupTABLE({column}{each}{width=number.todimen(.041*tex.dimen.textwidth),align="flushright",offset="1pt"})
Are you sure of this syntax ?

-- 
luigi
___
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] Cld-files

2010-12-22 Thread Willi Egger
Answering myself:

width= number.todimen(0.25*tex.dimen.textwidth)

On 22 Dec 2010, at 14:10, Willi Egger wrote:

> Hi Contexters!
> 
> Consider the following snippet in a cld-file:
> 
> context.framed({frame="on",width= "5cm"},
>   function() ...  end
> ) 
> 
> This works fine so far. I would like to pass the width of the framed text in 
> terms of a fraction of the textwidth e.g. .25\textwidth. How must this be 
> coded?
> 
> KR
> 
> 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
> ___

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