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
On Sat, Sep 26, 2009 at 7:16 AM, 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?
\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
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 ___________________________________________________________________________________
participants (3)
-
David Arnold
-
luigi scarso
-
Peter Rolf