emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Multiple images per figure with LaTeX export
@ 2012-06-18 15:04 Brett Viren
  2012-06-18 15:57 ` suvayu ali
  0 siblings, 1 reply; 3+ messages in thread
From: Brett Viren @ 2012-06-18 15:04 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 686 bytes --]

I'm using GNU emacs 23.2+1-7 and org-mode 6.27a-1 on Debian.

I want to put two images in one figure for LaTeX/PDF export but can't
find a way.  Googling has not born fruit.  I have tried a few naive
things like:

#+caption: Caption.
#+label: fig:figure
[[./img1.pdf]][[./img2.pdf]]

or:

#+caption: Caption.
#+label: fig:figure
[[./img1.pdf]]
[[./img2.pdf]]

but the resulting export has either two figures with identical captions,
each holding one of the images or the first image in a figure and the
second image inserted bare.  I've also tried to put each image in the
cell of a table but that leads to an "undefined control sequence" error.

How can this be done?

Thanks,
-Brett.

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Multiple images per figure with LaTeX export
  2012-06-18 15:04 Multiple images per figure with LaTeX export Brett Viren
@ 2012-06-18 15:57 ` suvayu ali
  2012-06-18 17:15   ` Brett Viren
  0 siblings, 1 reply; 3+ messages in thread
From: suvayu ali @ 2012-06-18 15:57 UTC (permalink / raw)
  To: Brett Viren; +Cc: emacs-orgmode

Hello Brett,

Glad to see another HEP researcher using org-mode. :)

On Mon, Jun 18, 2012 at 5:04 PM, Brett Viren <bv@bnl.gov> wrote:
> I want to put two images in one figure for LaTeX/PDF export but can't
> find a way.

Sadly my solution is a big bad hack:

  #+begin_latex
    \begin{figure}
    \centering
    \begin{tabular}{c}
    \includegraphics[<options>]{plots/file1.eps} \\
    \includegraphics[<options>]{plots/file2.eps}
    \end{tabular}
    \caption[Caption in LOI]{Long caption}
    \label{fig:somelabel}
    \end{figure}
  #+end_latex

HTH

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Multiple images per figure with LaTeX export
  2012-06-18 15:57 ` suvayu ali
@ 2012-06-18 17:15   ` Brett Viren
  0 siblings, 0 replies; 3+ messages in thread
From: Brett Viren @ 2012-06-18 17:15 UTC (permalink / raw)
  To: suvayu ali; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 618 bytes --]

Hi Suvayu,

suvayu ali <fatkasuvayu+linux@gmail.com> writes:

> Glad to see another HEP researcher using org-mode. :)

Greetings!

> Sadly my solution is a big bad hack:
>
>   #+begin_latex
>     \begin{figure}
>     \centering
>     \begin{tabular}{c}
>     \includegraphics[<options>]{plots/file1.eps} \\
>     \includegraphics[<options>]{plots/file2.eps}
>     \end{tabular}
>     \caption[Caption in LOI]{Long caption}
>     \label{fig:somelabel}
>     \end{figure}
>   #+end_latex

Okay, thanks!  I didn't think about just putting it directly in LaTeX.
This will works just fine for my purposes.

Cheers,
-Brett.

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-18 17:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18 15:04 Multiple images per figure with LaTeX export Brett Viren
2012-06-18 15:57 ` suvayu ali
2012-06-18 17:15   ` Brett Viren

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).