Skip to main content
1 of 4
StarBucK
  • 2.2k
  • 1
  • 10
  • 35

How to properly write fraction in style

I would like to write the following for the legend of a curve :

$$ \theta_n = \frac{\pi}{2}$$

However, when I write this in mathematica :

Style["\[Theta]n=" <> ToString[Pi/2]]

The fraction goes under the $\theta_n$ like on this picture :

enter image description here

How can I do to make mathematica write properly what I want ? I am looking for a very simple solution.

StarBucK
  • 2.2k
  • 1
  • 10
  • 35