Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/io12/org-fragtog
Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them
https://github.com/io12/org-fragtog
emacs latex org-mode toggle
Last synced: 16 days ago
JSON representation
Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them
- Host: GitHub
- URL: https://github.com/io12/org-fragtog
- Owner: io12
- License: mit
- Created: 2020-01-29T18:50:33.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-14T15:21:05.000Z (about 1 year ago)
- Last Synced: 2024-05-01T14:35:29.054Z (7 months ago)
- Topics: emacs, latex, org-mode, toggle
- Language: Emacs Lisp
- Homepage:
- Size: 358 KB
- Stars: 372
- Watchers: 8
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
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:@@ C-c C-x C-l @@html:@@. ~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_srcAlthough 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.