0
Graphics[Text[Style["Sqrt[a^2-b^2]", FontSize->25], {0,0}]] 

yields:

enter image description here

but I want the nicer looking $\sqrt{a^2-b^2}$ instead of the ugly "Sqrt[a^2-b^2]". How?

  • Just leave out the quotes... Graphics[Text[Style[Sqrt[a^2 - b^2], FontSize -> 25], {0, 0}]] Use HoldForm if you don't want the quantities to evaluate. – rm -rf Feb 25 '14 at 16:02
  • Boy, do I feel stupid. Please make that an answer and I'll upvote/approve it. –  Feb 25 '14 at 16:04
  • no worries. This was just a simple mistake, so feel free to just delete the question :) We've all been there (you don't want to see my first mma notebook :D) – rm -rf Feb 25 '14 at 16:07
  • @rm-rf ooooh, do show that one, will you? – Yves Klett Feb 25 '14 at 21:24
  • As tempted as I am to "rm -rf" my answer, there's an offchance that it will help someone even stupider, so I'll keep it. @rm-rf please turn your comment into answer so I can upvote/approve, thanks. –  Feb 25 '14 at 22:43
  • @barrycarter Turns out, it was asked before and has a nice answer by Jens so I've marked it as a duplicate :) You can read more there about changing the formatting for various symbols to fit your needs. – rm -rf Feb 25 '14 at 23:13

0 Answers0