MiKTeX and proTeXt ⇒ using caption package
-
- Posts: 46
- Joined: Mon Feb 05, 2007 5:19 pm
Re: using caption package
so i am stuck !!
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
using caption package

Google found this one:
http://skaldrom.wordpress.com/2006/12/1 ... fur-latex/
Greetings
Kris
using caption package
-
- Posts: 1
- Joined: Mon Jan 07, 2008 1:41 am
using caption package
I'm using the float package. However, when I define the new floats (code below), the figure captions within minipages disappears.
Code: Select all
\newfloat{figure}{tbp}{lgr} % optional numbering with [section] or [chapter]
\floatname{figure}{FIG.}
\newfloat{table}{tbp}{lgr} % optional numbering with [section] or [chapter]
\floatname{table}{TAB.}
Code: Select all
\begin{figure}[h]
\begin{minipage}[b]{0.48 \linewidth}
\includegraphics[scale=0.35]{file1.eps}
\label{fig:file1}
\caption{Caption1.}
\end{minipage}\hfill
\begin{minipage}[b]{0.48 \linewidth}
\includegraphics[scale=0.35]{file2.eps}
\label{fig:file2}
\caption{Caption2.}
\end{minipage}
\end{figure}
Thanks.
Re: using caption package
Regards,
B.A.
using caption package
rafaelccomp wrote: I'm using the float package. However, when I define the new floats (code below), the figure captions within minipages disappears.
This is a well-documented behaviour, only one \caption is allowed inside such environments, see float package documentation for details. If you want the caption within floats defined by the \newfloat command to behave "normal", use the star-variant of \restylefloat* right after \newfloat. (Please note that if the hyperref package is used additionally, v6.77a or newer is required, otherwise the \restylefloat* gets "lost".)
HTH,
Axel