0
$\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.

3
  • You are using mathmode within mathmode: $\frac{1-(-\frac{1}{2}^t)}{\frac{3}{2}}$ is better
    – azetina
    Commented Nov 1, 2013 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
    Commented Nov 1, 2013 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. Commented Nov 1, 2013 at 23:57

2 Answers 2

5

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

2

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .