2007/10/9, Peter Rolf <[EMAIL PROTECTED]>: > Hi Wolfgang, > > Wolfgang Schuster schrieb: > > Hi, > > > > I want to include PDF layers in document and the should be hidden by > > default, > > the current behaviour is to show all layers I defined in my document and > > this > > should be later by the user and not when I open the file. > > > > The following shortened example from the modules show what I mean, > > the text "Text" can be seen when you open the document but it should > > appear only if you press the "VIDE" button. > > > > \starttext > > > > \setupinteraction[state=start] > > > > \defineproperty[L1][layer][title=layer 1] > ^^ > [title={layer 1}, state=stop] > > should work. > > Best wishes, Peter > > > > > \button{HIDE L1}[HideLayer{L1}] > > \button{VIDE L1}[VideLayer{L1}] > > > > \midaligned > > {\definedfont[Mono at 150pt]% > > \startproperty[L1] > > TEST > > \stopproperty} > > > > \stoptext > > > > Wolfgang
Hi Peter, this did work but you can omit the braces around "title 1", you need them only if you have brackets in the title. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________