Newsgroups: fj.comp.texhax
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!news.iij.ad.jp!nttfgw.ntt-f.co.jp!lab!kyu-cs!hakata!kudpc!kuis-news!kurims!nisimura
From: nisimura@kurims.kyoto-u.ac.jp (Nishimura Susumu)
Subject: Re: sub-numbering of figures over several pages
In-Reply-To: furutaka@rikvax.riken.go.jp's message of Sat, 10 Dec 1994 04:41:35 GMT
Message-ID: <NISIMURA.94Dec13155248@lily.kurims.kyoto-u.ac.jp>
Sender: news@kurims.kurims.kyoto-u.ac.jp
Nntp-Posting-Host: lily
Organization: Research Institute for Mathematical Sciences, Kyoto, Japan.
References: <1994Dec8.120639.2224@riksun.riken.go.jp>,<1ca.2it189@gulag.ntt.jp>
	<1994Dec10.044135.20045@riksun.riken.go.jp>
Date: Tue, 13 Dec 1994 06:52:48 GMT
Lines: 143
Xref: galaxy.trc.rwcp.or.jp fj.comp.texhax:5527
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.comp.texhax&nb=5527&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$B@>B<!w5~Bg?t8&$G$9!#(B

>> In article <1ca.2it189@gulag.ntt.jp>, kazama@square.ntt.jp (Kazuhiro Kazama) writes:
>> >    $B?tKg$N3($r#1%Z!<%8$K0l$D$E$D(B(epsf$B$G(B)$B:\$;$F!$$=$l$i$r(B
>> >    $B$R$H$^$H$a$K$7$F!$$=$l$>$l$K(B sub-number $B$r$U$kJ}K!$r(B
>> >    $B$I$J$?$+$4B8CN$G$O$"$j$^$;$s$G$7$g$&$+!)(B
>>
>>       $B7o$N(B subfigure.sty $B$G$9$,!$!V#1JG$K<}$^$kJ#?t$N>.$5$J?^$K(B
>>       sub-caption $B$r$U$k!W%b%N$N$h$&$G$9!#(B
>>       $B$G$9$+$i!$J#?t$N(B figure $B4D6-$K$?$$$7$F(B sub-caption, sub-number
>>       $B$r?6$C$F$/$l$k$b$N!)$G$J$$$HBLL\$N$h$&$J5$$,$7$^$9!#(B

>>       $B$3$s$JET9g$NNI$$$b$N$OL5$$$b$N$G$7$g$&$+!)(B
>>       $B@dBP$K<{MW$O$"$k$H;W$&$N$G$9$,(B...
>>       $BO@J8$r=q$/>l9g$J$I$K$OFC$K!#(B

$B;d$b$3$NA0O@J8$r=q$$$F$$$k;~$KI,MW$K$J$C$?$N$G!"(B

% subfloat.sty:    set sub-number within one float
% Iwakuma Tetsuo (bear@hashi1.civil.tohoku.ac.jp)  8/7/1992
%                                                10/10/1992
%                   header control added       4/19-22/1993
%                   header control added           8/7/1993

$B$J$k%9%?%$%k%U%!%$%k$r>/$72~B$$7$F(Bad hoc$B$G$9$,2?$H$+MQ$r:Q$^$;$^$7$?!#(B 
$B$3$s$J$N$GNI$1$l$P;H$C$F$_$F2<$5$$!#(B

$B0J2<$r(Btex$B$N(Bpreamble$BItJ,$KA^F~$7$F2<$5$$!#(B

%%%%%%%%%%%%%%%% $B$3$3$+$i(B %%%%%%%%%%%%%%%%%%%%%%%%%
%
%       Subfloat
%
% subfloat.sty:    set sub-number within one float
% Iwakuma Tetsuo (bear@hashi1.civil.tohoku.ac.jp)  8/7/1992
%                                                10/10/1992
%                   header control added       4/19-22/1993
%                   header control added           8/7/1993
\makeatletter
\@definecounter{subfloatnumber}
\def\@T@bLe{table}
\def\subfloatcap{-\alph{subfloatnumber}} % default
\def\FstSubFloat{%
  \ifx\@captype\@T@bLe\addtocounter{\@captype}{1}\else\relax\fi}
\def\LstSubFloat{%
  \ifx\@captype\@T@bLe\relax\else\addtocounter{\@captype}{1}\fi}
%% Enclose subfloats by \FstSubFloats and \LstSubFloats as:
%%
%%  \begin{table}
%%  \FstSubFloat
%%    \begin{center}
%%      fig a
%%    \end{center}
%%    \subcaption{subcaption a}
%%  \end{table}
%%  \begin{table}
%%    \begin{center}
%%      fig b
%%    \end{center}
%%    \subcaption{subcaption b}
%%  \LstSubFloat
%%  \end{table}

\newif\if@subfloatcaptionhead \@subfloatcaptionheadtrue
\def\NoSubfloatCaptionHead{\@subfloatcaptionheadfalse}

\newif\if@subfloatwithcaptionhead
\def\subcaption{\@ifstar{%
 \@subfloatwithcaptionheadfalse\subc@ption}{%
 \@subfloatwithcaptionheadtrue\subc@ption}}

\def\subc@ption{\@addtoreset{subfloatnumber}{\@captype}%
\ifx\@captype\@T@bLe\relax\else\addtocounter{\@captype}{1}\fi%
\def\the@subfloatnumber{\csname the\@captype\endcsname\subfloatcap}%
\stepcounter{subfloatnumber}%
\edef\@currentlabel{\csname the@subfloatnumber\endcsname}%
\@dblarg{\@subcaption\@captype}}

\long\def\@subcaption#1[#2]#3{\par\addcontentsline{\csname
  ext@#1\endcsname}{#1}{\protect\numberline{\csname
  the#1\endcsname\subfloatcap}{\ignorespaces #2}}\begingroup
    \@parboxrestore
   \if@subfloatcaptionhead
    \if@subfloatwithcaptionhead
     \@makecaption{\csname fnum@#1\endcsname\subfloatcap}%
         {\ignorespaces #3}\par
    \else
     \@makecaptionWOheading{\subfloatcap}{\ignorespaces #3}
    \fi
   \else\@makecaptionWOheading{}{\ignorespaces #3}\par\fi
    \endgroup%
     \ifx\@captype\@T@bLe\relax\else\addtocounter{\@captype}{-1}\fi}

\long\def\@makecaptionWOheading#1#2{%
   \vskip 10\p@
   \setbox\@tempboxa\hbox{#1 #2}%
   \ifdim \wd\@tempboxa >\hsize
       #1 #2\par
     \else
       \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
   \fi}
\makeatother
%%%%%%%%%%%%%%%% $B$3$3$^$G(B %%%%%%%%%%%%%%%%%%%%%%%%


$B;H$$J}$O!"<!$N$h$&$K!"(B\FstSubFloat$B$r:G=i$N(Bsubfloat$B$N(B\begin{figure}($B$b(B
$B$7$/$O(B\begin{table})$B$ND>8e$K!"(B\LstSubFloat$B$r:G8e$N(Bsubfloat$B$N(B
\end{figure}($B$b$7$/$O(B\end{table})$B$ND>A0$KA^F~$7$^$9!#(B
$B!J$[$s$H$K(Bad hoc$B$G$9$$$^$;$s!K(B

-----------------------------------
\begin{figure}
\FstSubFloat

$B?^(Ba

\subcaption{subcaption a}
\end{figure}

\begin{figure}

$B?^(Bb

\subcaption{subcaption b}
\LstSubFloat
\end{figure}
-----------------------------------

$B$3$l$r(BTeX$B$K$+$1$k$H!"?^(B1-a$B!"?^(B1-b$B$N$h$&$KHV9f$,?6$i$l$F=PNO$5$l$^$9!#(B
$B3F?^$,FHN)$7$?(Bfloat$B$7$F07$o$l$F$$$k$N$G!"J#?tJG$KEO$C$F$bBg>fIW$G$9!#(B

$B:n$jJ}$,$$$$2C8:$J$N$G!"$R$H$D$N(Bsubfloat$B$N=89g$K(Bfigure$B$H(Btable$B$,:.:_$9(B
$B$k>l9g$O$&$^$/F0$+$J$$$+$b$7$l$^$;$s!#(B


-------------------------------------
$B@>B<(B $B?J!w5~ETBg3X?tM}2r@O8&5f=j(B $B#D#1(B






