Function: org-lint-LaTeX-$-ambiguous
org-lint-LaTeX-$-ambiguous is a byte-compiled function defined in
org-lint.el.gz.
Signature
(org-lint-LaTeX-$-ambiguous _)
Documentation
Report LaTeX fragment-like text.
AST is the buffer parse tree.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-lint.el.gz
(defun org-lint-LaTeX-$-ambiguous (_)
"Report LaTeX fragment-like text.
AST is the buffer parse tree."
(org-with-wide-buffer
(let ((ambiguous-latex-re (rx "$." digit))
report context)
(while (re-search-forward ambiguous-latex-re nil t)
(setq context (org-element-context))
(when (or (eq 'latex-fragment (org-element-type context))
(memq 'latex-fragment (org-element-restriction context)))
(push
(list
(point)
"$ symbol potentially matching LaTeX fragment boundary. Consider using \\dollar entity.")
report)))
report)))