1. Document is some plain text format with inline LaTeX support, e.g. Markdown with LaTeX or Org mode.
2. Editor provides a live, inline preview while you are typing, including LaTeX.
3. Plugin available for LaTeX shortcuts.
I am not a fan of side-by-side source and rendered PDF; on large documents it can be hard to find your place in the LaTeX soup. That's why I want the preview to be inline.
I have tried Obsidian, emacs org-mode, and Joplin.
Obsidian: - With the more complicated stuff, MathJax is limiting and not configurable (e.g. lack of diagrams or packages). This is the main reason I want to move away.
- Weird notion of vaults, for some reason Obsidian insists on being special. Why can't I open any file with Obsidian? The file explorer pane is garbage compared to what you'd find in VSCode.
- Latex Suite plugin is nice for custom LaTeX shortcuts.
- I have also had some serious papercuts where everything looked fine in the live preview and then has errors in the PDF export. New problem I've been having is that occasionally on export, some symbols are blank. Exporting again usually fixes it.
emacs org-mode:
- There is no live, inline LaTeX preview. Best I could find was emacs-webkit-katex-render[0], but it's basically creating a webkit widget and rendering KaTeX. It's a completely separate renderer from the rest of org-mode-latex. Again it's not configurable and won't support LaTeX packages. I'm not sure if AUCTeX is even amenable to live previews, might be too slow. org-fragtog hides the fragment while you're editing so no live preview through that plugin either.
- cdlatex looks nice for shortcuts. Probably more powerful and more polished than Latex Suite for Obsidian, but haven't explored it fully yet.
Joplin: - I moved to Obsidian from Joplin originally. I don't think Joplin supports live previews for LaTeX, but this might have changed since I last used it.
So far I haven't found a program that's the best at all 3. As much as I hate bloated Electron apps, it seems as though the web people are the only ones who have figured out how to do live LaTeX previews. Is there better software out there for LaTeX than Obsidian?
[0] https://github.com/fuxialexander/emacs-webkit-katex-render
perihelions•1h ago
Whichever package you use, it should be reasonably simple to edit this aspect of its behavior.
quamserena•1h ago