Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2009

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

Search the Archive

Re: MapAt problem with passing List

  • To: mathgroup at
  • Subject: [mg99292] Re: MapAt problem with passing List
  • From: Jens-Peer Kuska <kuska at>
  • Date: Sat, 2 May 2009 05:57:26 -0400 (EDT)
  • References: <gtbtt4$274$>


start a fresh kernel,

Sz[f_, g_, tz1_, tz2_, bb_] :=
   MapAt[Style[#, FontSize -> tz1] &,
    MapAt[Style[#, FontSize -> tz2] &, bb, f], g];

bb = {"[\[Placeholder]_]", "\[Placeholder]=\[Placeholder]",
    "Sqrt[[Placeholder]]", "\[Placeholder]+I \[Placeholder]"};

Sz[{{2}, {3}}, {{1}, {4}}, 18, 15, bb]

work as it should.


meitnik wrote:
> 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: Function parameter passing?
  • Next by Date: Re: interactive 3d graphic in a palette?
  • Previous by thread: Re: Function parameter passing?
  • Next by thread: Re: MapAt problem with passing List