Skip to content

Commit 30e350c

Browse files
committed
updated settings to provide more info on usage
1 parent 1f10823 commit 30e350c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

main.ts

+12
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,20 @@ class LatexRendererSettingTab extends PluginSettingTab {
399399

400400
containerEl.empty();
401401

402+
containerEl
403+
.createEl("p", {
404+
text: 'This plugin uses latex to render SVGs. The SVGs are cached and automatically removed if they are not being used. The key thing is to find a command that will work on your system. Example: `export LIBGS=/opt/homebrew/lib/libgs.dylib && latex -interaction=nonstopmode -halt-on-error -shell-escape "{file-path}" && dvisvgm --no-fonts "{file-path}"`. For more information please see the ',
405+
})
406+
.createEl("a", {
407+
text: "README",
408+
href: "https://github.com/jvsteiner/obsidian-latex-render",
409+
});
410+
402411
new Setting(containerEl)
403412
.setName("Command to generate SVG")
413+
.setDesc(
414+
"The command to generate SVG from latex source. Use `{file-path}` as a placeholder for the file path."
415+
)
404416
.setClass("latex-render-settings")
405417
.addTextArea((text) =>
406418
text

0 commit comments

Comments
 (0)