[Tex/LaTex] Using \frac within a table

math-modetables

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?

Best Answer

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}$\\
Related Question