From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: LaTeX export: images subplots Date: Wed, 11 Sep 2013 21:47:08 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJww8-0000Zj-EC for emacs-orgmode@gnu.org; Wed, 11 Sep 2013 22:47:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJww3-0001cE-6c for emacs-orgmode@gnu.org; Wed, 11 Sep 2013 22:47:16 -0400 Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]:34770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJww2-0001cA-Sb for emacs-orgmode@gnu.org; Wed, 11 Sep 2013 22:47:11 -0400 Received: by mail-lb0-f174.google.com with SMTP id w6so341023lbh.33 for ; Wed, 11 Sep 2013 19:47:09 -0700 (PDT) In-Reply-To: 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: Martin Leduc Cc: "emacs-orgmode@gnu.org" On Wed, Sep 11, 2013 at 8:56 PM, Martin Leduc wrote: > Hi all, > I am using org-mode to write a report with several figures. I would like > to group some images into a same figure, let say a 2x2 panel. I know that I > can directly embed latex code in my org file, for example by using the > subfloats (from the latex subfig package). > > However, I would prefer to use an org-based solution of inserting the image > links in order to keep the convenient way of previewing images right into > the buffer with C-c C-x C-v. > > The only solution I found is by using tables such as: > > #+CAPTION: Insert caption here. > #+ATTR_LATEX: :align p{0.5\textwidth}p{0.5\textwidth} > | [[pathtoimage]] | [[pathtoimage]] | > | [[pathtoimage]] | [[pathtoimage]] | > > where the size of the images is controled by p{} and C-cxv is working. > However, in the exported TeX file, it is a table, not a figure. Is there a > cleaner way to make image panels that would preserve the figure environment > in the exported TeX file ? Just wanted to cite my similar (same?) question from a bit back: - http://lists.gnu.org/archive/html/emacs-orgmode/2013-03/msg01800.html The only suggest I got was to use the subfig package, which may actually be something like what you're looking for. I guess p{width} /could/ work for what I was going for, but I will often stagger images and my own "captions" via the org table: #+ATTR_LATEX: :align p{0.5\textwidth}p{0.5\textwidth} | [[pathtoimage]] | [[pathtoimage]] | | /blah blah/ | /blah blah/ | | | | | [[pathtoimage]] | [[pathtoimage]] | | /blah blah/ | /blah blah/ | | | | I don't like using p{} because everything is left aligned and I like to center the images and the "caption" text below each one. Unfortunately, there's no centered equivalent to p{}. Thus, I end up using \includegraphics[widt]{} manually. Anyway, sorry if that's off-topic. Just wanted to voice that I have a use for this general sort of thing as well. Heck, I think even applying the beamer columns principle to LaTeX article classes would work and be quite neat. Thanks, John > > Thanks a lot, > Martin > >