Skip to main content
2 of 4
added 131 characters in body
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}$$

Where the value $\frac{\pi}{2}$ is actually in a variable $Theta$ (I don't know in advance that it would be $\frac{\pi}{2}$).

However, when I write this in mathematica :

Style["\[Theta]n=" <> ToString[Theta]]

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