<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Le 06/05/2010 12:12, Vafa Khalighi a écrit :
<blockquote
 cite="mid:w2pb5215f01005060212ya8b5034bwdbba43d136757bd4@mail.gmail.com"
 type="cite">
  <div dir="ltr">put this before \begin{document}:<br>
  <br>
\makeatletter<br>
\long\def\sf@@@subfloat#1[#2][#3]#4{%<br>
    \@ifundefined{FBsc@max}{}%<br>
        {\FB@readaux{\let\FBsuboheight\relax}}%<br>
    \@tempcnta=\@ne<br>
    \if@minipage<br>
      \@tempcnta=\z@<br>
    \else\ifdim \lastskip=\z@ \else<br>
      \@tempcnta=\tw@<br>
    \fi\fi<br>
    \ifmaincaptiontop<br>
      \sf@top=\sf@nearskip<br>
      \sf@bottom=\sf@farskip<br>
    \else<br>
      \sf@top=\sf@farskip<br>
      \sf@bottom=\sf@nearskip<br>
    \fi<br>
    \leavevmode<br>
    \setbox\@tempboxa \hbox{\beginL#4\endL}%<br>
    \@tempdima=\wd\@tempboxa<br>
    \@ifundefined{FBsc@max}{}%<br>
        {\global\advance\Xhsize-\wd\@tempboxa<br>
         \dimen@=\ht\@tempboxa<br>
         \advance\dimen@\dp\@tempboxa<br>
         \ifdim\dimen@&gt;\FBso@max<br>
           \global\FBso@max\dimen@<br>
         \fi}%<br>
    \vtop\bgroup<br>
      \vbox\bgroup <br>
        \ifcase\@tempcnta<br>
          \@minipagefalse<br>
        \or<br>
          \vskip\sf@top<br>
        \or<br>
          \ifdim \lastskip=\z@ \else<br>
            \@tempskipb\sf@top\relax\@xaddvskip<br>
          \fi<br>
        \fi<br>
        \sf@ifpositiontop{%<br>
          \ifx \@empty#3\relax \else<br>
            \sf@subcaption{#1}{#2}{#3}%<br>
            \vskip\sf@capskip<br>
            \vskip\sf@captopadj<br>
          \fi\egroup<br>
          \hrule width0pt height0pt depth0pt<br>
          \box\@tempboxa<br>
        }{%<br>
        \@ifundefined{FBsc@max}%<br>
            {\box\@tempboxa}%<br>
            {\ifx\FBsuboheight\relax<br>
               \box\@tempboxa<br>
             \else<br>
               \vbox to \FBsuboheight{\FBafil\box\@tempboxa\FBbfil}%<br>
             \fi}%<br>
          \egroup<br>
          \ifx \@empty#3\relax \else<br>
            \vskip\sf@capskip<br>
            \hrule width0pt height0pt depth0pt<br>
            \sf@subcaption{#1}{#2}{#3}%<br>
         \fi<br>
        }%<br>
      \vskip\sf@bottom<br>
    \egroup<br>
    \@ifundefined{FBsc@max}{}%<br>
        {\addtocounter{FRobj}{-1}%<br>
         \ifnum\c@FRobj=0\else<br>
           \subfloatrowsep<br>
         \fi}%<br>
    \ifmaincaptiontop\else<br>
      \global\advance\@nameuse{c@\@captype}\m@ne<br>
    \fi<br>
  \endgroup\ignorespaces}<br>
\makeatother<br>
  <br clear="all">
  <br>
-- <br>
Best wishes,<br>
Vafa Khalighi<br>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  <a class="moz-txt-link-freetext" href="http://tug.org/mailman/listinfo/xetex">http://tug.org/mailman/listinfo/xetex</a>
  </pre>
</blockquote>
Thank you very much! It seems to work perfectly now. Will you include
this patch in the next version of "subfig" or not?<br>
I had the same problem with subfigure package, but because it's
deprecated now I think there is no need to also update it.<br>
<br>
Thanks<br>
<br>
Hadi<br>
</body>
</html>