Templates and menuitems
- To: mathgroup at smc.vnet.net
- Subject: [mg99774] Templates and menuitems
- From: meitnik <meitnik at gmail.com>
- Date: Thu, 14 May 2009 01:40:36 -0400 (EDT)
hi,
I am finally able to stick pretty templates into an ActionMenu:
D1=HoldForm[Style[Plot,15][Placeholder[Style["f",12]],{Placeholder
[Style["x",12]],Placeholder[Style["Subscript[min, y]",12]],Placeholder
[Style["Subscript[max, x]",12]]}]];
ActionMenu[
"test",
{
D1 :> NotebookApply[InputNotebook[], D1 // ToBoxes]
}
]
I need the style to enlarge the font size but I would like to do it
smarter. Everything I try gets hung up on the Defer. I am looking to
make something like this:
stylPl[a]=Placeholder[Style[a,12]
so I can change the size for all placeholders with one function/rule
call.
Thanks,
Andrew