From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: [PATCH] LaTeX export: added support for sidewaystable from the rotating package Date: Thu, 15 Mar 2012 10:15:41 +0100 Message-ID: <871uoumdhe.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S86nO-0008Hc-DH for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 05:16:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S86nI-0007tH-24 for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 05:16:29 -0400 Received: from plane.gmane.org ([80.91.229.3]:48769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S86nH-0007sy-Rx for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 05:16:23 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S86nE-0008Qa-IN for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 10:16:20 +0100 Received: from genepi110.genepi.med.uni-goettingen.de ([134.76.140.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Mar 2012 10:16:20 +0100 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Mar 2012 10:16:20 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi all, below you find a small patch that allows to use sidewaystable during latex export, i.e. this file should export as expected: ,----[ test.org ] | * Test sidewaystable | | #+CAPTION: A sideways table | #+ATTR_LaTeX: sidewaystable | | The | header | | |---------+--------| | | entries | here | | | * LaTeX Options :noexport: | #+LATEX_HEADER: \usepackage{rotating} `---- This is a patch for the "old" LaTeX exporter. Still, it might lead to cleaner documents for somebody. Cheers, Andreas --- lisp/org-latex.el | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 03664b4..aec4f1d 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1917,10 +1917,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)) -- 1.7.9.1