From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Exporting multiple images in a float (LaTeX) Date: Thu, 6 Aug 2015 18:42:08 +0200 Message-ID: <20150806164208.GB2797@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNOFA-0004Xp-Lc for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:42:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNOF9-0008Ls-GL for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:42:12 -0400 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:35885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNOF9-0008Lo-9r for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:42:11 -0400 Received: by wicgj17 with SMTP id gj17so30021060wic.1 for ; Thu, 06 Aug 2015 09:42:10 -0700 (PDT) Received: from chitra.no-ip.org ([2001:610:120:3001:2ad2:44ff:fe4a:b029]) by smtp.gmail.com with ESMTPSA id ej5sm10333786wjd.22.2015.08.06.09.42.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Aug 2015 09:42:09 -0700 (PDT) Content-Disposition: inline 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 Org mode Hi, Is there an easy way to export multiple images wrapped in a single floating environment (e.g. figure) when exporting to LaTeX? For how many years I have been doing this: #+name: fig:myfig1 #+caption: This is a single figure, entered in the usual way. file:myfig1.pdf #+begin_latex \begin{figure}[htb] \centering \includegraphics[width=0.8\linewidth]{myfig2.pdf} \includegraphics[width=0.8\linewidth]{myfig3.pdf} \caption{\label{fig:myfig23} Two images in one floating environment.} \end{figure} #+end_latex It would be great if I could avoid the LaTeX block for the second case. An intuitive way might be, when two figures are not separated by empty lines, treat them as part of the same float. The above would translate to: #+name: fig:myfig23 #+caption: Two images in one floating environment. #+attr_latex: :width 0.8\linewidth file:myfig2.pdf file:myfig3.pdf Presently the above is exported as: \begin{figure}[htb] \centering \includegraphics[width=.8\linewidth]{myfig2.pdf} \caption{\label{fig:myfig23} Two images in one floating environment.} \end{figure} \begin{figure}[htb] \centering \includegraphics[width=.8\linewidth]{myfig3.pdf} \caption{\label{fig:myfig23} Two images in one floating environment.} \end{figure} Actually, the above could probably be considered incorrect. The figures have the same caption and labels, which is for all practical purposes incorrect. Am I missing something? Is my "expectation" reasonable? Cheers, -- Suvayu Open source is the future. It sets us free.