TeXiFy-IDEA icon indicating copy to clipboard operation
TeXiFy-IDEA copied to clipboard

Live templates do not expand when abbreviation is directly after inline math start

Open izhang05 opened this issue 11 months ago • 3 comments

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

Clion

Operating System

MacOS

TeXiFy IDEA version

What I did (steps to reproduce)

Minimal example to reproduce the problem

\documentclass{article}
\begin{document}
    $sum$
\end{document}

Expected behavior

pressing tab when the cursor is placed after "sum" expands the relevant live template

Actual behavior

The live template does not expand. In order for the live template to work, a space needs to be placed after the $

\documentclass{article}
\begin{document}
    $ sum$
\end{document}

izhang05 avatar Sep 23 '23 21:09 izhang05

Can confirm this happens on latest version (it was not provided)

jojo2357 avatar Sep 24 '23 17:09 jojo2357

Creating a duplicate of the sum live template and changing it to $sum works as intended

jojo2357 avatar Sep 24 '23 17:09 jojo2357

Thank you! I had tried that, but with the applicable environment of the template set as only "LaTeX: math". It works only if you set the applicable environment to include general LaTeX as well.

Regardless, it's annoying to have to create duplicate versions for every math live template.

izhang05 avatar Sep 25 '23 01:09 izhang05