[NTG-context] Movable code, was Re: starttexdefinition error in standalone, works in TL2013

2014-03-12 Thread Rik

On 2014-03-01 07:32, Wolfgang Schuster wrote:


\unexpanded\def\startTranslation
   {\begingroup
\dosingleempty\dostartTranslation}

\def\dostartTranslation[#1]%
   {\iffirstargument
  \getrawparameters[Translation][setups=,language=en,#1]%
\fi
\grabbufferdata[Translation][startTranslation][stopTranslation]}

\def\stopTranslation
   {\language[\Translationlanguage]%
\Translationsetups
(\,\getbufferdata[Translation]\removeunwantedspaces\,)%
\endgroup}

\starttext

\startTranslation[language=nl]
It betrays a slow-witted mentality to pursue the streams, but not to see the 
sources of things.
\stopTranslation

\stoptext

Wolfgang



Wolfgang (and list),

The above code works fine with simple texts, but is not movable. Adding 
a footnote, as in the following, to the text section shows that:


   \starttext
   \startTranslation[language=en]
  It betrays a slow-witted mentality to pursue the streams, but not to
  see the sources of things.%
  \footnote{%
\startTranslation[language=la]
  Tardi ingeni est rivulos consectari, fontes rerum non videre.
\stopTranslation%
  }
   \stopTranslation
   \stoptext


or even by:

   \starttext
  It betrays a slow-witted mentality to pursue the streams, but not to
  see the sources of things.%
  \footnote{%
\startTranslation[language=la]
  Tardi ingeni est rivulos consectari, fontes rerum non videre.
\stopTranslation%
  }
   \stoptext


In LaTeX, this might be dealt with by a combination robust command 
definitions and \protected. When I wrote an endnotes routine in LaTeX, I 
used those and wrote the notes to a file which was then read back in at 
the appropriate time, but that does not help with pagenotes.


I imagine that at the time the footnote is processed the 
Translationsetups and Translationlanguage macros are no longer defined, 
and I have no idea how one would reference the buffer contents, although 
it does look like they have stable names in the log file.


Can this be made movable?

Also, am I correct that the \iffirstargument test in the definition of 
dostarttranslation is redundant? My understanding is that \dosingleempty 
assures the presence of [#1].


--
Rik
___
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] Problem with an environment

2014-03-12 Thread Fabrice

Hi Wolfgang,
Thank you for your help. I actually forgot this :
\ definetypeface [mainface] [ss] [sans] [dejavu] [default] [rscale = auto].
The problem is that I'm still new with ConTeXt, but I think I can say 
that I grew to people like you.


___
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] MP bounding box

2014-03-12 Thread Peter Rolf
Am 12.03.2014 18:15, schrieb Hans Hagen:
> On 3/12/2014 5:25 PM, Peter Rolf wrote:
>> Am 12.03.2014 17:05, schrieb Hans Hagen:
>>> On 3/12/2014 2:38 PM, Peter Rolf wrote:
 Hi,

 I run into a problem with the bounding box calculation of a MP graphic.
 Seems like very small values are represented in scientific notation and
 MP can't handle those.

 Example attached.

 [..]
 
 e
  e
-
  6.103515625e-
005
 \setMPboundingbox #1#2#3#46-\global \MPllx #1
\onebasepoint \global
 \MPlly #2...
 \startMPLIBtoPDF ...MPboundingbox {#1}{#2}{#3}{#4}
 \setbox \MPbox
 \vbox
 \bgro...
 l.13 }

 
 l.50 \useMPgraphic{path:ivy}

 !  ==> Fatal error occurred, no output PDF file produced!
 mtx-context | fatal error: return code: 1
 [fin]
>>>
>>> catched in next beta
>>>
>>
>> Thanks. Time to update my antique version (12/2013).
> 
> not yet uploaded
> 

No real problem. My installed version is working very well so far, as I
rescale the graphics afterwards.

___
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] MP bounding box

2014-03-12 Thread Hans Hagen

On 3/12/2014 5:25 PM, Peter Rolf wrote:

Am 12.03.2014 17:05, schrieb Hans Hagen:

On 3/12/2014 2:38 PM, Peter Rolf wrote:

Hi,

