From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Exporting multiple images in a float (LaTeX) Date: Fri, 7 Aug 2015 06:24:42 +0200 Message-ID: <20150807042442.GD28462@chitra.no-ip.org> References: <20150806164208.GB2797@chitra.no-ip.org> <87bnekkq81.fsf@gmx.us> <877fp8kq0m.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNZD8-0008Pj-Ab for emacs-orgmode@gnu.org; Fri, 07 Aug 2015 00:24:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNZD3-0008A9-Hw for emacs-orgmode@gnu.org; Fri, 07 Aug 2015 00:24:50 -0400 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:32983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNZD3-00089p-AK for emacs-orgmode@gnu.org; Fri, 07 Aug 2015 00:24:45 -0400 Received: by wijp15 with SMTP id p15so45622772wij.0 for ; Thu, 06 Aug 2015 21:24:44 -0700 (PDT) Received: from chitra.no-ip.org (5072840E.static.ziggozakelijk.nl. [80.114.132.14]) by smtp.gmail.com with ESMTPSA id r6sm6457870wiy.13.2015.08.06.21.24.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Aug 2015 21:24:43 -0700 (PDT) Content-Disposition: inline In-Reply-To: <877fp8kq0m.fsf@gmx.us> 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 Hi Rasmus, On Fri, Aug 07, 2015 at 12:31:37AM +0200, Rasmus wrote: > Rasmus writes: > > Suvayu Ali writes: > > > >> #+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 > > > > > > You should probably use subcaption for that. If so see maybe here: > > > > http://thread.gmane.org/gmane.emacs.orgmode/92820 I usually don't need multiple captions, just one caption for a float with multiple very closely related images. > > For archiving the above you could just use a special block > > > > #+caption: foo > > #+attr_latex: :options [htb] > > > > #+begin_figure > > [[file:fig2.png]] > > [[file:fig3.png]] > > #+end_figure This is very nice, thank you! I think this will do it for me. I have a small question, is there a better way to add a % after the first image in the above case other than adding a snippet? #+begin_figure #+attr_latex: :width 0.45\linewidth [[file:myfig2.pdf]]@@l:%@@ [[file:myfig3.pdf]] #+end_figure > Also, note that :float nil now handles captions and that you should be > able to give arbitrary citations commands. Thus, you should be able to > recreate any old latex structure for images. I'm not sure I understand the comment about arbitrary citation commands. Cheers, -- Suvayu Open source is the future. It sets us free.