From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: Emacs Org mode <emacs-orgmode@gnu.org>
Subject: Exporting multiple images in a float (LaTeX)
Date: Thu, 6 Aug 2015 18:42:08 +0200 [thread overview]
Message-ID: <20150806164208.GB2797@chitra.no-ip.org> (raw)
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.
next reply other threads:[~2015-08-06 16:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-06 16:42 Suvayu Ali [this message]
2015-08-06 22:27 ` Exporting multiple images in a float (LaTeX) Rasmus
2015-08-06 22:31 ` Rasmus
2015-08-07 4:24 ` Suvayu Ali
2015-08-07 13:28 ` Eric S Fraga
2015-08-07 14:14 ` Suvayu Ali
2015-08-07 14:23 ` Rasmus
2015-08-07 16:19 ` Eric S Fraga
2015-08-07 17:04 ` Suvayu Ali
2015-08-08 19:23 ` Rasmus
2015-08-08 23:56 ` Suvayu Ali
2015-08-10 11:59 ` Eric S Fraga
2015-08-07 17:00 ` Suvayu Ali
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=20150806164208.GB2797@chitra.no-ip.org \
--to=fatkasuvayu+linux@gmail.com \
--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).