I run into a problem with the bounding box calculation of a MP graphic.
Seems like very small values are represented in scientific notation and
MP can't handle those.

Example attached.

[..]

e
 e
   -
 6.103515625e-
   005
\setMPboundingbox #1#2#3#46-\global \MPllx #1
   \onebasepoint \global
\MPlly #2...
\startMPLIBtoPDF ...MPboundingbox {#1}{#2}{#3}{#4}
\setbox \MPbox \vbox
\bgro...
l.13 }


l.50 \useMPgraphic{path:ivy}

!  ==> Fatal error occurred, no output PDF file produced!
mtx-context | fatal error: return code: 1
[fin]


catched in next beta



Thanks. Time to update my antique version (12/2013).


not yet uploaded

-
  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] MP bounding box

2014-03-12 Thread Peter Rolf
Am 12.03.2014 17:05, schrieb Hans Hagen:
> On 3/12/2014 2:38 PM, Peter Rolf wrote:
>> Hi,
>>
>> I run into a problem with the bounding box calculation of a MP graphic.
>> Seems like very small values are represented in scientific notation and
>> MP can't handle those.
>>
>> Example attached.
>>
>> [..]
>> 
>> e
>>  e
>>   -
>>  6.103515625e-
>>   005
>> \setMPboundingbox #1#2#3#46-\global \MPllx #1
>>   \onebasepoint \global
>> \MPlly #2...
>> \startMPLIBtoPDF ...MPboundingbox {#1}{#2}{#3}{#4}
>>\setbox \MPbox \vbox
>> \bgro...
>> l.13 }
>>
>> 
>> l.50 \useMPgraphic{path:ivy}
>>
>> !  ==> Fatal error occurred, no output PDF file produced!
>> mtx-context | fatal error: return code: 1
>> [fin]
> 
> catched in next beta
> 

Thanks. Time to update my antique version (12/2013).


Peter
___
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] MP bounding box

2014-03-12 Thread Hans Hagen

On 3/12/2014 2:38 PM, Peter Rolf wrote:

Hi,

I run into a problem with the bounding box calculation of a MP graphic.
Seems like very small values are represented in scientific notation and
MP can't handle those.

Example attached.

[..]

e
 e
  -
 6.103515625e-
  005
\setMPboundingbox #1#2#3#46-\global \MPllx #1
  \onebasepoint \global
\MPlly #2...
\startMPLIBtoPDF ...MPboundingbox {#1}{#2}{#3}{#4}
   \setbox \MPbox \vbox
\bgro...
l.13 }


l.50 \useMPgraphic{path:ivy}

!  ==> Fatal error occurred, no output PDF file produced!
mtx-context | fatal error: return code: 1
[fin]


catched in next beta

-
  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] confusion about expansion

2014-03-12 Thread Lars Huttar
On 3/12/2014 11:06 AM, Wolfgang Schuster wrote:
>
> Am 12.03.2014 um 15:51 schrieb Lars Huttar  >:
>
>> This gets rid of the error, but it seems to prevent any expansion of the
>> content of \CurrentUser, because the page head now literally looks like
>> this:
>
> You can try to print the string in verbatim mode:
>
>  
> \def\CurrentUser{\cldcommand{sprint(tex.vrbcatcodes,os.resultof"whoami")}}
>
>   \def\Markname{Compiled \date by \CurrentUser\ \LUATEX +\ConTeXt\
> \contextversion.}
>

That did it. Thank you!
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
___


Re: [NTG-context] confusion about expansion

2014-03-12 Thread Wolfgang Schuster

Am 12.03.2014 um 15:51 schrieb Lars Huttar :

> This gets rid of the error, but it seems to prevent any expansion of the
> content of \CurrentUser, because the page head now literally looks like
> this:


You can try to print the string in verbatim mode:

  \def\CurrentUser{\cldcommand{sprint(tex.vrbcatcodes,os.resultof"whoami")}}

  \def\Markname{Compiled \date by \CurrentUser\ \LUATEX +\ConTeXt\ 
\contextversion.}

Wolfgang___
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] confusion about expansion

