tecosaur / LaTeX-Utilities

An add-on to LaTeX Workshop that provides some features that go beyond the bare essentials
MIT License
474 stars 28 forks source link

live snippet does not work #390

Closed JackYansongLi closed 10 months ago

JackYansongLi commented 10 months ago

Bug Report

Disable all the other extensions except for LaTeX Workshop and LaTeX Utilities, and check that you still see this issue.

You still see this issue?: Yes

Describe the bug

I have made latex-utilities.liveReformat.enabled to true, but the live snippet does not work.

To Reproduce

Steps to reproduce the behaviour:

  1. Install latex-workshop and latex-utility
  2. enable latex-utilities.liveReformat.enabled
  3. type a1 or =>

Expected behaviour

a1 should be replaced by a_1 and => by \implies, but it does not happen.

Logs

Please paste the whole log messages here, not parts of ones. It is very important to identify problems. If you think the logs are unrelated, please say so.

LaTeX Workshop Output ``` logs here ```
LaTeX Utilities Output ``` logs here ```
Developer Tools Console ``` logs here ```

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop

Additional context

Add any other context about the problem here.

leoleoasd commented 10 months ago

Please provide more details on how it "does not work". What did you do? What is the expected behavior? What actually happened?

JackYansongLi commented 10 months ago

Please provide more details on how it "does not work". What did you do? What is the expected behavior? What actually happened?

I just typed a1 and =>, they are not changing to a_1 and \implies

leoleoasd commented 10 months ago

Can you take a screenshot?

leoleoasd commented 10 months ago

Note that live snippet for math formulas dont work in inline math equations ($$). It only works in \[\] and \begin{formula}...

JackYansongLi commented 10 months ago

Note that live snippet for math formulas dont work in inline math equations ($$). It only works in \[\] and \begin{formula}...

oh! you are right! I didn't see this on the document.

leoleoasd commented 10 months ago

You can use \(\) for inline equation

JackYansongLi commented 10 months ago

You can use \(\) for inline equation

live snippet still does not work for (), I am using \$...\$ for inline formula and \begin{equation} for displayed formula. The live snippet works pretty well for displayed formula

leoleoasd commented 10 months ago

replace $...$ with \(...\)

JackYansongLi commented 10 months ago

replace $...$ with \(...\)

does not work, the live snippet is not activated inside \( ... \)

leoleoasd commented 10 months ago

Can you take a screenshot

JackYansongLi commented 10 months ago

Can you take a screenshot

I restarted the computer and everything works fine now....