and the output gives me something like the attached picture. I am wondering why there is such a big gap between the text and the equation, and how can I center only the equation while keeping the numbering flushed to the right?
Thank you!
Attachments
Please this picture for my output reference.
tex.jpg (30.85 KiB) Viewed 2662 times
Last edited by buttnana on Tue Nov 22, 2011 10:20 am, edited 1 time in total.
I'm surprised you got any output at all. The \center command isn't really defined, as far as I know, though there is a center environment. But you don't need that, as stuff within equation is centered anyway, unless you specify otherwise. Further, as equation is a displayed math environment, there is no need to use inline math ($...$) or \displaystyle within it -- everything in the environment is displayed math. Lastly, you need extra braces for x_i_t, I got an error message, so write x_{i_t} (Edit: On second thought, glancing at your picture, I guess you're really after x_{it}.).