Org Latex FragTog

about | blog | config | notes | github

1. Automatically Toggle LaTeX Fragments in Org-mode

org-fragtog toggles LaTeX fragements in Org-mode when you hover over them. Here is some inline LaTeX to test it with: \(\int_0^1\frac{x^3}{3}\). And now where is some more but on a seperate line:

\[\sqrt{\beta^2+5}-\sum_{\phi=1}^\infty \frac{x^\phi-1}{\Gamma(x)}\]

\begin{equation} R_{\mu \nu} - {1 \over 2}g_{\mu \nu}\,R + g_{\mu \nu} \Lambda = {8 \pi G \over c^4} T_{\mu \nu} \end{equation} \begin{equation} i\hbar\frac{\partial}{\partial t} \Psi(\mathbf{r},\,t) = -\frac{\hbar^2}{2m}\nabla^2 \Psi(\mathbf{r},\,t) + V(\mathbf{r})\Psi(\mathbf{r},\,t) \end{equation}

2. Configuration

2.1. Setup Dependencies

We need to make sure to pull in Org-mode and set it up first.

(require 'init-org)

2.2. Package Install

Time to install the org-fragtog package and hook it to Org-mode.

(use-package org-fragtog
  :hook (org-mode . org-fragtog-mode))

2.3. Feature Provide

(provide 'init-org-fragtog)

Created: 2021-11-13

Emacs 26.1 (Org mode 9.5)