Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guanyilun/org-elp

Preview equations live in org-mode
https://github.com/guanyilun/org-elp

emacs latex

Last synced: about 2 months ago
JSON representation

Preview equations live in org-mode

Awesome Lists containing this project

README

        

* org-elp
[[https://melpa.org/#/org-elp][file:https://melpa.org/packages/org-elp-badge.svg]]

Short for: Org Equation Live Preview. It allows previewing the latex
fragment while typing. How it works is that it will generate a split
window and update the preview while typing.

* Installation
=org-elp= is now on melpa. Install simply by =M-x package-install org-elp=.

* Usage
Load it with
#+begin_src elisp
(require 'org-elp)
#+end_src
To set the fraction of the window taken up by the previewing buffer
#+begin_src elisp
(setq org-elp-split-fraction 0.2)
#+end_src
To adjust buffer name
#+begin_src elisp
(setq org-elp-buffer-name "*Equation Live*")
#+end_src
To adjust idle time to run latex preview
#+begin_src elisp
(setq org-elp-idle-time 0.5)
#+end_src
These configurations can also be found in =M-x customize-group org-elp=.

An example configuration with =use-package=,
#+begin_src elisp
(use-package org-elp
:config
(setq org-elp-idle-time 0.5
org-elp-split-fraction 0.25))
#+end_src

To Launch previewing, use =M-x org-elp-mode=, running the same command
again will deactivate it.

* Screenshots
Preview equations in org mode while editing. (Note that I used =M-x
org-elp= in the screenshot. It has been changed to =M-x org-elp-mode=
in the latest version.)

[[https://github.com/guanyilun/org-elp/raw/master/data/org-elp-demo.gif]]