Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Latex script doesnt works on windows 11 24h2 #253

Open
jgardona opened this issue Dec 21, 2024 · 6 comments
Open

[BUG] Latex script doesnt works on windows 11 24h2 #253

jgardona opened this issue Dec 21, 2024 · 6 comments

Comments

@jgardona
Copy link

Hello, good morning.

The latex script doen't works on windows 11. I had read the other bugs about latex here, and think its happening again in windows 11 x64 24h2.

image

Log panel didnot show nothing

image

Expected behavior

To show properly latex.

@pbek
Copy link
Member

pbek commented Dec 21, 2024

Can you please mention the authors of the script.

@jgardona
Copy link
Author

jgardona commented Dec 21, 2024

Can you please mention the authors of the script.

{
  "name": "Latex Math",
  "identifier": "latex-math",
  "script": "latex-math.qml",
  "version": "0.0.6",
  "platforms": ["linux", "macos", "windows"],
  "minAppVersion": "20.8.0",
  "authors": ["@r00tr4v3n","@Aganel"],
  "description" : "This script creates LaTex images on the fly with KLatexFormula. e. g. $x^2$ or $[22] x^2$ to create larger images. \nThe images are created once and reused as long as the formula does not change. If you changed the preamble you have to clean the cache folder to regenerate the images. \nDon't make it too complicated, this size works though: $[33] \\frac{1}{2\\pi}\\int{-\\infty}^{\\infty}e^{-\\frac{x^2}{a}}dx$\nHint: You might want to add the $-signs after writing the formula to prevent intermediate image generation."
}

@jgardona
Copy link
Author

jgardona commented Dec 21, 2024

I installed it in two ways, by the scripts settings, using the qownotes to download it. And did it manually also when I saw the issue.

@Aganel and @r00tr4v3n

@pbek
Copy link
Member

pbek commented Dec 22, 2024

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 selecting Debug in Options).

@jgardona
Copy link
Author

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 selecting Debug in Options).

Hello, here is it. The log panel with debug option on

[10:57:33] [debug] currentLocalPath - 'currentLocalPath': "C:/Users/jcbri/Notes"
[10:57:33] [scripting] [LaTex] got cmds: 1
[10:57:33] [scripting] [LaTex] exec1: "/usr/bin/klatexformula" -f "#000000" -b "-" --base64arg --preamble="XHVzZXBhY2thZ2V7YW1zbWF0aH1cdXNlcGFja2FnZXthbXNzeW1ifVx1c2VwYWNrYWdle2Ftc2ZvbnRzfVxuZXdjb21tYW5ke1xteWNtZH1bMV17XGJmIFx1bmRlcmxpbmV7IzF9fQ==" --base64arg --latexinput="XGJmICBhICsgYiA9IGM=" --dpi 600 --quiet 1 --output C:/Users/jcbri/AppData/Local/PBE/QOwnNotes/cache/scripts/latex-math/c11f24ab538e915889a96fb7773c85c4.png
[10:57:33] [scripting] [LaTex] remaining: 0
[10:57:33] [scripting] [LaTex] done

image

@pbek
Copy link
Member

pbek commented Dec 22, 2024

@Aganel, @r00tr4v3n, does that help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants