0

Is it possible to override the caching behaviour of org-latex-preview once and for a particular latex fragment? That is, how should I call the command if I want to regenerate the particular latex fragment at point without using cache?

Many times, after introducing a newcommand or changing the latex header, I want to regenerate the latex preview of some fragments without using cache, but I do not necessarily want to delete the whole cache or stop using it.

The solution in the general case seems to be to just delete all images in the cache subfolder ltximg (see this question), but I would still like to be able to just regenerate one image without having to recreate the whole cache.

2
  • 1
    You could try texfrag. It replaces Org LaTeX preview with AucTeX preview in Org buffers. The LaTeX fragments have a context menu with a menu item for the recompilation of the LaTeX fragment. – Tobias Mar 27 '20 at 20:36
  • I have been using texfrag after this issue, so I can confirm that is a possibility. Maybe someone can still try to solve the original question for org-latex-preview. – Mario Román May 18 '20 at 18:37

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.