scripts icon indicating copy to clipboard operation
scripts copied to clipboard

The Latex code can't display.

Open Cat7102 opened this issue 3 years ago • 9 comments

I added the Latex Math plugin, and try to type: $x^2$ $\alpha$, but it just shows the blank file icon like this: image

I tried reloading the plugin, but still not work.

The information of the plugin is listed below: name: Latex Math version: 0.0.6 author: rO0tr4v3n, Azanel github link: https://github.com/qownnotes/scripts/tree/master/latex-math

Cat7102 avatar Feb 04 '22 13:02 Cat7102

You need to mention the authors... @r00tr4v3n, @Aganel (you didn't use the @ any you mistyped both of them) 😅

pbek avatar Feb 04 '22 18:02 pbek

You need to mention the authors... @r00tr4v3n, @Aganel (you didn't use the @ any you mistyped both of them) 😅

Thanks! Since the name can't selected, so I used the ocr application and didn't check it. 😅

Cat7102 avatar Feb 04 '22 18:02 Cat7102

You can even click them. And you can also copy them from https://github.com/qownnotes/scripts/blob/master/latex-math/info.json#L8 😉

Is there any useful log output if you enable the log panel (see Window / Panels)? Please make sure you also enable debug logging in the log panel (by right-clicking on the panel and and selecting Debug in Options).

pbek avatar Feb 04 '22 18:02 pbek

I encountered this issue as well. I looked at the right panel of the plugin and scrolled down and i saw it uses klatexformula at /usr/bin/klatexformula

After i installed it, the files started to appear in ~/.cache/PBE/QOwnNotes/scripts/latex-math/

redsigma avatar Feb 08 '22 10:02 redsigma

Yes, you might need to change the path to klatexformula (and install it if necessary). That is what the setting should be used for.

r00tr4v3n avatar Feb 10 '22 10:02 r00tr4v3n

@r00tr4v3n, @Aganel hello, latex-math runs wrong on my mac. I set the path to klatexformula correctly, but it still doesn't work. I debugged myself and found that the command generated by the script bash -c "kalatexformula" -f xxx; I can generate the file when I run it in the terminal, but the script runs correctly and does not generate the corresponding image file.

jwli6 avatar Jun 13 '22 03:06 jwli6

And I turned on full access to the disk in qownnotes in the mac settings.

jwli6 avatar Jun 13 '22 03:06 jwli6

And, its maybe bug? After regenerateNotePreview, the previous noteToMarkdownHtmlHook will be executed again, and then it will be executed in a loop?

jwli6 avatar Jun 13 '22 03:06 jwli6

@r00tr4v3n hello, latex-math runs wrong on my mac. I set the path to klatexformula correctly, but it still doesn't work. I debugged myself and found that the command generated by the script bash -c "kalatexformula" -f xxx; I can generate the file when I run it in the terminal, but the script runs correctly and does not generate the corresponding image file.


The logs show that it no error or warning, but it doesn't work(not display latex picture).

jwli6 avatar Jun 13 '22 03:06 jwli6

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Apr 04 '23 15:04 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Apr 19 '23 02:04 github-actions[bot]