Plot Labels: Entering a Mixture of Plain Text and Equations
When you enter text using LaTeX formatted text it displays the text as an equation.
When using the Plain text format, the label does not display correctly because the label is a mixture of text (Mole-Fraction) and an equation needing subscripts (Al_2O_3).
To add a mixture of plain text and equation formatted text, exit math mode by using the string \textsf
followed by the text to display enclosed in curly brackets {}
.
For example \textsf{Mole-fraction }Al_2O_3
results in this label. In this example, you need to add a space at the end of fraction in order to separate the text from the equation part of the label. You can also choose a color to apply to the label text.
When working in Console Mode, you can also use the above windows on the Console Results window to add and edit labels. In addition, you can use the ADD_LABEL_TEXT command.
It is possible to change the text style used in LaTeX labels, either for a section of the text or for the whole text (unless something else is specified).
Section of Text Within Curly Brackets | All Text After the Command | Resulting Text Style |
---|---|---|
\textsf{} |
\sf |
Sans serif (default) |
\textrm{} |
\rm |
Roman |
\textbf{} |
\bf |
Bold |
\textit{} |
\it |
Italic |
\textem{} |
\em |
Emphasis |
\texttt{} |
\tt |
Monospace |