1

I have error

! Missing } inserted. } l.9 { -1+2/[1+3\exp(-2|J|/k_BT)],& $T

MWE

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{eqnarray}  \label{eq:Cd}
\tilde C(T)=
\begin{cases}
{ -1+2/[1+3\exp(-2|J|/k_BT)],& $T<T_e$;\cr\cr 0,& $T\ge T_e$.\cr}
\end{cases}
\end{eqnarray}

\end{document}

When i comment \usepackage{amsmath} there is no error. I can't understand how to fix it, without \usepackage{amsmath} commenting.

1
  • 2
    When I remove the brackets and the dollar signs, the document compiles with amsmath. Nov 28, 2012 at 12:00

1 Answer 1

5

The problem is you are trying to use math inside math: $T<T_e$. Take off those $$:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{eqnarray}  \label{eq:Cd}
\tilde C(T)=
\begin{cases}
    -1+2/[1+3\exp (-2|J|/k_BT)], & T<T_e \\ 0,& T\ge T_e.    \end{cases}
\end{eqnarray}

\end{document}
1
  • 3
    correct, the $ signs are definitely not needed. a couple more suggestions: this would work as well (and perhaps better) with equation instead of eqnarray, and the final \` isn't needed at the end of cases` (it would leave a probably-unwanted blank line). Nov 28, 2012 at 13:55

You must log in to answer this question.

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