Sublime Forum

^ and _ replaced by curly brackets when writing in math mode- LaTeX

#1

How can I stop ST from replacing ^ and _ in math mode in LaTeX? Currently, when I want to write something like $2^2$ it changes it to $2{2}$, $2_2$ is changed to $2{2}$ and I have to manually correct what ST did, so is it possible to stop that auto replacement as it is a nuisance.

0 Likes

#2

With only LaTeXTools and LaTeX-cwl installed, I can’t reproduce such behavior.

Maybe a malformed snippet or key binding by a plugin is involved.

You can disable suspicious packages one by one to find the culprit.

1 Like

#3

Thanks so much for the fast response. I managed to find the culprit thanks to that tip. It was LateXYZ. Maybe I shouldn’t have just installed a recommended list of packages without knowing what their purpose is xD

0 Likes