2

How would I go about adding a subscript to a symbol I'm defining from an equation. For example I have an equation

E_m = \alpha_m x + y

How can I then do something like \emph \alpha\textsubscript{m}

The above gives me errors and I can't figure out how to correct this.

3
  • why don't you just set the substring as math? i.e., $\alpha_m$ -- \emph usually sets its argument in italic, and that's the usual math style. May 2, 2012 at 15:45
  • 4
    Such a formula should be typed as \(E_{m}=\alpha_{m}x+y\): TeX will take care of the details of math mode.
    – egreg
    May 2, 2012 at 15:45
  • Welcome to TeX.SE. Do you want the subscript in italic, or roman? The usual $E_{m} = \alpha_{m} x + y$ will give you italics, and $E_m = \alpha_{\mathrm{m}} x + y$ will give you a roman subscript. May 2, 2012 at 16:44

1 Answer 1

6

Math formulas should be written in "math mode":

\(E_{m}=\alpha_{m}x+y\)

is the correct way to input that formula.

The "Not so short introduction to LaTeX" covers this topic and is available in many languages.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .