From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Subfloats in org - easier way? Date: Fri, 21 Nov 2014 13:33:20 +0100 Message-ID: <87tx1sspgv.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrnPI-0007ZP-0L for emacs-orgmode@gnu.org; Fri, 21 Nov 2014 07:33:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrnPB-0004vY-Om for emacs-orgmode@gnu.org; Fri, 21 Nov 2014 07:33:47 -0500 Received: from plane.gmane.org ([80.91.229.3]:56447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrnPB-0004vO-HX for emacs-orgmode@gnu.org; Fri, 21 Nov 2014 07:33:41 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XrnP9-0008JL-TT for emacs-orgmode@gnu.org; Fri, 21 Nov 2014 13:33:40 +0100 Received: from 46.166.186.236 ([46.166.186.236]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Nov 2014 13:33:39 +0100 Received: from rasmus by 46.166.186.236 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Nov 2014 13:33:39 +0100 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, Rainer M Krug writes: > I want to include in a document, exported to LaTeX, a subfigure. and > followed the blog entry [1]. This works, but > > 1) is cumbersome and extemely LaTex - I can live with this, but is > there a more org-modeisch solution? > 2) I cant use the link (Figure [[fig:ventLEL]]) as they got not replaced > by the correct LaTeX commands. This is obvious (as I did not > use #+CAPTION: for the caption), but is there a way, apart from > using the LaTeX code for these links, to get the links into the > document? I don't think there's an "official" way to do this. Presumably it /could/ use the same mechanisms as when concatenating tables into an equation of matrices, but at the moment there's nothing like it. I don't know if this is much better. It would probably require some effort to make it work in other backends than latex and it's pretty verbose. #+LATEX_HEADER: \usepackage{subcaption} #+CAPTION: Main caption #+begin_figure #+ATTR_LATEX: :options [t]{.45\textwidth} #+CAPTION: subcaption 1 #+BEGIN_subfigure #+BEGIN_CENTER #+ATTR_LATEX: :width 3cm [[file:tmpEOCX1p.jpg]] #+END_CENTER #+end_subfigure #+ATTR_LATEX: :options [t]{.45\textwidth} :width 2cm #+CAPTION: subcaption 2 #+begin_subfigure #+BEGIN_CENTER #+ATTR_LATEX: :width 3cm :center t [[file:tmpEOCX1p.jpg]] #+END_CENTER #+end_subfigure #+end_figure Hope it helps, Rasmus -- May the Force be with you