Function: org--math-always-on
org--math-always-on is an interactive and byte-compiled function
defined in org.el.gz.
Signature
(org--math-always-on ORIG-FUN &rest ARGS)
Documentation
Always return t in Org buffers.
This is because we want to insert math symbols without dollars even outside
the LaTeX math segments. If Org mode thinks that point is actually inside
an embedded LaTeX fragment, let texmathp do its job.
M-x org-cdlatex-mode-map (org-cdlatex-mode-map)
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org--math-always-on (orig-fun &rest args)
"Always return t in Org buffers.
This is because we want to insert math symbols without dollars even outside
the LaTeX math segments. If Org mode thinks that point is actually inside
an embedded LaTeX fragment, let `texmathp' do its job.
`\\[org-cdlatex-mode-map]'"
(interactive)
(cond
((not (derived-mode-p 'org-mode)) (apply orig-fun args))
((eq this-command 'cdlatex-math-symbol)
(setq texmathp-why '("cdlatex-math-symbol in org-mode" . 0))
t)
(t
(let ((p (org-inside-LaTeX-fragment-p)))
(when p ;; FIXME: Shouldn't we return t when `p' is nil?
(if (member (car p)
(plist-get org-format-latex-options :matchers))
(progn
(setq texmathp-why '("Org mode embedded math" . 0))
t)
(apply orig-fun args)))))))