1
\begin{align*}
    I(T) = I_m exp(\frac{E}{k T_m}) exp(- \frac{E}{k(T_m)^2}) \int_{T_m}^{T} exp(\frac{E}{k T_m} - \frac{E dT^'}{k T^'})    
\end{align*}

This line of code is giving me trouble as I get the missing { error no matter how much I try to correct it. This line of code works fine in Overleaf from which my friend sent me but not working with my installed LaTeX library along with VS Code. Any fixes?

7
  • Unrelated: don't use ^' just use ' it us redefined in math mode as ^{\prime} which is what you want.
    – daleif
    Jan 20, 2023 at 15:42
  • 1
    Are you sure the error is in this piece of code? If so please provide a full minimal example others can copy and use to get the same error you get.
    – daleif
    Jan 20, 2023 at 15:43
  • @daleif Know what? that exactly was the issue. Now it's fine. And yes that line was troublemaker not rest of the document. Thanks
    – Vaishnav
    Jan 20, 2023 at 15:45
  • @daleif actually that is related here (\halign weirdness:-) Jan 20, 2023 at 15:45
  • @Vaishnav but you should always provide a full document (as in my answer) so people can test the code and possible answers. Jan 20, 2023 at 15:47

1 Answer 1

3

The error is due to the incorrect input T^' which should be T' but also \exp and do not use align for single line displays, so

enter image description here

\documentclass{article}

\usepackage{amsmath}

\begin{document}
\[
    I(T) = I_m \exp(\frac{E}{k T_m}) \exp(- \frac{E}{k(T_m)^2}) \int_{T_m}^{T} \exp(\frac{E}{k T_m} - \frac{E dT'}{k T'})  
\]
\end{document}

2
  • Well, the parentheses are really ugly, that size.
    – egreg
    Jan 20, 2023 at 16:37
  • Solved! Thank you :)
    – Vaishnav
    Jan 20, 2023 at 16:43

You must log in to answer this question.

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