# Use TeX in Graphics object [duplicate]

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


yields:

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. – user1722 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. – user1722 Feb 25 '14 at 22:43