mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-12-29 11:02:33 +00:00
ob-latex: fix compiler warnings
This commit is contained in:
parent
804d08b119
commit
f34f0b9b39
@ -33,6 +33,11 @@
|
|||||||
;;; Code:
|
;;; Code:
|
||||||
(require 'ob)
|
(require 'ob)
|
||||||
|
|
||||||
|
(declare-function org-create-formula-image "org" (string tofile options buffer))
|
||||||
|
(declare-function org-splice-latex-header "org"
|
||||||
|
(tpl def-pkg pkg snippets-p &optional extra))
|
||||||
|
(declare-function org-export-latex-fix-inputenc "org-latex" ())
|
||||||
|
|
||||||
(add-to-list 'org-babel-tangle-lang-exts '("latex" . "tex"))
|
(add-to-list 'org-babel-tangle-lang-exts '("latex" . "tex"))
|
||||||
|
|
||||||
(defvar org-babel-default-header-args:latex
|
(defvar org-babel-default-header-args:latex
|
||||||
@ -50,6 +55,8 @@
|
|||||||
body))) (nth 1 (org-babel-process-params params)))
|
body))) (nth 1 (org-babel-process-params params)))
|
||||||
body)
|
body)
|
||||||
|
|
||||||
|
(defvar org-format-latex-options)
|
||||||
|
(defvar org-export-latex-packages-alist)
|
||||||
(defun org-babel-execute:latex (body params)
|
(defun org-babel-execute:latex (body params)
|
||||||
"Execute a block of Latex code with org-babel. This function is
|
"Execute a block of Latex code with org-babel. This function is
|
||||||
called by `org-babel-execute-src-block'."
|
called by `org-babel-execute-src-block'."
|
||||||
@ -79,6 +86,10 @@ called by `org-babel-execute-src-block'."
|
|||||||
out-file)
|
out-file)
|
||||||
body))
|
body))
|
||||||
|
|
||||||
|
(defvar org-format-latex-header)
|
||||||
|
(defvar org-format-latex-header-extra)
|
||||||
|
(defvar org-export-latex-packages-alist)
|
||||||
|
(defvar org-export-latex-default-packages-alist)
|
||||||
(defun org-babel-latex-body-to-tex-file (tex-file body &optional height width)
|
(defun org-babel-latex-body-to-tex-file (tex-file body &optional height width)
|
||||||
"Place the contents of BODY into TEX-FILE. Extracted from
|
"Place the contents of BODY into TEX-FILE. Extracted from
|
||||||
`org-create-formula-image' in org.el."
|
`org-create-formula-image' in org.el."
|
||||||
@ -101,6 +112,9 @@ called by `org-babel-execute-src-block'."
|
|||||||
"\n\\begin{document}\n" body "\n\\end{document}\n")
|
"\n\\begin{document}\n" body "\n\\end{document}\n")
|
||||||
(org-export-latex-fix-inputenc)))
|
(org-export-latex-fix-inputenc)))
|
||||||
|
|
||||||
|
(defvar org-export-pdf-logfiles)
|
||||||
|
(defvar org-latex-to-pdf-process)
|
||||||
|
(defvar org-export-pdf-remove-logfiles)
|
||||||
(defun org-babel-latex-tex-to-pdf (tex-file)
|
(defun org-babel-latex-tex-to-pdf (tex-file)
|
||||||
"Generate a pdf according to the contents TEX-FILE. Extracted
|
"Generate a pdf according to the contents TEX-FILE. Extracted
|
||||||
from `org-export-as-pdf' in org-latex.el."
|
from `org-export-as-pdf' in org-latex.el."
|
||||||
|
Loading…
Reference in New Issue
Block a user