MapAt problem with passing List
- To: mathgroup at smc.vnet.net
- Subject: [mg99218] MapAt problem with passing List
- From: meitnik <meitnik at gmail.com>
- Date: Thu, 30 Apr 2009 06:21:56 -0400 (EDT)
Hi,
I have been struggling with this bit of code. I am trying to set the
fontsize of items in a list thats going to be passed to an ActionMenu
(I need to adjust the size of some to be larget; some slightly
larger).
bb={"[\[Placeholder]_]","\[Placeholder]=\[Placeholder]","Sqrt[\
[Placeholder]]","\[Placeholder]+I \[Placeholder]"};
Sz[f_,g_,tz1_,tz2_]:=MapAt[Style[#,FontSize->tz1]&,MapAt[Style
[#,FontSize->tz2]&,bb,f],g];
Sz[{{2},{3}},{{1},{4}},18,15]
I can't seem to figure out how to pass bb as parameter value to Sz.
Mathematica just beeps. If I keep bb inline with the code it works.
Any suggestions, clues....Thanks.