# Centering Math Formulas

I am using LaTeXila in Ubuntu and I want to center my math equation so I have this written:

``````\$\[ 2^{10} \]\$
``````

But when I try to compile into PDF, it outputs the error:

``````Bad math environment delimeter
``````

How do I get it to center math text properly? Thanks

-
This is not valid latex syntax. You have to omit both dollar-signs to achieve what you want. –  user1146332 Jan 30 '13 at 8:07
@user1146332 wow thanks, such an easy fix. –  Richard Jan 30 '13 at 8:09
`\$[itex]\$` is for inline mathematical expressions. –  Svend Tveskæg Jan 30 '13 at 8:16
For basics and not only you can see here ctan.org/tex-archive/info/lshort/english ... :) –  karathan Jan 30 '13 at 8:21

## 1 Answer

``````\$2^{10}\$
``````

will give you inline math, i.e., a formula in the middle of the text.

``````\[ 2^{10} \]
``````

will give you display math, i.e., a formula separated from the text, and centered.

-