Re: [Orgmode] Subfloats in LaTeX

2009-08-02 Thread Carsten Dominik

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




___
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


[Orgmode] Subfloats in LaTeX

2009-07-25 Thread Tim Burt
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


___
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


[Orgmode] Subfloats in LaTeX

2009-07-24 Thread Raffi R
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