emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] ox-latex.el: Wrap table into figure environment


From: Xavier Garrido
Subject: [O] [PATCH] ox-latex.el: Wrap table into figure environment
Date: Tue, 02 Jul 2013 08:36:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]