2014-03-12 Thread Lars Huttar
On 3/12/2014 10:21 AM, Wolfgang Schuster wrote:
>
> Am 12.03.2014 um 15:12 schrieb Lars Huttar  >:
>
>> On 3/12/2014 10:05 AM, Wolfgang Schuster wrote:
>>> Am 12.03.2014 um 15:00 schrieb Lars Huttar >> >:
>>>
 Hello,
 I've got a running page head like this in my document:

 \def\CurrentUser{\cldcontext{os.resultof"whoami"}}

 \def\Markname { Compiled \date by \CurrentUser  \LUATEX +\ConTeXt\
 \contextversion }

 and later:

 \setlayer[cropmark][preset=lefttop,x=3cm,y=-1.5\lineheight]{\Markname}

 But when I run this, I get a UCS error that seems to indicate that the
 *result* of \CurrentUser ("waxhaw\huttar") is getting parsed as a
 command sequence.
>>> When you want to pass a backslash to Lua you have to use
>>> \letterbackslash.
>>>
>>
>> Thanks... can you give me an example of what that would look like?
>> I don't think I want to pass a backslash to Lua, so I'm not sure how to
>> apply what you're saying. Or are you using "Lua" here in the sense of
>> LuaTeX?
>>
>> A backslash appears in the output of os.resultof"whoami"; do I need to
>> perform some processing on that output in order to escape backslashes?
>
> Try this:
>
> \def\CurrentUser{\cldcontext{os.resultof"whoami"}}
>
> \def\Markname{Compiled \date by \detokenize\expandafter{\CurrentUser}
> \LUATEX +\ConTeXt\ \contextversion.}
>
> \setuplayout[location=middle,marking=on]
>
> \definelayer[cropmark][state=repeat,width=\paperwidth,height=\paperheight]
>
> \setupbackgrounds[page][background=cropmark]
>
> \setlayer[cropmark][preset=lefttop,x=3cm,y=1.5\lineheight]{\Markname}
>
> \starttext
>
> Foo
>
> \stoptext
>
>

Thanks again...
This gets rid of the error, but it seems to prevent any expansion of the
content of \CurrentUser, because the page head now literally looks like
this:

 Compiled March 12, 2014 by \cldcontext {os.resultof"whoami"}. 
LuaTEX+ConTEXt...

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
___


Re: [NTG-context] confusion about expansion

2014-03-12 Thread Wolfgang Schuster

Am 12.03.2014 um 15:12 schrieb Lars Huttar :

> On 3/12/2014 10:05 AM, Wolfgang Schuster wrote:
>> Am 12.03.2014 um 15:00 schrieb Lars Huttar :
>> 
>>> Hello,
>>> I've got a running page head like this in my document:
>>> 
>>> \def\CurrentUser{\cldcontext{os.resultof"whoami"}}
>>> 
>>> \def\Markname { Compiled \date by \CurrentUser  \LUATEX +\ConTeXt\
>>> \contextversion }
>>> 
>>> and later:
>>> 
>>> \setlayer[cropmark][preset=lefttop,x=3cm,y=-1.5\lineheight]{\Markname}
>>> 
>>> But when I run this, I get a UCS error that seems to indicate that the
>>> *result* of \CurrentUser ("waxhaw\huttar") is getting parsed as a
>>> command sequence.
>> When you want to pass a backslash to Lua you have to use \letterbackslash.
>> 
> 
> Thanks... can you give me an example of what that would look like?
> I don't think I want to pass a backslash to Lua, so I'm not sure how to
> apply what you're saying. Or are you using "Lua" here in the sense of
> LuaTeX?
> 
> A backslash appears in the output of os.resultof"whoami"; do I need to
> perform some processing on that output in order to escape backslashes?


Try this:

\def\CurrentUser{\cldcontext{os.resultof"whoami"}}

\def\Markname{Compiled \date by \detokenize\expandafter{\CurrentUser} \LUATEX 
+\ConTeXt\ \contextversion.}

\setuplayout[location=middle,marking=on]

\definelayer[cropmark][state=repeat,width=\paperwidth,height=\paperheight]

\setupbackgrounds[page][background=cropmark]

\setlayer[cropmark][preset=lefttop,x=3cm,y=1.5\lineheight]{\Markname}

\starttext

Foo

\stoptext

Wolfgang___
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] confusion about expansion

