org-fragtog icon indicating copy to clipboard operation
org-fragtog copied to clipboard

Feature Request: Evaluate the whole buffer

Open chookity-pokk opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. No problem but I just have a large org file that has a lot of small chunks of latex and would like to eval the whole buffer rather than moving my cursor through all of them.

Describe the solution you'd like A function to evaluate the whole buffer with fragtog.

Describe alternatives you've considered Just going through each chunk of latex to add in the preview.

chookity-pokk avatar Aug 29 '23 15:08 chookity-pokk

You can first run C-U C-U org-latex-preview which will evaluate the whole buffer, and then run org-fragtog-mode. If you want to do it programmatically:

(add-hook 'org-mode-hook 
          (lambda () 
            (org-fragtog-mode)
            (let ((current-prefix-arg 16))
              (call-interactively 'org-latex-preview))
            ))

It'll run this for every org file, you can play around with the config and only run it for the files you need I think

BeaRRRRR avatar Oct 02 '23 05:10 BeaRRRRR

You could also add #+startup: latexpreview, in each file, or customize org-startup-with-latex-preview, which see.

swflint avatar Dec 02 '23 02:12 swflint