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.

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
5  
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
3  
For basics and not only you can see here ctan.org/tex-archive/info/lshort/english ... :) –  karathan Jan 30 '13 at 8:21
add comment

1 Answer 1

up vote 8 down vote accepted
$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.

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.