* Cld-files
@ 2010-12-22 13:10 Willi Egger
2010-12-22 13:21 ` Cld-files Willi Egger
0 siblings, 1 reply; 9+ messages in thread
From: Willi Egger @ 2010-12-22 13:10 UTC (permalink / raw)
To: NTG-Context ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Cld-files
@ 2010-12-22 13:59 Willi Egger
2010-12-22 14:03 ` Cld-files luigi scarso
2010-12-22 14:07 ` Cld-files Peter Münster
0 siblings, 2 replies; 9+ messages in thread
From: Willi Egger @ 2010-12-22 13:59 UTC (permalink / raw)
To: NTG-Context ConTeXt users
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"})
However this does not work. How must this be done?
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Cld-files
2010-12-22 13:59 Cld-files Willi Egger
@ 2010-12-22 14:03 ` luigi scarso
2010-12-22 15:21 ` Cld-files Willi Egger
2010-12-22 14:07 ` Cld-files Peter Münster
1 sibling, 1 reply; 9+ messages in thread
From: luigi scarso @ 2010-12-22 14:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, Dec 22, 2010 at 2:59 PM, Willi Egger <w.egger@boede.nl> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Cld-files
2010-12-22 14:03 ` Cld-files luigi scarso
@ 2010-12-22 15:21 ` Willi Egger
0 siblings, 0 replies; 9+ messages in thread
From: Willi Egger @ 2010-12-22 15:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
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 <w.egger@boede.nl> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Cld-files
2010-12-22 13:59 Cld-files Willi Egger
2010-12-22 14:03 ` Cld-files luigi scarso
@ 2010-12-22 14:07 ` Peter Münster
2010-12-22 15:20 ` Cld-files Willi Egger
1 sibling, 1 reply; 9+ messages in thread
From: Peter Münster @ 2010-12-22 14:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Cld-files
2010-12-22 14:07 ` Cld-files Peter Münster
@ 2010-12-22 15:20 ` Willi Egger
2010-12-22 15:32 ` Cld-files Hans Hagen
0 siblings, 1 reply; 9+ messages in thread
From: Willi Egger @ 2010-12-22 15:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Cld-files
2010-12-22 15:20 ` Cld-files Willi Egger
@ 2010-12-22 15:32 ` Hans Hagen
2010-12-22 15:35 ` Cld-files luigi scarso
0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2010-12-22 15:32 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Willi Egger
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Cld-files
2010-12-22 15:32 ` Cld-files Hans Hagen
@ 2010-12-22 15:35 ` luigi scarso
0 siblings, 0 replies; 9+ messages in thread
From: luigi scarso @ 2010-12-22 15:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, Dec 22, 2010 at 4:32 PM, Hans Hagen <pragma@wxs.nl> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-12-22 15:35 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-22 13:10 Cld-files Willi Egger
2010-12-22 13:21 ` Cld-files Willi Egger
2010-12-22 13:59 Cld-files Willi Egger
2010-12-22 14:03 ` Cld-files luigi scarso
2010-12-22 15:21 ` Cld-files Willi Egger
2010-12-22 14:07 ` Cld-files Peter Münster
2010-12-22 15:20 ` Cld-files Willi Egger
2010-12-22 15:32 ` Cld-files Hans Hagen
2010-12-22 15:35 ` Cld-files luigi scarso
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).