From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: Arranging images on a LaTeX page? Date: Thu, 30 Jan 2014 08:59:11 +0100 Message-ID: <87sis5dho0.fsf@med.uni-goettingen.de> References: <52E98C75.2060600@pfdstudio.com> <87zjmecp97.fsf@bzg.ath.cx> <52E99B5F.3020000@pfdstudio.com> <20140130005803.GA2988@pfdstudio-air.home> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8mX9-0007tQ-5W for emacs-orgmode@gnu.org; Thu, 30 Jan 2014 02:59:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8mX4-000859-Cc for emacs-orgmode@gnu.org; Thu, 30 Jan 2014 02:59:35 -0500 Received: from plane.gmane.org ([80.91.229.3]:35301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8mX4-00084n-5i for emacs-orgmode@gnu.org; Thu, 30 Jan 2014 02:59:30 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W8mWy-0006vK-J5 for emacs-orgmode@gnu.org; Thu, 30 Jan 2014 08:59:24 +0100 Received: from genepi110.genepi.med.uni-goettingen.de ([134.76.140.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jan 2014 08:59:24 +0100 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jan 2014 08:59:24 +0100 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 Peter Davis writes: > On Wed, Jan 29, 2014 at 06:29:37PM -0600, John Hendy wrote: >> >> This has come up before, and the answer is that it's not currently >> possible with just Org. See the following [probably] duplicate >> questions: >> - http://lists.gnu.org/archive/html/emacs-orgmode/2013-03/msg01800.html >> - https://www.mail-archive.com/emacs-orgmode@gnu.org/msg75806.html >> >> There were some suggestions there you might try (e.g. using the LaTeX >> subfig package). > > Thanks, John. I'll take a look. > > Meanwhile. for the current need, I'll probaby just compose the images > in Photoshop or GIMP, and place the resulting composite in the > document. > This is not solving your original problem. But the following might spare you from some manual work. It is a simple hack that uses =imagemagick= to do the side-by-side composition. --8<---------------cut here---------------start------------->8--- * Generate some Test Images #+name: test1 #+begin_src R :results graphics :file test1.png plot(1:10, 1:10) #+end_src #+results: test1 [[file:test1.png]] #+name: test2 #+begin_src R :results graphics :file test2.png plot(1:100, 1:100) #+end_src #+results: test2 [[file:test2.png]] * Place Images Side by Side #+name: testsidebyside #+call: sidebyside(im1=test1(), im2=test2(), outname="test1_test2.png") :results file #+ATTR_LATEX: :height 4.5cm #+results: testsidebyside [[file:test1_test2.png]] * Function for Side-by-Side Images Using =imagemagick= #+name: sidebyside #+begin_src sh :session none :results file replace :var im1="test1.png" :var im2="test2.png" :var outname="test.png" convert "$im1" "$im2" +append "$outname" echo "$outname" #+end_src --8<---------------cut here---------------end--------------->8--- Regards, Andreas