Minor edits
This commit is contained in:
parent
9b9d12ce99
commit
dc887d870b
@ -918,6 +918,7 @@ The code in listing [[lst:customize-org-babel]], [[lst:customize-org]], and
|
|||||||
(python . t)
|
(python . t)
|
||||||
(scheme . t)
|
(scheme . t)
|
||||||
(shell . t)))
|
(shell . t)))
|
||||||
|
'(org-export-backends '(ascii beamer html icalendar latex odt texinfo))
|
||||||
'(org-file-apps '((auto-mode . emacs)
|
'(org-file-apps '((auto-mode . emacs)
|
||||||
(directory . emacs)
|
(directory . emacs)
|
||||||
("\\.mm\\'" . default)
|
("\\.mm\\'" . default)
|
||||||
@ -1160,7 +1161,6 @@ this document to =html= and LaTeX correctly.
|
|||||||
(org-element-parse-buffer 'greater-element nil) 'src-block
|
(org-element-parse-buffer 'greater-element nil) 'src-block
|
||||||
(lambda (block)
|
(lambda (block)
|
||||||
(let ((name (org-element-property :name block)))
|
(let ((name (org-element-property :name block)))
|
||||||
(message "%s" name)
|
|
||||||
(when (and name (string-match-p infix name))
|
(when (and name (string-match-p infix name))
|
||||||
block))))))
|
block))))))
|
||||||
(dolist (block blocks)
|
(dolist (block blocks)
|
||||||
@ -1213,6 +1213,9 @@ new [[info:org#Editing Source Code][<LANGUAGE>-modes]]: =latex-header= and =late
|
|||||||
'((:exports . "results") (:results . "raw")))
|
'((:exports . "results") (:results . "raw")))
|
||||||
|
|
||||||
(defun org-babel-execute:latex-header (body _params)
|
(defun org-babel-execute:latex-header (body _params)
|
||||||
|
"Execute a block of LaTeX preamble lines with org-babel.
|
||||||
|
This function is called by `org-babel-execute-src-block' and
|
||||||
|
prefixes all lines with \"#+latex_header: \"."
|
||||||
(prefix-all-lines "#+latex_header: " body))
|
(prefix-all-lines "#+latex_header: " body))
|
||||||
|
|
||||||
(add-to-list 'org-src-lang-modes '("latex-extra-header" . latex))
|
(add-to-list 'org-src-lang-modes '("latex-extra-header" . latex))
|
||||||
@ -1221,6 +1224,9 @@ new [[info:org#Editing Source Code][<LANGUAGE>-modes]]: =latex-header= and =late
|
|||||||
'((:exports . "results") (:results . "raw")))
|
'((:exports . "results") (:results . "raw")))
|
||||||
|
|
||||||
(defun org-babel-execute:latex-extra-header (body _params)
|
(defun org-babel-execute:latex-extra-header (body _params)
|
||||||
|
"Execute a block of LaTeX preamble lines with org-babel.
|
||||||
|
This function is called by `org-babel-execute-src-block' and
|
||||||
|
prefixes all lines with \"#+latex_extra_header: \"."
|
||||||
(prefix-all-lines "#+latex_extra_header: " body)))
|
(prefix-all-lines "#+latex_extra_header: " body)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user