From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Subfloats in org - easier way?
Date: Fri, 21 Nov 2014 13:33:20 +0100 [thread overview]
Message-ID: <87tx1sspgv.fsf@gmx.us> (raw)
In-Reply-To: m2oas0hhuw.fsf@krugs.de
Hi,
Rainer M Krug <Rainer@krugs.de> 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
next prev parent reply other threads:[~2014-11-21 12:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-21 12:13 Subfloats in org - easier way? Rainer M Krug
2014-11-21 12:33 ` Rasmus [this message]
2014-11-21 13:54 ` Rainer M Krug
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=87tx1sspgv.fsf@gmx.us \
--to=rasmus@gmx.us \
--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).