[NTG-context] metafun problem

2010-07-13 Thread Albrecht Kauffmann
Dear ConTeXtuals,

the following MP-inclusion produces fatal error (! TeX capacity
exceeded, sorry [parameter stack size=6000].):

starttext
\startMPcode
label(btex $\underbrace{a}_{b}$ etex,(0,0));
\stopMPcode
\stoptext

I use mkii, but the code should work.
Has anyone an explanation?

With many thanks for any hint
Albrecht
___
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] Metafun problem

2009-09-26 Thread Peter Rolf

David Arnold schrieb:

All,

I've got the context minimals installed and I'm compiling the 
following (from the new Metafun manual) using MKIV:


\startuniqueMPgraphic{name}
path p;
p:=unitsquare xscaled OverlayWidth yscaled OverlayHeight;
fill p withcolor .625yellow;
draw p withcolor .625red;
\stopuniqueMPgraphic

\starttext
Hello, World!

\defineoverlay[my graphic][\uniqueMPgraphic{name}]
\button[background=my graphic,frame=off]{Go Home}[firstpage]

\stoptext

No button shows up. Am I missing something?


A \button is an interactive element, so you need to add

\setupinteraction[state=start]


David
___ 

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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Metafun problem

2009-09-26 Thread luigi scarso
On Sat, Sep 26, 2009 at 7:16 AM, David Arnold wrote:

> All,
>
> I've got the context minimals installed and I'm compiling the following
> (from the new Metafun manual) using MKIV:
>
> \startuniqueMPgraphic{name}
>path p;
>p:=unitsquare xscaled OverlayWidth yscaled OverlayHeight;
>fill p withcolor .625yellow;
>draw p withcolor .625red;
> \stopuniqueMPgraphic
>
> \starttext
> Hello, World!
>
> \defineoverlay[my graphic][\uniqueMPgraphic{name}]
> \button[background=my graphic,frame=off]{Go Home}[firstpage]
>
> \stoptext
>
> No button shows up. Am I missing something?
>
>
\startuniqueMPgraphic{name}
   path p;
   p:=unitsquare xscaled OverlayWidth yscaled OverlayHeight;
   fill p withcolor .625yellow;
   draw p withcolor .625red;
\stopuniqueMPgraphic
I don't know.
\framed works

\starttext
Hello, World!

\defineoverlay[my graphic][\uniqueMPgraphic{name}]
\button[background={my graphic},frame=off]{Go Home}[firstpage]
\framed[background={my graphic},frame=off]{framed Go Home}
\stoptext
test-arnold.tex (END)




> David
>
> ___
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>



-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Metafun problem

2009-09-25 Thread David Arnold

All,

I've got the context minimals installed and I'm compiling the  
following (from the new Metafun manual) using MKIV:


\startuniqueMPgraphic{name}
path p;
p:=unitsquare xscaled OverlayWidth yscaled OverlayHeight;
fill p withcolor .625yellow;
draw p withcolor .625red;
\stopuniqueMPgraphic

\starttext
Hello, World!

\defineoverlay[my graphic][\uniqueMPgraphic{name}]
\button[background=my graphic,frame=off]{Go Home}[firstpage]

\stoptext

No button shows up. Am I missing something?

David
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___