MathGroup Archive 2003

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

Search the Archive

Re: Re: format Text in graphics

  • To: mathgroup at smc.vnet.net
  • Subject: [mg42286] Re: [mg42267] Re: format Text in graphics
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Fri, 27 Jun 2003 06:31:16 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <C3A9F05B-A7D1-11D7-9E13-0030657CD65E@physics.uc.edu>
  • Reply-to: murray at math.umass.edu
  • Sender: owner-wri-mathgroup at wolfram.com

(Sorry, for some reason your HTML e-mail message was interpreted as
including Japanese characters!)

No, you solution does NOT format the math expression
that labels the graph in the way it would be formatted
in ordinary, conventional mathematical typsetting.
While it does italicize variables (in so far as you carried
that out), the result is a monospaced font (Courier?) rather
than a proportional font (e.g., Times).

Sorry, I suppose I should have made that requirement clearer in my
original posting.  But I thought that would be obvious from the context
-- of having the results appear the way they ordinarily would in any
math paper or book.


Richard Gass wrote:
> Murrary,
> 
> What about
> \!\(\*
> RowBox[{
> RowBox[{"Plot", "[",
> 
> RowBox[{\(Sin[$B&H(B]\^2\/\(2 + Cos[$B&H(B]\^2\)\), ",", \({$B&H(B, 0, $B&P(B}\), ",",
> RowBox[{"PlotLabel", "->",
> RowBox[{"StyleForm", "[",
> RowBox[{
> RowBox[{"TraditionalForm", "[",
> RowBox[{"StringJoin", "[",
> RowBox[{
> "\"\<\!\(\*
> StyleBox[\"y\",\nFontSlant->\"Italic\"]\)($B&H(B)\>\"", ",", "\"\<=\>\"", ",",
> 
> "\"\<\!\(Sin[$B&H(B]\^2\/\(2 + Cos[$B&H(B]\^2\)\)\>\""}], "]
> "}], "]"}], ",", \(FontSize -> 12\)}], "]"}]}]}], "]"}], ";"}]\)
> 
> This is hard to read but will look ok when pasted in to Mathematica. I 
> have not italicized the $B&H(B out of laziness but I could do that the same 
> way as the y.
> 
> On Thursday, June 26, 2003, at 05:36 AM, Murray Eisenberg wrote:
> 
> Thanks -- but NO! Your suggestion does NOT accomplish what I asked. I
> already tried it. Here's what's wrong with that approach:
> 
> (1) It prints a doubled equal sign, not a single equal sign. As I said,
> I truly want a conventional mathematical formula, y = f(x), with the y
> and the x italicized (and nothing else italicized).
> 
> (2) If one tries to replace the == with a single =, then of course one
> winds up with precisely the original difficulty I mentioned: it assigns
> the expression f[x] to y and prints only the f(x), albeit the latter in
> correct conventional mathematical form with f and x italicized but the
> parenthses not italicized.
> 
> Further, using a single = has the undesirable side efffect of assigning
> a value to y. (That one could work around by using a Block, etc. But
> still the real difficulty is that the "y = " doesn't appear in the
> printed text.)
> 
> 
> Richard Gass
> Department of Physics
> University of Cincinnati
> 

-- 
Reply to "REPLY TO" address and NOT to the "FROM" address!!
Otherwise I will never see your reply!!!!!!!!!!!!!!!!!!!!!!

Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: Re: Minimization
  • Next by Date: Re: format Text in graphics
  • Previous by thread: Re: Re: format Text in graphics
  • Next by thread: Re: Re: format Text in graphics