Graphics, Figures & TablesTwo captions one figure (one above and one below)

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
BoudewijnD
Posts: 60
Joined: Wed Nov 18, 2009 4:18 pm

Two captions one figure (one above and one below)

Post by BoudewijnD »

Hi,

I have again a question about the captions.

Would like to have 2 captions for one figure or scheme.

so like

text text text

Figure 1: Cool Figure
<the figure it self>
Reagents: bla, bla and word words

text text text

Scheme 1: Cool Scheme
<the figure it self>
Reagents: bla, bla and word words

text text

So one caption (above) with the float and the number and title of the figure or scheme.
And one caption with some more detailed info over the figure or scheme below.

Who can help me??

\BoudewijnD

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Two captions one figure (one above and one below)

Post by Stefan Kottwitz »

Hi BoudewijnD,

you could use a \caption command at the beginning of the float and a \caption command at the end of the float.

I strongly recommand to use the caption package. Besides many formatting options, it offers command variations for labelled and numbered and for unnumbered and not labelled captions.

Stefan
LaTeX.org admin
BoudewijnD
Posts: 60
Joined: Wed Nov 18, 2009 4:18 pm

Re: Two captions one figure (one above and one below)

Post by BoudewijnD »

Hey Stefan,

I tried that but then I get an error Package floatrow Error: Caption(s) lost \caption{the text}

And In the out put file I don't see the first caption either. And the second caption is also numbered what I don't want.

I'm using the caption package

\BoudewijnD
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Two captions one figure (one above and one below)

Post by sommerfee »

BoudewijnD wrote:I tried that but then I get an error Package floatrow Error: Caption(s) lost \caption{the text}
If the floatrow package is loaded the figure environment can handle only a single caption by default.

You can outcome this limitation by placing \RawFloats as very first line of the figure which should contain more-than-one caption.

See floatrow documentation for details.
BoudewijnD
Posts: 60
Joined: Wed Nov 18, 2009 4:18 pm

Two captions one figure (one above and one below)

Post by BoudewijnD »

sommerfee wrote:
You can outcome this limitation by placing \RawFloats as very first line of the figure which should contain more-than-one caption.
Ohye I see that now but, that is not really were I was looking for. I wanted a extra unnumbered caption. But I found this to give the result I want, using the \floatfoot command.

Code: Select all

\begin{figure}
\begin{floatrow}
\includegraphics[width=10cm,keepaspectratio=true]{./Chapter2/EPS/converted/Figure1.eps}
\caption{Umbelliferyl chitobioside fluorogenic substrate \compound{4-OH-chito-4Mu} and \compound{4-deoxy-chito-4Mu}.}                                                                                                                      
  % Figure1.eps: 0x0 pixel, 2400dpi, 0.00x0.00 cm, bb=
\floatfoot{\textbf{Reagents and Conditions:}}
 \label{figure1}
\end{floatrow}
\end{figure}
*see pdf in attachment*

This leaves me with one more small problem I want to out line my caption to the left and leave the figure centered. I went to the floatrow pdf a few times but I could not really find were I was looking for. Does anyone have a idea to outline the caption to left??

\BoudewijnD
Attachments
Figure 1
Figure 1
figure1.jpeg (26.75 KiB) Viewed 21722 times
Post Reply