Function: org-place-formula-image

org-place-formula-image is a byte-compiled function defined in org.el.gz.

Signature

(org-place-formula-image LINK BLOCK-TYPE BEG END VALUE OVERLAYS MOVEFILE IMAGETYPE)

Documentation

Place an overlay from BEG to END showing MOVEFILE.

The overlay will be above BEG if OVERLAYS is non-nil.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-place-formula-image (link block-type beg end value overlays movefile imagetype)
  "Place an overlay from BEG to END showing MOVEFILE.
The overlay will be above BEG if OVERLAYS is non-nil."
  (if overlays
      (progn
        (dolist (o (overlays-in beg end))
          (when (eq (overlay-get o 'org-overlay-type)
                    'org-latex-overlay)
            (delete-overlay o)))
        (org--make-preview-overlay beg end movefile imagetype)
        (goto-char end))
    (delete-region beg end)
    (insert
     (org-add-props link
         (list 'org-latex-src
               (replace-regexp-in-string "\"" "" value)
               'org-latex-src-embed-type
               (if block-type 'paragraph 'character))))))