I use Spacemacs and org mode for writing latexified notes. There is no custom setup, just the default latex layer.

I usually toggle org-latex-preview by C-c C-x C-l. It is annoying, because I must press this combination before editing each formula.

I want it to behave like this: when I enter INSERT mode while on a previewed LaTeX image, it should de-preview only this formula. How can I accomplish that?

  • Not what you want, but it might help: try binding org-latex-preview to a shorter key sequence (e.g. a function key); that should make the toggling far less painful. – NickD Aug 7 '20 at 3:48
  • texfrag-mode replaces the latex preview of orgmode with that one of the AucTeX package preview.el. If you enter a LaTeX fragment with the mouse or with the keyboard it is opened. If you also activate texfrag-show-last-mode you even see the last rendered image while editing the LaTeX source code. texfrag-mode is available via melpa. – Tobias Aug 7 '20 at 7:40
  • I will try texfrag, but having some problems with installation. If I manage to install and it works well, and if you put that as an answer, I will accept (if no one comes up with something better in the meantime). – Daniel Paleka Aug 7 '20 at 16:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.