Does not say what ARG is !
 
Could be much better to do "M-x org-latex-preview" to toggle on-off.
 
Sent: Friday, June 25, 2021 at 4:06 AM
From: "Rodrigo Morales" <moralesrodrigo1100@gmail.com>
To: "Christopher Dimech" <dimech@gmx.com>
Cc: "Help Emacs Orgmode" <emacs-orgmode@gnu.org>
Subject: Re: Latex preview for whole buffer with on-off keybinding
Accomplishing this is explained in the docstring of org-latex-preview:

> org-latex-preview is an interactive compiled Lisp function in
> ‘org.el’.
>
> (org-latex-preview &optional ARG)
>
> ...
>
> With a ‘C-u’ prefix argument ARG, clear images for all fragments
> in the current section.
>
> With a ‘C-u C-u’ prefix argument ARG, display image for all
> fragments in the buffer.
>
> With a ‘C-u C-u C-u’ prefix argument ARG, clear image for all
> fragments in the buffer.

Hope that helps.

---
Greetings,
rdrg109
 
On Thu, 24 Jun 2021 at 10:45, Christopher Dimech <dimech@gmx.com> wrote:
Org-mode allows latex-preview.  But this applies to each latex
expression independently.  Is there a way to have a keybinding
that would turn latex-preview "on" or "off" for the whole buffer?

This applies only to snippets
C-c C-x C-l (org-latex-preview)