sleepymalc / VSCode-LaTeX-Inkscape

✍️ A way to integrate LaTeX, VS Code, and Inkscape in macOS
https://pbb.wtf/posts/VSCode-LaTeX-Inkscape/
MIT License
332 stars 21 forks source link

Fail to identify the math mode and text mode #28

Closed zhan-gao closed 10 months ago

zhan-gao commented 10 months ago

Thank you so much @sleepymalc for the fantastic contribution! I've been enjoying this Latex setup except for one thing.

Sometimes my VS code starts to fail to identify whether I'm in text mode or math mode, and suddenly all math snippets apply everywhere. This goes away if I close and reopen the file.

Another issue is that when I insert labels in equations it is identified as math mode in \label{}.

Thank you very much in advance if you have thoughts about these issues.

sleepymalc commented 10 months ago

For the first issue, see #25; for the second, there are no special scopes for \label{ }. This is a common issue that I also faced, and my solution would be to create these labels outside the math environment and then cut-paste them to the correct place.

zhan-gao commented 10 months ago

Thanks so much.