org-e-latex: Add sidewaystable option for tables

* EXPERIMENTAL/org-e-latex.el (org-e-latex-table--format-string): Add
  sidewaystable option for tables.
This commit is contained in:
Nicolas Goaziou 2012-03-22 18:15:54 +01:00
parent dd7aa8ece9
commit d6ab0f534b
1 changed files with 4 additions and 1 deletions

View File

@ -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)))