Skip to main content
small style changes
Source Link
Carl Woll
  • 131.7k
  • 6
  • 246
  • 359

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

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

Where the value $\frac{\pi}{2}$ is actually in a variable named $Theta$ (same name as the text on the lhs of the equality). Of course, I don't know in advance that $Theta=\frac{\pi}{2}$). Also, I need to add some style to my text (like making it bold, increasing its size etc), this is why I am using the function Style as below.

However, when I write this in mathematicaMathematica :

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

The fraction goes under the $Theta$ like onin this picture :

enter image description here

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

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

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

Where the value $\frac{\pi}{2}$ is actually in a variable named $Theta$ (same name as the text on the lhs of the equality). Of course, I don't know in advance that $Theta=\frac{\pi}{2}$). Also, I need to add some style to my text (like making it bold, increasing its size etc), this is why I am using the function Style as below.

However, when I write this in mathematica :

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

The fraction goes under the $Theta$ 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.

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

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

Where the value $\frac{\pi}{2}$ is actually in a variable named $Theta$ (same name as the text on the lhs of the equality). Of course, I don't know in advance that $Theta=\frac{\pi}{2}$). Also, I need to add some style to my text (like making it bold, increasing its size etc), this is why I am using the function Style as below.

However, when I write this in Mathematica :

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

The fraction goes under the $Theta$ like in this picture :

enter image description here

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

added 90 characters in body
Source Link
StarBucK
  • 2.2k
  • 1
  • 10
  • 35

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

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

Where the value $\frac{\pi}{2}$ is actually in a variable named $Theta$ (Isame name as the text on the lhs of the equality). Of course, I don't know in advance that it would be $\frac{\pi}{2}$$Theta=\frac{\pi}{2}$). Also, I need to add some style to my text (like making it bold, increasing its size etc), this is why I am using the function Style as below.

However, when I write this in mathematica :

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

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

enter image description hereenter image description here

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

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.

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

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

Where the value $\frac{\pi}{2}$ is actually in a variable named $Theta$ (same name as the text on the lhs of the equality). Of course, I don't know in advance that $Theta=\frac{\pi}{2}$). Also, I need to add some style to my text (like making it bold, increasing its size etc), this is why I am using the function Style as below.

However, when I write this in mathematica :

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

The fraction goes under the $Theta$ 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.

added 131 characters in body
Source Link
StarBucK
  • 2.2k
  • 1
  • 10
  • 35

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[Pi/2]]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.

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.

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.

Source Link
StarBucK
  • 2.2k
  • 1
  • 10
  • 35
Loading