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.
$\frac{1-(-$\frac{1}{2}^t$) }{$\frac{3}{2}$}$

For some reason it gives me an error, something about a Missing \endgroup, be warned I'm new to Latex.

share|improve this question
    
You are using mathmode within mathmode: $\frac{1-(-\frac{1}{2}^t)}{\frac{3}{2}}$ is better –  azetina Nov 1 '13 at 23:36
1  
TeX doesn't really enjoy when you tell it to enter math mode once it's already in math mode. So just drop the internal math mode switches. –  Werner Nov 1 '13 at 23:36
    
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. And please quote complete error messages. –  Martin Schröder Nov 1 '13 at 23:57
add comment

2 Answers 2

You are using too many $ and hence forcing tex to enter math mode when it is already in math mode. Hence remove all internal $. Also the super script t should go outside the parenthesis. Assuming that you are in display mode, I have added \displaystyle. If not, remove it and also \big.

\documentclass{article}
\usepackage{mathtools}
\begin{document}
$\displaystyle \frac{1-\big(-\frac{1}{2}\big)^t}{\frac{3}{2}}$
\end{document}

enter image description here

share|improve this answer
add comment

Remove inner $.

$\frac{1-(-\frac{1}{2}^t)}{\frac{3}{2}}$

should do the trick. The following is just a suggestion:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\dfrac{1-\left(-\frac{1}{2}^t\right)}{\frac{3}{2}}$
\end{document}

enter image description here

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.