From: Xavier Garrido <xavier.garrido@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: [PATCH] ox-latex.el: Wrap table into figure environment
Date: Tue, 02 Jul 2013 08:36:08 +0200 [thread overview]
Message-ID: <51D274D8.3030402@gmail.com> (raw)
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
next reply other threads:[~2013-07-02 6:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-02 6:36 Xavier Garrido [this message]
2013-07-02 9:20 ` [PATCH] ox-latex.el: Wrap table into figure environment Rasmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51D274D8.3030402@gmail.com \
--to=xavier.garrido@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).