MiKTeX and proTeXtusing caption package

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
me_here_me
Posts: 46
Joined: Mon Feb 05, 2007 5:19 pm

Re: using caption package

Post by me_here_me »

Actually ppl from my team demand that i should produce a makefile. They want the paper in an svn folder from where they can "check out" and "check in" indivudaual sections and use makefile to create them as they wish.

so i am stuck !!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Kris
Posts: 56
Joined: Sun Jan 14, 2007 4:04 pm

using caption package

Post by Kris »

I see... ;)

Google found this one:

http://skaldrom.wordpress.com/2006/12/1 ... fur-latex/

Greetings
Kris
Last edited by Kris on Thu Feb 15, 2007 4:14 pm, edited 1 time in total.
sarg
Posts: 1
Joined: Sun Aug 05, 2007 10:08 pm

using caption package

Post by sarg »

The URL has changed: http://blog.oncode.info/2006/12/13/makefile-fur-latex/. I would be glad if I could help you with any Questions you might have...
Last edited by sarg on Sun Aug 05, 2007 10:11 pm, edited 1 time in total.
rafaelccomp
Posts: 1
Joined: Mon Jan 07, 2008 1:41 am

using caption package

Post by rafaelccomp »

Hi guys.

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.}
For example: If I coded:

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}
Only, Caption2 appears. Anyone may help me?

Thanks.
Last edited by rafaelccomp on Mon Jan 07, 2008 1:53 am, edited 1 time in total.
balfonsi
Posts: 93
Joined: Wed Mar 14, 2007 12:05 am

Re: using caption package

Post by balfonsi »

Why do you need the minipage environment? Use subfloat, from subfig package, instead. You'll obtain your (sub)captions.

Regards,
B.A.
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

using caption package

Post by sommerfee »

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
Post Reply