MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

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.


  • Prev by Date: Re: Simplify exponents in output
  • Next by Date: Re: HoldForm in defined function doesn't seem to work
  • Previous by thread: How do I send the palette behind other windows?
  • Next by thread: Differential Equation, pendulum, change of variable plot