1

In orgmode, it is quite useful to view the equations inline. However, sometimes this can take a while to execute. Running org-toggle-latex-fragment asynchronously would be quite useful. However, most of what I can find about async is about how to execute external commands in an async way. I did try this post (https://emacspeak.blogspot.com/2018/07/using-emacs-threads-to-execute-commands.html?m=1) and emacs-aio (https://github.com/skeeto/emacs-aio) but it did not quite work/ I could not get it to work.

Please let me know if anyone here knows how to execute this function in an async way.

Thank you for your response!

9
  • This question is too broad. Ask one question at the time. About alternatives (that translate the LaTeX fragments asynchronously): Try texfrag available on melpa.
    – Tobias
    Oct 30, 2019 at 10:05
  • Just use start-process or make-process and do all the work in sentinels or in hooks of such. That is enough for LaTeX fragments.
    – Tobias
    Oct 30, 2019 at 10:24
  • @Tobias Thanks! I narrowed the scope of what I was looking for. I will check out texfrag. Oct 30, 2019 at 21:29
  • @Tobias Can you clarify a bit? If you mean start an asynchronous process - How does one do that? I tried emacs-aio but could not get it to work. Oct 30, 2019 at 21:34
  • 1
    texfrag completely replaces the LaTeX strategy of orgmode with that one of preview-latex. After installing texfrag run M-x texfrag-mode in the orgmode buffer. You get a TeX menu with most of the menu entries of the Preview menu of AucTeX. The strategy of preview-latex is different from that one of orgmode. preview-latex does many steps in a asynchronous way. You can work with Emacs while the overlays for the LaTeX fragments are generated.
    – Tobias
    Oct 30, 2019 at 23:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.