fuxialexander / emacs-webkit-katex-render

An instant latex previewer for Emacs, based on xwidget and child-frame
71 stars 8 forks source link

Persistent render display in-buffer below/in-place of equation #13

Open wakatara opened 3 years ago

wakatara commented 3 years ago

This looks amazing. Nice work.I'm interested in a persistent preview in-buffer.

So, to continually see an on-the-fly render of the latex block. Is there any way to modify this (or configure it) to display the preview persistently in buffer without the need for rolling over the actual formula? As in embed it above/below/over top of it and editable-on-click persistently in the buffer?

In a sense, I'm trying to emulate the really nice "Equation block" feature that Notion has (and that I flirted with over the holidays).

wakatara commented 3 years ago

(also, any chance you could get this into melpa? A surprising number of people did not seem to know about this package.).

fuxialexander commented 3 years ago

I'm afraid it's not obvious to me how can I implement a notion-like feature. Suggestions are welcomed though

wakatara commented 3 years ago

My thought is you would just leave the overlay below the actual formula or to the right of it (or on top of it). When you click into the region it allows you to edit the formula (much like org-fragtog works). Possible?