From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Leduc Subject: Re: LaTeX export: images subplots Date: Thu, 12 Sep 2013 03:13:24 +0000 Message-ID: References: , Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_85bca627-27a3-4f06-b3e9-9a37f9d1f951_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJxLX-0002g0-I6 for emacs-orgmode@gnu.org; Wed, 11 Sep 2013 23:13:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJxLR-0000Gt-M8 for emacs-orgmode@gnu.org; Wed, 11 Sep 2013 23:13:31 -0400 Received: from blu0-omc4-s18.blu0.hotmail.com ([65.55.111.157]:15839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJxLR-0000Go-HY for emacs-orgmode@gnu.org; Wed, 11 Sep 2013 23:13:25 -0400 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: John Hendy Cc: "emacs-orgmode@gnu.org" --_85bca627-27a3-4f06-b3e9-9a37f9d1f951_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi John=2C=20 this solution using tables was indeed inspired from your post=2C I am so= sorry=2C I should have refered to it... I suppose that the feature has not been implemented yet. I am now thinking = of generating a panel with imagemagick before including it in the org buffe= r=2C for example with #+begin_src sh convert +append image1.png image2.png panel.png #+end_src and hence=20 #+CAPTION: [[panel.png]] to have the two images side by side both in the buffer (with C-cxv) and the= latex pdf (within a figure environment). Is there a cleaner org solution that I would have missed ? Thanks again=2C Martin > Date: Wed=2C 11 Sep 2013 21:47:08 -0500 > Subject: Re: [O] LaTeX export: images subplots > From: jw.hendy@gmail.com > To: mart_00@hotmail.com > CC: emacs-orgmode@gnu.org >=20 > On Wed=2C Sep 11=2C 2013 at 8:56 PM=2C Martin Leduc = wrote: > > Hi all=2C > > I am using org-mode to write a report with several figures. I would l= ike > > to group some images into a same figure=2C let say a 2x2 panel. I know = that I > > can directly embed latex code in my org file=2C for example by using th= e > > subfloats (from the latex subfig package). > > > > However=2C 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 in= to > > 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=2C in the exported TeX file=2C it is a table=2C not a figure. I= s there a > > cleaner way to make image panels that would preserve the figure environ= ment > > in the exported TeX file ? >=20 > Just wanted to cite my similar (same?) question from a bit back: > - http://lists.gnu.org/archive/html/emacs-orgmode/2013-03/msg01800.html >=20 > The only suggest I got was to use the subfig package=2C which may > actually be something like what you're looking for. >=20 > I guess p{width} /could/ work for what I was going for=2C but I will > often stagger images and my own "captions" via the org table: >=20 > #+ATTR_LATEX: :align p{0.5\textwidth}p{0.5\textwidth} > | [[pathtoimage]] | [[pathtoimage]] | > | /blah blah/ | /blah blah/ | > | | | > | [[pathtoimage]] | [[pathtoimage]] | > | /blah blah/ | /blah blah/ | > | | | >=20 > 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=2C there's no centered equivalent to p{}. Thus=2C I end up > using \includegraphics[widt]{} manually. >=20 > Anyway=2C sorry if that's off-topic. Just wanted to voice that I have a > use for this general sort of thing as well. Heck=2C I think even > applying the beamer columns principle to LaTeX article classes would > work and be quite neat. >=20 >=20 > Thanks=2C > John >=20 > > > > Thanks a lot=2C > > Martin > > > > = --_85bca627-27a3-4f06-b3e9-9a37f9d1f951_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi John=2C
 =3B =3B = this solution using tables was indeed inspired from your post=2C I am so so= rry=2C I should have refered to it...

I suppose that the feature has= not been implemented yet. I am now thinking of generating a panel with ima= gemagick before including it in the org buffer=2C for example with

#= +begin_src sh
convert +append image1.png image2.png panel.png
#+end_s= rc

and hence

#+CAPTION:
[[panel.png]]

to have the = two images side by side both in the buffer (with C-cxv) and the latex pdf (= within a figure environment).

Is there a cleaner org solution that I= would have missed ?
Thanks again=2C
Martin

>=3B Date: = Wed=2C 11 Sep 2013 21:47:08 -0500
>=3B Subject: Re: [O] LaTeX export: = images subplots
>=3B From: jw.hendy@gmail.com
>=3B To: mart_00@ho= tmail.com
>=3B CC: emacs-orgmode@gnu.org
>=3B
>=3B On Wed= =2C Sep 11=2C 2013 at 8:56 PM=2C Martin Leduc <=3Bmart_00@hotmail.com>= =3B wrote:
>=3B >=3B Hi all=2C
>=3B >=3B I am using org-mod= e to write a report with several figures. I would like
>=3B >=3B to = group some images into a same figure=2C let say a 2x2 panel. I know that I<= br>>=3B >=3B can directly embed latex code in my org file=2C for exampl= e by using the
>=3B >=3B subfloats (from the latex subfig package).<= br>>=3B >=3B
>=3B >=3B However=2C I would prefer to use an org-b= ased solution of inserting the image
>=3B >=3B links in order to kee= p the convenient way of previewing images right into
>=3B >=3B the b= uffer with C-c C-x C-v.
>=3B >=3B
>=3B >=3B The only solution= I found is by using tables such as:
>=3B >=3B
>=3B >=3B #+CA= PTION: Insert caption here.
>=3B >=3B #+ATTR_LATEX: :align p{0.5\tex= twidth}p{0.5\textwidth}
>=3B >=3B | [[pathtoimage]] | [[pathtoimage]= ] |
>=3B >=3B | [[pathtoimage]] | [[pathtoimage]] |
>=3B >=3B=
>=3B >=3B where the size of the images is controled by p{} and C-cx= v is working.
>=3B >=3B However=2C in the exported TeX file=2C it is= a table=2C not a figure. Is there a
>=3B >=3B cleaner way to make i= mage panels that would preserve the figure environment
>=3B >=3B in = the exported TeX file ?
>=3B
>=3B Just wanted to cite my similar= (same?) question from a bit back:
>=3B - http://lists.gnu.org/archive= /html/emacs-orgmode/2013-03/msg01800.html
>=3B
>=3B The only sug= gest I got was to use the subfig package=2C which may
>=3B actually be= something like what you're looking for.
>=3B
>=3B I guess p{wid= th} /could/ work for what I was going for=2C but I will
>=3B often sta= gger images and my own "captions" via the org table:
>=3B
>=3B #= +ATTR_LATEX: :align p{0.5\textwidth}p{0.5\textwidth}
>=3B | [[pathtoim= age]] | [[pathtoimage]] |
>=3B | /blah blah/ | /blah blah/ |
>= =3B | | |
>=3B | [[pathtoimage]] | [[pathtoimage]] |
>=3B | /= blah blah/ | /blah blah/ |
>=3B | | |
>=3B
>=3B I do= n't like using p{} because everything is left aligned and I like
>=3B = to center the images and the "caption" text below each one.
>=3B Unfor= tunately=2C there's no centered equivalent to p{}. Thus=2C I end up
>= =3B using \includegraphics[widt]{} manually.
>=3B
>=3B Anyway=2C= sorry if that's off-topic. Just wanted to voice that I have a
>=3B us= e for this general sort of thing as well. Heck=2C I think even
>=3B ap= plying the beamer columns principle to LaTeX article classes would
>= =3B work and be quite neat.
>=3B
>=3B
>=3B Thanks=2C
&g= t=3B John
>=3B
>=3B >=3B
>=3B >=3B Thanks a lot=2C
&= gt=3B >=3B Martin
>=3B >=3B
>=3B >=3B
=
= --_85bca627-27a3-4f06-b3e9-9a37f9d1f951_--