mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-25 07:27:57 +00:00
org: Replace AUTO with appropriate language when previewing snippets
* lisp/org.el (org-create-formula--latex-header): Replace AUTO with appropriate language when previewing snippets.
This commit is contained in:
parent
4788a58e71
commit
bd987e3804
28
lisp/org.el
28
lisp/org.el
@ -4313,12 +4313,6 @@ If TABLE-TYPE is non-nil, also check for table.el-type tables."
|
|||||||
(re-search-forward org-table-any-border-regexp nil 1))))
|
(re-search-forward org-table-any-border-regexp nil 1))))
|
||||||
(unless quietly (message "Mapping tables: done")))
|
(unless quietly (message "Mapping tables: done")))
|
||||||
|
|
||||||
;; Declare and autoload functions from ox.el and al.
|
|
||||||
|
|
||||||
(declare-function org-export-get-environment "ox"
|
|
||||||
(&optional backend subtreep ext-plist))
|
|
||||||
(declare-function org-latex-guess-inputenc "ox-latex" (header))
|
|
||||||
|
|
||||||
;; Declare and autoload functions from org-agenda.el
|
;; Declare and autoload functions from org-agenda.el
|
||||||
|
|
||||||
(eval-and-compile
|
(eval-and-compile
|
||||||
@ -18508,18 +18502,20 @@ share a good deal of logic."
|
|||||||
|
|
||||||
(declare-function org-export--get-global-options "ox" (&optional backend))
|
(declare-function org-export--get-global-options "ox" (&optional backend))
|
||||||
(declare-function org-export--get-inbuffer-options "ox" (&optional backend))
|
(declare-function org-export--get-inbuffer-options "ox" (&optional backend))
|
||||||
|
(declare-function org-latex-guess-inputenc "ox-latex" (header))
|
||||||
|
(declare-function org-latex-guess-babel-language "ox-latex" (header info))
|
||||||
(defun org-create-formula--latex-header ()
|
(defun org-create-formula--latex-header ()
|
||||||
"Return LaTeX header appropriate for previewing a LaTeX snippet."
|
"Return LaTeX header appropriate for previewing a LaTeX snippet."
|
||||||
(org-latex-guess-inputenc
|
(let ((info (org-combine-plists (org-export--get-global-options 'latex)
|
||||||
(org-splice-latex-header
|
(org-export--get-inbuffer-options 'latex))))
|
||||||
org-format-latex-header
|
(org-latex-guess-babel-language
|
||||||
org-latex-default-packages-alist
|
(org-latex-guess-inputenc
|
||||||
org-latex-packages-alist t
|
(org-splice-latex-header
|
||||||
(plist-get
|
org-format-latex-header
|
||||||
(org-combine-plists
|
org-latex-default-packages-alist
|
||||||
(org-export--get-global-options 'latex)
|
org-latex-packages-alist t
|
||||||
(org-export--get-inbuffer-options 'latex))
|
(plist-get info :latex-header)))
|
||||||
:latex-header))))
|
info)))
|
||||||
|
|
||||||
;; This function borrows from Ganesh Swami's latex2png.el
|
;; This function borrows from Ganesh Swami's latex2png.el
|
||||||
(defun org-create-formula-image-with-dvipng (string tofile options buffer)
|
(defun org-create-formula-image-with-dvipng (string tofile options buffer)
|
||||||
|
Loading…
Reference in New Issue
Block a user