Closed terrifictable closed 1 year ago
latex-math
@r00tr4v3n & @Aganel
This is how a rendered markdown formula looks, the image itself is good, but its displayed very wide in the preview
[11:15:56] [scripting] [LaTex] clearing cache dir ... [11:15:56] [scripting] [LaTex] true [11:15:56] [scripting] [LaTex] got cmds: 1 [11:15:56] [scripting] [LaTex] exec1: "F:\KLatexFormula-4.1.0\bin\klatexformula.exe" -f "#000000" -b "-" --base64arg --preamble="XHVzZXBhY2thZ2V7YW1zbWF0aH1cdXNlcGFja2FnZXthbXNzeW1ifVx1c2VwYWNrYWdle2Ftc2ZvbnRzfVxuZXdjb21tYW5ke1xteWNtZH1bMV17XGJmIFx1bmRlcmxpbmV7IzF9fQ==" --base64arg --latexinput="XCBjXjIgPSBhXjIgKyBiXjI=" --dpi 600 --quiet 1 --output C:/Users/Sandbox/AppData/Local/PBE/QOwnNotes/cache/scripts/latex-math/c38b976179291debae5736a69803c024.png [11:16:00] [scripting] [LaTex] remaining: 0 [11:16:00] [scripting] [LaTex] done
nvm, im just stupid some setting from image-preview set the width of images to 600 by default
Script name
latex-math
Script authors
@r00tr4v3n & @Aganel
Question
This is how a rendered markdown formula looks, the image itself is good, but its displayed very wide in the preview
Output from the debug section in the settings dialog
Debug section data
QOwnNotes Debug Information =========================== ## General Info **Current Date**: `So Sep 17 11:16:53 2023` **Version**: `23.8.2` **Build date**: `Aug 26 2023` **Build number**: `1050` **Platform**: `windows` **Operating System**: `Windows 10 Version 2009` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `GitHub Actions` **Qt Version (build)**: `5.15.2` **Qt Version (runtime)**: `5.15.2` **Portable mode**: `no` **Settings path / key**: `\HKEY_CURRENT_USER\Software\PBE\QOwnNotes` **Application database path**: `C:\Users\Sandbox\AppData\Roaming\PBE\QOwnNotes\QOwnNotes.sqlite` **Application arguments**: `E:\haskell\lib\qownnotes\tools\QOwnNotes.exe` **Qt Debug**: `0` **Locale (system)**: `de_DE` **Locale (interface)**: `en` **Primary screen resolution**: `3440x1440` **Screen resolution(s)**: `3440x1440, 1024x600` **Icon theme**: `breeze-dark-qownnotes` **Notes in current note folder**: `2` **Calendar items**: `6` **Enabled scripts**: `5` ## Server Info **serverUrl**: `https://nextcloud.terrifictable.xyz` **appIsValid**: `yes` **notesPathExists**: `yes` **serverVersion**: `27.0.2.1` **appVersion**: *empty* ## Spellchecking **Enabled**: `false` **Selected language**: *empty* **Language codes**: *empty* **Language names**: *empty* **Application dictionaries path**: `C:\Users\Sandbox\AppData\Roaming\PBE\QOwnNotes\dicts` ## Note folders **currentNoteFolderId**: `3` ### Note folder `default` **id**: `3` **isCurrent**: `yes` **activeTagId**: `0` **localPath**: `F:\Nextcloud\Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `no` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: *empty* **database file**: `F:\Nextcloud\Notes\notes.sqlite` ### Note folder `Notes` **id**: `2` **isCurrent**: `no` **activeTagId**: `0` **localPath**: `F:\Notes\Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `no` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: *empty* **database file**: `F:\Notes\Notes\notes.sqlite` ### Note folder `F:/Notes` **id**: `4` **isCurrent**: `no` **activeTagId**: `0` **localPath**: `F:\Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `no` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: *empty* **database file**: `F:\Notes\notes.sqlite` ## Cloud connections ### Cloud connection `Neue Verbindung` **id**: `2` **isCurrent**: `no` **serverUrl**: *empty* **username**: *empty* **accountId**: *empty* ### Cloud connection `nextcloud.terrifictable.xyz` **id**: `1` **isCurrent**: `yes` **serverUrl**: `https://nextcloud.terrifictable.xyz` **username**: `terrific` **accountId**: *empty* **Nextcloud Deck boardId**: `0` **Nextcloud Deck stackId**: `0` ## Enabled scripts ### Script `Latex Math` **id**: `1` **path**: `C:\Users\Sandbox\AppData\Roaming\PBE\QOwnNotes\scripts\latex-math\latex-math.qml` **variablesJson**: ``` { "customPreamble": "\\newcommand{\\mycmd}[1]{\\bf \\underline{#1}}", "debug": true, "executable": "F:\\KLatexFormula-4.1.0\\bin\\klatexformula.exe", "formulaBgColor": "-", "formulaColor": "#000000", "formulaPrefix": "\\ ", "settingDPI": 600, "settingImageSize": 16, "usepackages": "amsmath,amssymb,amsfonts" } ``` **identifier**: `latex-math` **version**: `0.0.6` **minAppVersion**: `20.8.0` ### Script `Wiki Links` **id**: `2` **path**: `C:\Users\Sandbox\AppData\Roaming\PBE\QOwnNotes\scripts\wiki-links\wiki-links.qml` **variablesJson**: ``` { "wikilinksBackgroundColor": "#FFFF00", "wikilinksForegroundColor": "#ff832b", "wikilinksHideSubfolder": true, "wikilinksLowerCase": true, "wikilinksRemoveSpaces": true, "wikilinksReplaceSpacesSymbol": "-", "wikilinksSanitizeFilename": true } ``` **identifier**: `wiki-links` **version**: `0.0.1` **minAppVersion**: `20.6.0` ### Script `Toggle comment` **id**: `3` **path**: `C:\Users\Sandbox\AppData\Roaming\PBE\QOwnNotes\scripts\toggle-comment\toggle-comment.qml` **variablesJson**: *empty* **identifier**: `toggle-comment` **version**: `1.0` **minAppVersion**: `20.4.16` ### Script `Link titles` **id**: `5` **path**: `C:\Users\Sandbox\AppData\Roaming\PBE\QOwnNotes\scripts\link-titles\link-titles.qml` **variablesJson**: *empty* **identifier**: `link-titles` **version**: `0.0.1` **minAppVersion**: `20.6.0` ### Script `Image preview` **id**: `6` **path**: `C:\Users\Sandbox\AppData\Roaming\PBE\QOwnNotes\scripts\image-preview\image-preview.qml` **variablesJson**: ``` { "maxWidth": 640 } ``` **identifier**: `image-preview` **version**: `1.0.1` **minAppVersion**: `20.6.0` ## Settings **ActiveNoteHistoryItem** (NoteHistoryItem): `Relevant log output in the Log panel