Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Been trying to this line to parse for a good 20mins, but all attempts have failed:

\beta = $-$0.84, t = $-$2.09, P = 0.04

Could anyone tell me why I'm getting a Missing $ inserted error here?

share|improve this question
8  
These are three formulas: $\beta=-0.84$, $t=-2.09$, $P=0.04$ –  egreg Mar 9 at 15:11
    
Variables like \beta can only be used in math mode, so the format egreg suggests is really the best way to present this. –  cslstr Mar 9 at 15:24
    
To answer the specific question (in case it's not obvious). \beta is defined to be a maths-mode-only symbol, so when TeX finds it outside a maths environment it tries to start maths for you (and gives an error). You might like to read some basic material about maths in LaTex. –  Thruston Mar 9 at 16:00

1 Answer 1

up vote 8 down vote accepted

egreg is right, of course. The statement should be

$\beta = -0.84$, $t = -0.209$, $P = 0.04$

\beta is a math character and will need some math environment to be displayed. That could be inline math mode, using $...$ or some equation environment. You would also like the spacing to be correct between the numbers and the mathematical symbols, thus wrapping all of it in math mode.

The American Mathematical Society, amsmath, package is a sweet piece of information and a very useful tool.

share|improve this answer
1  
Another great reference is Herbert Voss' comprehensive review of mathematics in (La)TeX –  Peter Grill Mar 9 at 17:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.