Oriel — AI & technology worth noticing, every day.

Understanding Org's LaTeX previews

Web page · https://karthinks.com/software/understanding-org-latex-preview

First seen by Oriel on .

AI summary

This article explains a ground-up rewrite of Org mode’s org-latex-preview, delivering asynchronous, near-WYSIWYG LaTeX math previews while preserving Emacs’ text-first, extensible, composable workflow.

  • Bulk preview generation reaches 200 to 800 snippets per second, with 1,000 fragments processed in 3.24 seconds under the slowest settings.
  • Previews regenerate continuously while typing, report LaTeX compilation errors, and maintain consistent equation numbering across a document.
  • Rendered images match surrounding font size, baseline, and colors, automatically adapting when the Emacs theme changes.
  • The implementation minimizes blocking within Emacs’ effectively single-threaded event loop, trading total runtime against intervals of UI unresponsiveness.
  • It requires a LaTeX distribution and currently targets Org mode, while process startup latency and hyper-configurability impose practical limitations.

#emacs #org mode #latex #async programming

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Lobsters: 15, latest observation ; +14 over observed period since

Comments

Comment count reported by the source.

  • Lobsters: 0, latest observation ; 0 over observed period since

Aliases

SourceExternal IDURL
Lobstersyihs7mhttps://karthinks.com/software/understanding-org-latex-preview/ Read discussion