io12/org-fragtog

Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them

Emacs Lisp

445

76 commits

updated Aug 14, 2023

See the code

README

[[https://melpa.org/#/org-fragtog][file:https://melpa.org/packages/org-fragtog-badge.svg]]
[[https://github.com/io12/org-fragtog/actions/workflows/check.yml][file:https://github.com/io12/org-fragtog/actions/workflows/check.yml/badge.svg]]

* ~org-fragtog~
Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them
** About
[[https://orgmode.org/][Org mode]]
supports
[[https://orgmode.org/manual/Previewing-LaTeX-fragments.html#Previewing-LaTeX-fragments][inline image previews]]
of
[[https://orgmode.org/manual/LaTeX-fragments.html][LaTeX fragments]].
These can be toggled with @@html:<kbd>@@ C-c C-x C-l @@html:</kbd>@@. ~org-fragtog~ automates this, so fragment previews are disabled for editing when your cursor steps onto them, and re-enabled when the cursor leaves.

[[./demo.gif]]
** Setup
Install and load the package, then add the snippet below to your config.

#+begin_src emacs-lisp
(add-hook 'org-mode-hook 'org-fragtog-mode)
#+end_src

Although this package uses Org mode's fragment preview feature,
it should work with anything that uses the same fragment syntax,
such as Markdown files or formulas in code comments.

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

emacs
latex
org-mode
toggle

Contributors

io12

70 commits

conao3

3 commits

awth13

2 commits

wosined

1 commits

io12/org-fragtog

Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them

Emacs Lisp

445

76 commits

updated Aug 14, 2023

See the code

README

[[https://melpa.org/#/org-fragtog][file:https://melpa.org/packages/org-fragtog-badge.svg]]
[[https://github.com/io12/org-fragtog/actions/workflows/check.yml][file:https://github.com/io12/org-fragtog/actions/workflows/check.yml/badge.svg]]

* ~org-fragtog~
Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them
** About
[[https://orgmode.org/][Org mode]]
supports
[[https://orgmode.org/manual/Previewing-LaTeX-fragments.html#Previewing-LaTeX-fragments][inline image previews]]
of
[[https://orgmode.org/manual/LaTeX-fragments.html][LaTeX fragments]].
These can be toggled with @@html:<kbd>@@ C-c C-x C-l @@html:</kbd>@@. ~org-fragtog~ automates this, so fragment previews are disabled for editing when your cursor steps onto them, and re-enabled when the cursor leaves.

[[./demo.gif]]
** Setup
Install and load the package, then add the snippet below to your config.

#+begin_src emacs-lisp
(add-hook 'org-mode-hook 'org-fragtog-mode)
#+end_src

Although this package uses Org mode's fragment preview feature,
it should work with anything that uses the same fragment syntax,
such as Markdown files or formulas in code comments.

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

emacs
latex
org-mode
toggle

Contributors

io12

70 commits

conao3

3 commits

awth13

2 commits

wosined

1 commits

Languages

Emacs Lisp

100.0%