TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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
$<math>$ 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
up vote 8 down vote accepted

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.

share|improve this answer

Your Answer


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.