2014-03-12 Thread Lars Huttar
On 3/12/2014 10:05 AM, Wolfgang Schuster wrote:
> Am 12.03.2014 um 15:00 schrieb Lars Huttar :
>
>> Hello,
>> I've got a running page head like this in my document:
>>
>> \def\CurrentUser{\cldcontext{os.resultof"whoami"}}
>>
>> \def\Markname { Compiled \date by \CurrentUser  \LUATEX +\ConTeXt\
>> \contextversion }
>>
>> and later:
>>
>> \setlayer[cropmark][preset=lefttop,x=3cm,y=-1.5\lineheight]{\Markname}
>>
>> But when I run this, I get a UCS error that seems to indicate that the
>> *result* of \CurrentUser ("waxhaw\huttar") is getting parsed as a
>> command sequence.
> When you want to pass a backslash to Lua you have to use \letterbackslash.
>

Thanks... can you give me an example of what that would look like?
I don't think I want to pass a backslash to Lua, so I'm not sure how to
apply what you're saying. Or are you using "Lua" here in the sense of
LuaTeX?

A backslash appears in the output of os.resultof"whoami"; do I need to
perform some processing on that output in order to escape backslashes?

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
___


Re: [NTG-context] confusion about expansion

2014-03-12 Thread Wolfgang Schuster

Am 12.03.2014 um 15:00 schrieb Lars Huttar :

> Hello,
> I've got a running page head like this in my document:
> 
> \def\CurrentUser{\cldcontext{os.resultof"whoami"}}
> 
> \def\Markname { Compiled \date by \CurrentUser  \LUATEX +\ConTeXt\
> \contextversion }
> 
> and later:
> 
> \setlayer[cropmark][preset=lefttop,x=3cm,y=-1.5\lineheight]{\Markname}
> 
> But when I run this, I get a UCS error that seems to indicate that the
> *result* of \CurrentUser ("waxhaw\huttar") is getting parsed as a
> command sequence.

When you want to pass a backslash to Lua you have to use \letterbackslash.

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


[NTG-context] confusion about expansion

2014-03-12 Thread Lars Huttar
Hello,
I've got a running page head like this in my document:

\def\CurrentUser{\cldcontext{os.resultof"whoami"}}

\def\Markname { Compiled \date by \CurrentUser  \LUATEX +\ConTeXt\
\contextversion }

and later:

\setlayer[cropmark][preset=lefttop,x=3cm,y=-1.5\lineheight]{\Markname}

But when I run this, I get a UCS error that seems to indicate that the
*result* of \CurrentUser ("waxhaw\huttar") is getting parsed as a
command sequence.

Here's the error:

! Undefined control sequence.

 1 >>  % see ConTeXt wiki http://wiki.contextgarden.net/Imposition#Cut_marks
 2
 3 %% TODO: make sure this doesn't reevaluate every time
 4 %% the command sequence is used!
 5 \define\CurrentUser{\cldcontext{os.resultof"whoami"}}
 6
 7 \def\Markname { Compiled \date by \CurrentUser  \LUATEX
+\ConTeXt\ \conte
xtversion. SVN  }
...

l.1 waxhaw\huttar

\cldcontext #1x-\directlua {context(#1)}

\Markname #- Compiled \date by \CurrentUser
\LUATEX +\ConTeXt \
\contextvers...
l.24 ...t=lefttop,x=3cm,y=-1.5\lineheight]{\Markname
  }

How can I change the definition of \CurrentUser, or \Markname, to output
the result of \CurrentUser as-is, instead of parsing the result?
I tried (somewhat blindly) changing \def to \define, but it didn't make
any difference.

At the same time, I want to make sure that the processor won't be making
an OS system call to "whoami" every time \CurrentUser is evaluated: I
want it to happen only once, when \CurrentUser is defined.

Here is my complete working example:

\def\CurrentUser{\cldcontext{os.resultof"whoami"}}

\def\Markname { Compiled \date by \CurrentUser \LUATEX +\ConTeXt\
\contextversion. }

\setuplayout[location=middle,marking=on]

\definelayer[cropmark][state=repeat,width=\paperwidth,height=\paperheight]

\setupbackgrounds[page][background=cropmark]

