From 2b3ae5c04690b380c7edb41cbbe79dca42e36ce2 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 20 Mar 2012 02:57:02 +0100 Subject: [PATCH] org-latex.el: Allow to use sidewaystable. * org-latex.el (org-export-latex-tables): Allow to use sidewaystable. TINYCHANGE --- lisp/org-latex.el | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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))