emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Subfloats in LaTeX
@ 2009-07-24 20:04 Raffi R
  2009-07-24 20:23 ` Raffi R
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Raffi R @ 2009-07-24 20:04 UTC (permalink / raw)
  To: emacs-orgmode

Dear community,

How do I stick a group of figures together (i.e. so that I have Fig. 1
and then a, b, c)?

Alternatively, is there a way I can keep images inline and yet use
captions? Whenever I add a #+CAPTION:, it's turned into \figure and
floating is turned on.

What I'm trying to do is make a section that consists of a sequence of images.

I've searched the orgmode manual but can't figure out a way short of
generating the LaTeX file and editing it directly (hardly ideal!).

That said, I've never tried to do this in LaTeX  so I guess it may not
be possible (although it would surprise me!).


Thank you very much,

- Raffi.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Subfloats in LaTeX
  2009-07-24 20:04 Subfloats in LaTeX Raffi R
@ 2009-07-24 20:23 ` Raffi R
  2009-07-25 12:27 ` Tim Burt
  2009-08-03  4:30 ` Carsten Dominik
  2 siblings, 0 replies; 4+ messages in thread
From: Raffi R @ 2009-07-24 20:23 UTC (permalink / raw)
  To: emacs-orgmode

A table seems to work to force the inlining. For curiosity's sake, is
there a more idiomatic way to do it?

On Fri, Jul 24, 2009 at 4:04 PM, Raffi R<raffir@gmail.com> wrote:
> Dear community,
>
> How do I stick a group of figures together (i.e. so that I have Fig. 1
> and then a, b, c)?
>
> Alternatively, is there a way I can keep images inline and yet use
> captions? Whenever I add a #+CAPTION:, it's turned into \figure and
> floating is turned on.
>
> What I'm trying to do is make a section that consists of a sequence of images.
>
> I've searched the orgmode manual but can't figure out a way short of
> generating the LaTeX file and editing it directly (hardly ideal!).
>
> That said, I've never tried to do this in LaTeX  so I guess it may not
> be possible (although it would surprise me!).
>
>
> Thank you very much,
>
> - Raffi.
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Subfloats in LaTeX
  2009-07-24 20:04 Subfloats in LaTeX Raffi R
  2009-07-24 20:23 ` Raffi R
@ 2009-07-25 12:27 ` Tim Burt
  2009-08-03  4:30 ` Carsten Dominik
  2 siblings, 0 replies; 4+ messages in thread
From: Tim Burt @ 2009-07-25 12:27 UTC (permalink / raw)
  To: Raffi R; +Cc: emacs-orgmode

Raffi ---

The answer addresses the question behind "I've never tried to do this in
LaTeX", where 'this' is a group of figures.  

> Dear community,
> 
> How do I stick a group of figures together (i.e. so that I have Fig. 1
> and then a, b, c)?
The short answer is to use the ~\subfloat~ command from the =subfig=
package.  The package can be found on CTAN at
http://tug.ctan.org/tex-archive/macros/latex/contrib/subfig/.  

The following LaTeX document source demonstrates the technique,
including how to identify and reference subfigures.
#+begin_src latex
\documentclass{article}
\usepackage{graphicx}
\usepackage{subfig}
\begin{document}

\begin{figure}
  \centering
  \subfloat[Red eye, up horn.]{\includegraphics[width=0.33\textwidth]{nrocinu}}
  \hfill
  \subfloat[More right-looking]{\includegraphics[width=0.33\textwidth]{nrocinu2}}
  \\ 
  \subfloat[Geometric, right-looking]{\includegraphics[width=0.33\textwidth]{nrocinu3}}
  \hfill
  \subfloat[[Geometric, left-looking (and a bit jagged)]{\includegraphics[width=0.33\textwidth]{nrocinu4}}
  \\
  \mbox{}\hfill
  \subfloat[More depth of character\label{fig:curr}]{\includegraphics[width=0.33\textwidth]{org-mode-unicorn}}
  \hfill\mbox{}
  \caption{The changing styles of the org-mode unicorn.}
  \label{fig:all}
\end{figure}
%
The unicorns in Figure~\ref{fig:all} are the JPEG versions found on
\texttt{http://orgmode.org/img}.
Figure~\ref{fig:all}\subref{fig:curr} is the current form on
\texttt{http://orgmode.org}.

\end{document}
#+end_src

> 
> Alternatively, is there a way I can keep images inline and yet use
> captions? Whenever I add a #+CAPTION:, it's turned into \figure and
> floating is turned on.
> 
> What I'm trying to do is make a section that consists of a sequence of images.
> 
> I've searched the orgmode manual but can't figure out a way short of
> generating the LaTeX file and editing it directly (hardly ideal!).
> 
> That said, I've never tried to do this in LaTeX  so I guess it may not
> be possible (although it would surprise me!).
> 
> 
> Thank you very much,
> 
> - Raffi.


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Subfloats in LaTeX
  2009-07-24 20:04 Subfloats in LaTeX Raffi R
  2009-07-24 20:23 ` Raffi R
  2009-07-25 12:27 ` Tim Burt
@ 2009-08-03  4:30 ` Carsten Dominik
  2 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2009-08-03  4:30 UTC (permalink / raw)
  To: Raffi R; +Cc: emacs-orgmode

Hi Raffi,

for more complex LaTeX formatting like this, the best option
is to directly insert the correct LaTeX code into the Org file:

#+LaTeX_HEADER: \usepackage{subfig}

* My test file with subfloats

\begin{figure}
   \centering
   \subfloat[A gull]{\label{fig:gull} 
\includegraphics[width=0.3\textwidth]{gull}}
   \subfloat[A tiger]{\label{fig:tiger} 
\includegraphics[width=0.3\textwidth]{tiger}}
   \subfloat[A mouse]{\label{fig:mouse} 
\includegraphics[width=0.3\textwidth]{mouse}}
   \caption{Pictures of animals}
   \label{fig:animals}
\end{figure}

... and here continue with Org stuff.

Org will never cover the entire LaTeX formatting possibilities,
which is why it is best to resort to LaTeX directly for such stuff.

- Carsten

On Jul 24, 2009, at 10:04 PM, Raffi R wrote:

> Dear community,
>
> How do I stick a group of figures together (i.e. so that I have Fig. 1
> and then a, b, c)?
>
> Alternatively, is there a way I can keep images inline and yet use
> captions? Whenever I add a #+CAPTION:, it's turned into \figure and
> floating is turned on.
>
> What I'm trying to do is make a section that consists of a sequence  
> of images.
>
> I've searched the orgmode manual but can't figure out a way short of
> generating the LaTeX file and editing it directly (hardly ideal!).
>
> That said, I've never tried to do this in LaTeX  so I guess it may not
> be possible (although it would surprise me!).
>
>
> Thank you very much,
>
> - Raffi.
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-03  4:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-24 20:04 Subfloats in LaTeX Raffi R
2009-07-24 20:23 ` Raffi R
2009-07-25 12:27 ` Tim Burt
2009-08-03  4:30 ` Carsten Dominik

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).