[Tuglist] Caption style.

Manoj Kummini tuglist@tug.org.in
Wed, 18 Sep 2002 10:09:23 +0100 (BST)


 --- "H.S.Rai" <hsraidce@iitr.ernet.in> wrote: 

> For long captions of figures and tables, which run in more than one
> line, I get caption like this:
> 
> Figure 2.3: A    long   caption   running   to  second   line
> which started from Ist column below `F' of Figure of Ist line.
> 
> Is it possible to have it like:
> 
> Figure 2.3: A  long  caption  running  to  second   line
>             which  started  below firt letter of caption
>             rather than below `F' of Figure of Ist line.

You could redefine \@makecaption like this:

\long\def\@makecaption#1#2{%
  \vskip\abovecaptionskip
  \sbox\@tempboxa{#1: #2}%
  \ifdim \wd\@tempboxa >\hsize
%    #1: #2\par
\sbox\@tempboxa{#1}
\advance\hsize by -\wd\@tempboxa%
#1: \vtop{#2}
  \else
    \global \@minipagefalse
    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip}

Manoj.

=====
--
Manoj Kummini
http://www.geocities.com/kummini/index.html
12.58 N, 77.39 E

________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
       visit http://in.tv.yahoo.com