diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 6d465010e..d09ca48ef 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1902,10 +1902,14 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." 'org-label raw-table) longtblp (and attr (stringp attr) (string-match "\\" attr)) - tblenv (if (and attr (stringp attr) - (or (string-match (regexp-quote "table*") attr) - (string-match "\\" attr))) - "table*" "table") + tblenv (if (and attr (stringp attr)) + (cond ((string-match "\\" attr) + "sidewaystable") + ((or (string-match (regexp-quote "table*") attr) + (string-match "\\" attr)) + "table*") + (t "table")) + "table") tabular-env (if (and attr (stringp attr) (string-match "\\(tabular.\\)" attr))