浏览代码

ox-beamer: Allow both #+attr_latex and #+attr_beamer attributes

* lisp/ox-beamer.el (org-beamer-plain-list): Also read #+attr_latex
  attributes in order to determine list's options.
Nicolas Goaziou 12 年之前
父节点
当前提交
2fa53e44a7
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lisp/ox-beamer.el

+ 3 - 1
lisp/ox-beamer.el

@@ -770,7 +770,9 @@ used as a communication channel."
 CONTENTS is the contents of the list.  INFO is a plist holding
 contextual information."
   (let* ((type (org-element-property :type plain-list))
-	 (attributes (org-export-read-attribute :attr_beamer plain-list))
+	 (attributes (org-combine-plists
+		      (org-export-read-attribute :attr_latex plain-list)
+		      (org-export-read-attribute :attr_beamer plain-list)))
 	 (latex-type (let ((env (plist-get attributes :environment)))
 		       (cond (env (format "%s" env))
 			     ((eq type 'ordered) "enumerate")