emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Latex preview for whole buffer with on-off keybinding
@ 2021-06-24 15:44 Christopher Dimech
  2021-06-24 16:06 ` Rodrigo Morales
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Dimech @ 2021-06-24 15:44 UTC (permalink / raw)
  To: Help Emacs Orgmode

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)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Latex preview for whole buffer with on-off keybinding
  2021-06-24 15:44 Latex preview for whole buffer with on-off keybinding Christopher Dimech
@ 2021-06-24 16:06 ` Rodrigo Morales
  2021-06-24 17:29   ` Christopher Dimech
  0 siblings, 1 reply; 4+ messages in thread
From: Rodrigo Morales @ 2021-06-24 16:06 UTC (permalink / raw)
  To: Christopher Dimech; +Cc: Help Emacs Orgmode

[-- Attachment #1: Type: text/plain, Size: 910 bytes --]

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)
>
>

[-- Attachment #2: Type: text/html, Size: 1311 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Latex preview for whole buffer with on-off keybinding
  2021-06-24 16:06 ` Rodrigo Morales
@ 2021-06-24 17:29   ` Christopher Dimech
  2021-06-25 12:00     ` Eric S Fraga
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Dimech @ 2021-06-24 17:29 UTC (permalink / raw)
  To: Rodrigo Morales; +Cc: Help Emacs Orgmode

[-- Attachment #1: Type: text/html, Size: 2450 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Latex preview for whole buffer with on-off keybinding
  2021-06-24 17:29   ` Christopher Dimech
@ 2021-06-25 12:00     ` Eric S Fraga
  0 siblings, 0 replies; 4+ messages in thread
From: Eric S Fraga @ 2021-06-25 12:00 UTC (permalink / raw)
  To: Christopher Dimech; +Cc: Help Emacs Orgmode, Rodrigo Morales

On Thursday, 24 Jun 2021 at 19:29, Christopher Dimech wrote:
>  
> Does not say what ARG is !

It does: type C-u before the command.  It may not be obvious but it is
standard Emacs terminology.

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.6-571-gc591be
: Latest paper written in org: https://arxiv.org/abs/2106.05096


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-25 12:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-24 15:44 Latex preview for whole buffer with on-off keybinding Christopher Dimech
2021-06-24 16:06 ` Rodrigo Morales
2021-06-24 17:29   ` Christopher Dimech
2021-06-25 12:00     ` Eric S Fraga

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).