AllanChain / logseq-live-math

Type LaTeX in live mode!
Apache License 2.0
35 stars 1 forks source link

[Bug] multiline math issues #21

Open zzhixin opened 6 months ago

zzhixin commented 6 months ago

What happened?

issues

It should be \begin{align}\end{align}

Logseq Version

0.10.3

Logseq Live Math Version

1.3.1

Quick check

Additional context

No response

AllanChain commented 6 months ago

Oh, this bug is very unfriendly to new users. While this is mainly caused by upstream, I'll try to fix it.

As a workaround, I created an inline shortcut (edit settings.json in the plugin settings page, link)

"align": "\\begin{align*}\n#? &= #? \\\\\n #? &= #?\\end{align*}",

After I typed "align", something like this will show

image

AllanChain commented 6 months ago

As a temporary fix, I changed lines environment to gather implicitly (see above commit and https://github.com/AllanChain/logseq-live-math/releases/tag/v1.4.0). Further fixes require upstream fixes.