On Thu, Jan 2, 2025 at 10:34 AM Thomas Passin <[email protected]> wrote:
> Please explain what these node types are supposed to do. Great questions! One set of answers is in math.leo <https://github.com/edreamleo/EKR-Math/blob/main/math.leo> but here are some more direct answers: > Should we only enter LaTeX? You can enter various *flavors* of LaTeX in @language latex, @language katex, and @language typst nodes. Rendering LaTeX (mathjax, katex, and typst) requires QWebEngineView, an implementation of the Google Chromium renderer. The three renderers are similar. They get their text from c.p.b, add a header (configurable by `@data` nodes), then pass the result to the QWebEngineView. mathjax, katex, and typst produce different results, perhaps because their installation (headers) differ. I found the katex and typst installation instructions confusing. Those languages might give much better results in more expert hands. I'm using mathjax because it seems to work the best. But that may be because the katex and typst headers are buggy. I'm a newbie with all three languages. @pdf nodes are different. The body text should contain a path to a .pdf file. The path can be absolute or relative to the outline's directory. VR simply renders the pdf file. > Can we enter Markdown with embedded LaTeX? Afaik, the answer is "no". Iirc, katex and typst allow embedded html. > Do we need to install a pdf processor and if so, which one? QWebEngineView is probably the only processor needed. > Are there differences in what we should enter between the various node types? > Do we need an internet connection to use @katex and @typst (I know that mathjax can be set up not to need an I/N connection)? I don't know for sure. Installing mathjax, katex, and typst locally is probably possible, but I haven't done so. *Summary* I created math.leo using trial and error. All the nodes render correctly for me. Please download the file and try rendering all the nodes using the VR plugin. I welcome any suggestions for improving the language-related headers. Please feel free to ask more questions. There is plenty of time for improvements. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS222imJg7LqAa8b51OMXn4TCfpg7e2axbDLf5_0Zrh_9A%40mail.gmail.com.
