From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: Re: Arranging images on a LaTeX page?
Date: Thu, 30 Jan 2014 08:59:11 +0100 [thread overview]
Message-ID: <87sis5dho0.fsf@med.uni-goettingen.de> (raw)
In-Reply-To: 20140130005803.GA2988@pfdstudio-air.home
Peter Davis <pfd@pfdstudio.com> 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
next prev parent reply other threads:[~2014-01-30 7:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-29 23:19 Arranging images on a LaTeX page? Peter Davis
2014-01-30 0:00 ` Bastien
2014-01-30 0:22 ` Peter Davis
2014-01-30 0:29 ` John Hendy
2014-01-30 0:58 ` Peter Davis
2014-01-30 7:59 ` Andreas Leha [this message]
2014-01-30 12:21 ` Peter Davis
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=87sis5dho0.fsf@med.uni-goettingen.de \
--to=andreas.leha@med.uni-goettingen.de \
--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).