|
@@ -657,12 +657,13 @@ modified) list.")
|
|
|
(let ((re (org-make-options-regexp
|
|
|
(append
|
|
|
'("TITLE" "AUTHOR" "DATE" "EMAIL" "TEXT" "OPTIONS" "LANGUAGE"
|
|
|
- "LINK_UP" "LINK_HOME" "SETUPFILE" "STYLE" "LATEX_HEADER"
|
|
|
+ "LINK_UP" "LINK_HOME" "SETUPFILE" "STYLE"
|
|
|
+ "LATEX_HEADER" "LATEX_CLASS"
|
|
|
"EXPORT_SELECT_TAGS" "EXPORT_EXCLUDE_TAGS"
|
|
|
"KEYWORDS" "DESCRIPTION" "MACRO" "BIND")
|
|
|
(mapcar 'car org-export-inbuffer-options-extra))))
|
|
|
p key val text options a pr style
|
|
|
- latex-header macros letbind
|
|
|
+ latex-header latex-class macros letbind
|
|
|
ext-setup-or-nil setup-contents (start 0))
|
|
|
(while (or (and ext-setup-or-nil
|
|
|
(string-match re ext-setup-or-nil start)
|
|
@@ -687,6 +688,8 @@ modified) list.")
|
|
|
(setq style (concat style "\n" val)))
|
|
|
((string-equal key "LATEX_HEADER")
|
|
|
(setq latex-header (concat latex-header "\n" val)))
|
|
|
+ ((string-equal key "LATEX_CLASS")
|
|
|
+ (setq latex-class val))
|
|
|
((string-equal key "TEXT")
|
|
|
(setq text (if text (concat text "\n" val) val)))
|
|
|
((string-equal key "OPTIONS")
|
|
@@ -721,6 +724,8 @@ modified) list.")
|
|
|
(when style (setq p (plist-put p :style-extra style)))
|
|
|
(when latex-header
|
|
|
(setq p (plist-put p :latex-header-extra (substring latex-header 1))))
|
|
|
+ (when latex-class
|
|
|
+ (setq p (plist-put p :latex-class latex-class)))
|
|
|
(when options
|
|
|
(setq p (org-export-add-options-to-plist p options)))
|
|
|
;; Add macro definitions
|