emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Arranging images on a LaTeX page?


From: Andreas Leha
Subject: Re: [O] Arranging images on a LaTeX page?
Date: Thu, 30 Jan 2014 08:59:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Peter Davis <address@hidden> 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/address@hidden/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




reply via email to

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