瀏覽代碼

org-e-latex: Add sidewaystable option for tables

* EXPERIMENTAL/org-e-latex.el (org-e-latex-table--format-string): Add
  sidewaystable option for tables.
Nicolas Goaziou 13 年之前
父節點
當前提交
d6ab0f534b
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      EXPERIMENTAL/org-e-latex.el

+ 4 - 1
EXPERIMENTAL/org-e-latex.el

@@ -1839,9 +1839,12 @@ table."
 		     ((string-match "\\<tabular.?\\>" attr)
 		      (org-match-string-no-properties 0 attr))
 		     (t org-e-latex-default-table-environment)))
-	 ;; If table is a float, determine environment: table or table*.
+	 ;; If table is a float, determine environment: table, table*
+	 ;; or sidewaystable.
 	 (float-env (cond
 		     ((string= "longtable" table-env) nil)
+		     ((and attr (string-match "\\<sidewaystable\\>" attr))
+		      "sidewaystables")
 		     ((and attr
 			   (or (string-match (regexp-quote "table*") attr)
 			       (string-match "\\<multicolumn\\>" attr)))