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.

Does \frac not work from within a table? I need to reproduce the formulae for various methods on this page - here. I for example use

Normalized Square Difference & \frac{\sum_{x',y'} (A(x',y')-B(x+x',y+y'))^2}{\sum_{x',y'} (A(x',y')-B(x+x',y+y'))^2}\\

but I see no fraction in the table. Any suggestions?

share|improve this question
2  
Have you tried enclosing the equation in $<equation>$? If that doesn't help, you should post a complete minimal working example to reproduce the problem. –  Jake Jun 18 '11 at 0:50
    
I even tried just a normal \frac{1}{1} instead of the above and it doesnt work.Could you tell me the code for one of these?I'd translate it accordingly –  rty Jun 18 '11 at 0:55
1  
Try $\frac{\sum_{x',y'} (A(x',y')-B(x+x',y+y'))^2}{\sum_{x',y'} (A(x',y')-B(x+x',y+y'))^2}$, i.e. enclose the equation in dollar signs to put them into math mode. –  Jake Jun 18 '11 at 0:59
    
Or, if most of the table is in math mode, surround the entire table with \[ and \], and surround the non-math within a \text{} macro. –  Peter Grill Jun 18 '11 at 1:36
    
@Jake : Thanks a lot! it worked :) –  rty Jun 18 '11 at 5:44
show 3 more comments

1 Answer

up vote 3 down vote accepted

Equations need to be in math mode, so you should surround the equations with dollar ($) signs:

Normalized Square Difference & $\frac{\sum_{x',y'} (A(x',y')-B(x+x',y+y'))^2}{\sum_{x',y'} (A(x',y')-B(x+x',y+y'))^2}$\\
share|improve this answer
add comment

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.