From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Exporting multiple images in a float (LaTeX)
Date: Fri, 7 Aug 2015 06:24:42 +0200 [thread overview]
Message-ID: <20150807042442.GD28462@chitra.no-ip.org> (raw)
In-Reply-To: <877fp8kq0m.fsf@gmx.us>
Hi Rasmus,
On Fri, Aug 07, 2015 at 12:31:37AM +0200, Rasmus wrote:
> Rasmus <rasmus@gmx.us> writes:
> > Suvayu Ali <fatkasuvayu+linux@gmail.com> 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.
next prev parent reply other threads:[~2015-08-07 4:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-06 16:42 Exporting multiple images in a float (LaTeX) Suvayu Ali
2015-08-06 22:27 ` Rasmus
2015-08-06 22:31 ` Rasmus
2015-08-07 4:24 ` Suvayu Ali [this message]
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=20150807042442.GD28462@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).