From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xavier Garrido Subject: [PATCH] ox-latex.el: Wrap table into figure environment Date: Tue, 02 Jul 2013 08:36:08 +0200 Message-ID: <51D274D8.3030402@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtuC2-0002hF-AI for emacs-orgmode@gnu.org; Tue, 02 Jul 2013 02:36:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtuC1-0003GX-Cc for emacs-orgmode@gnu.org; Tue, 02 Jul 2013 02:36:02 -0400 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:51434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtuC1-0003GS-6z for emacs-orgmode@gnu.org; Tue, 02 Jul 2013 02:36:01 -0400 Received: by mail-we0-f170.google.com with SMTP id w57so4035735wes.1 for ; Mon, 01 Jul 2013 23:36:00 -0700 (PDT) Received: from [192.168.1.41] (60.58.67.86.rev.sfr.net. [86.67.58.60]) by mx.google.com with ESMTPSA id nb12sm20689154wic.7.2013.07.01.23.35.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Jul 2013 23:35:59 -0700 (PDT) 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 Orgers, Since I did not find another way to do it, I would like to submit the following patch diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 09928a4..3da2dd5 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -2333,6 +2333,7 @@ This function assumes TABLE has `org' as its `:type' property and ((and (not float) (plist-member attr :float)) nil) ((string= float "sidewaystable") "sidewaystable") ((string= float "multicolumn") "table*") + ((string= float "figure") "figure") ((or float (org-element-property :caption table)) "table"))))) ;; Extract others display options. Maybe it is quite "counterintuitive" to use =figure= environment inside =table= env. but I heavily use tabular to put figures side-by-side or on a grid array (I guess I am not the only one). There may be a better way to achieve that... Cheers, Xavier