emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Exporting multiple images in a float (LaTeX)


From: Suvayu Ali
Subject: Re: [O] Exporting multiple images in a float (LaTeX)
Date: Fri, 7 Aug 2015 06:24:42 +0200
User-agent: Mutt/1.5.23.1 (2014-03-12)

Hi Rasmus,

On Fri, Aug 07, 2015 at 12:31:37AM +0200, Rasmus wrote:
> Rasmus <address@hidden> writes:
> > Suvayu Ali <address@hidden> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]