\setlayer[cropmark][preset=lefttop,x=3cm,y=-1.5\lineheight]{\Markname}


\starttext

Foo

\stoptext


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
___


[NTG-context] MP bounding box

2014-03-12 Thread Peter Rolf
Hi,

I run into a problem with the bounding box calculation of a MP graphic.
Seems like very small values are represented in scientific notation and
MP can't handle those.

Example attached.

[..]

e
 e
 -
 6.103515625e-
 005
\setMPboundingbox #1#2#3#46-\global \MPllx #1
 \onebasepoint \global
\MPlly #2...
\startMPLIBtoPDF ...MPboundingbox {#1}{#2}{#3}{#4}
  \setbox \MPbox \vbox
\bgro...
l.13 }

...
l.50 \useMPgraphic{path:ivy}

!  ==> Fatal error occurred, no output PDF file produced!
mtx-context | fatal error: return code: 1
[fin]


Greetings,  Peter
\startuseMPgraphic{path:ivy}
%drawoptions (withcolor (0.792157,0.831373,0.654902));
linecap := butt;
linejoin := mitered;

path p;
p:= (176.858994,1.214840)..controls (166.410004,16.378901) and 
(164.914001,36.269501)..(152.785004,50.542999)
..controls (139.113007,74.707001) and 
(135.578003,102.433998)..(131.085999,129.313004)
..controls (125.551003,147.983994) and 
(134.164001,171.214996)..(120.188004,186.914001)
..controls (106.214996,204.207001) and 
(85.527298,188.098007)..(68.574203,192.397995)
..controls (50.648399,197.593994) and 
(33.652302,206.375000)..(16.855499,214.477005)
..controls (-2.886720,220.117004) and 
(-7.417970,244.410004)..(14.824200,250.953003)
..controls (32.433601,258.414001) and 
(47.558601,274.097992)..(67.972702,271.871002)
..controls (81.707001,271.468994) and 
(108.027000,276.070007)..(93.878899,294.792999)
..controls (88.523399,309.914001) and 
(81.296898,327.058990)..(87.390602,343.101990)
..controls (93.996101,355.484009) and 
(114.109001,346.003998)..(123.848000,339.429993)
..controls (139.315994,329.394989) and 
(156.770004,320.003998)..(163.925995,301.812988)
..controls (174.339996,292.378998) and 
(167.679993,267.875000)..(180.132996,264.121002)
..controls (184.688004,279.511993) and 
(183.315994,298.941010)..(196.539001,311.601990)
..controls (210.559006,328.757996) and 
(230.438004,338.562988)..(247.210999,352.546997)
..controls (257.906006,358.035004) and 
(266.890991,373.410004)..(270.281006,353.472992)
..controls (274.277008,332.484009) and 
(279.863007,308.898010)..(266.949005,289.789001)
..controls (254.492004,275.625000) and 
(267.703003,259.843994)..(281.632996,253.897995)
..controls (296.359009,246.020004) and 
(310.902008,235.281006)..(328.187988,231.324005)
..controls (347.582001,224.386993) and 
(355.777008,203.496002)..(372.128998,192.190994)
..controls (385.386993,185.054993) and 
(395.425995,157.820007)..(370.398010,163.953003)
..controls (344.117004,166.574005) and 
(317.691010,164.313004)..(291.351990,166.102005)
..controls (273.718994,160.414001) and 
(249.440994,182.781006)..(237.477005,164.309006)
..controls (229.477005,147.417999) and 
(230.983994,128.108994)..(224.882996,110.519997)
..controls (222.667999,92.656303) and 
(210.332001,79.105499)..(204.438004,62.742199)
..controls (205.897995,43.285198) and 
(196.070007,26.058599)..(185.50,10.480500)
..controls (183.128998,8.304690) and 
(181.695007,-3.820310)%..(176.858994,1.214840)
%   --cycle;
..cycle;

w:= xpart urcorner boundingbox p;
f:= 50mm/w; % lower then 60mm raises error
p:= p scaled f;

fill p;

passvariable("ivy",p);
setbounds currentpicture to boundingbox(p);
\stopuseMPgraphic


\starttext
\useMPgraphic{path:ivy}
\stoptext
___
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
___