diff options
Diffstat (limited to 'lisp/org/ob-latex.el')
-rw-r--r-- | lisp/org/ob-latex.el | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/lisp/org/ob-latex.el b/lisp/org/ob-latex.el index 7253803af9e..332ace765bb 100644 --- a/lisp/org/ob-latex.el +++ b/lisp/org/ob-latex.el @@ -4,7 +4,7 @@ ;; Author: Eric Schulte ;; Keywords: literate programming, reproducible research -;; Homepage: https://orgmode.org +;; URL: https://orgmode.org ;; This file is part of GNU Emacs. @@ -30,6 +30,10 @@ ;; be created directly form the latex source code. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'org-macs) @@ -37,6 +41,9 @@ (declare-function org-latex-compile "ox-latex" (texfile &optional snippet)) (declare-function org-latex-guess-inputenc "ox-latex" (header)) (declare-function org-splice-latex-header "org" (tpl def-pkg pkg snippets-p &optional extra)) +(declare-function org-at-heading-p "org" (&optional _)) +(declare-function org-back-to-heading "org" (&optional invisible-ok)) +(declare-function org-next-visible-heading "org" (arg)) (defvar org-babel-tangle-lang-exts) (add-to-list 'org-babel-tangle-lang-exts '("latex" . "tex")) @@ -61,7 +68,6 @@ (pdfpng . :any) (pdfwidth . :any) (headers . :any) - (packages . :any) (buffer . ((yes no)))) "LaTeX-specific header arguments.") @@ -104,10 +110,17 @@ exporting the literal LaTeX source." :type 'function) (defcustom org-babel-latex-pdf-svg-process - "inkscape --pdf-poppler %f -T -l -o %O" + "inkscape \ +--pdf-poppler \ +--export-area-drawing \ +--export-text-to-path \ +--export-plain-svg \ +--export-filename=%O \ +%f" "Command to convert a PDF file to an SVG file." :group 'org-babel - :type 'string) + :type 'string + :package-version '(Org . "9.6")) (defcustom org-babel-latex-htlatex-packages '("[usenames]{color}" "{tikz}" "{color}" "{listings}" "{amsmath}") |