2 ms·
It's only a few lines of Elisp to implement in-line preview according to your preferred style. I DIY'd one myself: my choice is to work a paragraph level, alter
by perihelions 1y ago
It's only a few lines of Elisp to implement in-line preview according to your preferred style. I DIY'd one myself: my choice is to work a paragraph level, alternating blocks of TeX source with in-line image outputs. All you need to do (at minimum) is slurp a text paragraph, pipe it into a TeX command, and glue the output back in with (insert-image) or one of its friends. All the basic text-editing commands are on hand, because Emacs' API treats image objects (almost) identically to plain text.
Whichever package you use, it should be reasonably simple to edit this aspect of its behavior.
- quamserena 1y agoCool! I am still new to emacs. Would you be willing to share the elisp? Would be a nice starting point for me :)
- perihelions 1y agohttps://peri.pages.dev/tex-notes-snippet https://peri.pages.dev/tex-notes-snippet This is a glue pattern I like to reuse on my personal setup, that pipes a text paragraph through a chain of scripts; accepts an image file as output; and displays that after its source paragraph, overwriting a previous image. UX for "this text evaluates to an image".