Recent melpa package does this: 
https://github.com/io12/org-fragtog

  -k. 


Please excuse brevity. Sent from tiny pocket computer with non-haptic feedback keyboard.

On Thu, Feb 13, 2020, 21:20 Ag Ibragimov <agzam.ibragimov@gmail.com> wrote:

I just recently discovered that this excellent code snippet that I found long time ago here:
http://slumpy.org/blog/2017-02-01-automatic-latex-preview-in-org-mode

which is based on even older post originally written by John Kitchin:

http://kitchingroup.cheme.cmu.edu/blog/2015/10/09/Automatic-latex-image-toggling-when-cursor-is-on-a-fragment/

unfortunately stopped working. I guess I missed it, at some point it seems org--list-latex-overlays function was removed.

Does anyone know if there's updated version of this thing somewhere? Or maybe this was extracted into some plugin or something that can be installed from MELPA maybe and I don't even know?