Ok, let's make this more concrete so I can start working on it then.

Alternative A:

Provide three functions:

org-toggle-latex-fragment:
    bound to C-c C-x C-l
    has an optional argument arg
    delegates to org-preview-latex-section if necessary (outside of
fragment or C-u)

org-preview-latex-section:
    unbound
    has an optional argument remove

org-preview-latex-all:
    unbound
    has an optional argument remove

----

Alternative B:

Do some cosmetic changes to org-toggle-latex-fragment and provide the
following bindings:

C-c C-x C-l: toggle fragment or preview section
C-u C-c C-x C-l: unpreview section
C-u C-u C-c C-x C-l: preview document
C-u C-u C-u C-c C-x C-l: unpreview document
I favor alternative B since it's a simpler change and the only awful
binding is the (by far) less useful one.

Reply via email to