Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature Request: Evaluate the whole buffer #48

Open
chookity-pokk opened this issue Aug 29, 2023 · 2 comments
Open

Feature Request: Evaluate the whole buffer #48

chookity-pokk opened this issue Aug 29, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@chookity-pokk
Copy link

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 chookity-pokk added the enhancement New feature or request label Aug 29, 2023
@BeaRRRRR
Copy link

BeaRRRRR commented Oct 2, 2023

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

@swflint
Copy link

swflint commented Dec 2, 2023

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants