I made a kind of solution that does this here: http://kitchingroup.cheme.cmu.edu/blog/2015/10/09/Automatic-latex-image-toggling-when-cursor-is-on-a-fragment/
You might see if it does what you want. Knud Soerensen writes: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi > > I love org-mode and use it a lot for latex notes. > > I will like to suggest a new latex setting which let org-mode show the > latex code when cursor is on the code line. > But when the cursor leaves the code line the latex is automatic rendered > to a image. > > This will save many C-c C-x C-l and C-c C-c and make Latex editing much > easier. > > If the latex is a multi line block it should only render when you leave > the block. > > Thanks for Org-mode. > > Knud > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > > iQEcBAEBAgAGBQJWFRvTAAoJEIiA+jisx2wbROYH/3dCDHgxsZqbGydxOUkpzA6I > Ls0p92xYOD3be15EXozCftMUMmqbeWB3mMDipwu3ZNJKhRKz/P+m7gHW+quVitkg > 4C7O27r0ka7/oDELV7TCkfMFCZ1MSKELqHA/qDegkz3tS14/h542QxGiJo6utTs1 > LMajLUNYOm/TbVtvM1otI4f+EqapTeZYyFhvh64KyKZRUvHteUk5wRtZMiTDglKF > WhM9ObOS8R6RkMDNb/yWPiuydGnjsCgOoO5B7qr4DxqK5l8+IePcRZBeZpaM767U > lEf0gRMbA030q+UXhAbbKN0Kn8s0K+SDt0yAer1/NE9PDGeObIWiOwHXz3nA61E= > =PPw+ > -----END PGP SIGNATURE----- -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu