[Tugindia] abstract and figure

Baburaj A. Puthenveettil apbabu at mecheng.iisc.ernet.in
Tue Oct 14 03:09:06 CEST 2003


Dear Voss,

Thanks for the help. Theres one problem with figure caption code.
Its coming as

FIG 2:
blah blah blah....

whereas we want FIG2(as well as the text) centered with respect to figure
Where to give the centering command for both the lines?

Further why is the code being effective only for one page. The rest of the 
pages remains as earlier. I tried the code in preamble as well in seperate 
style file.

regards
Baburaj

> >\def\figurename{Fig}
> >\makeatletter
> >\long\def\@makecaption#1#2{%
> >  \vskip\abovecaptionskip
> >  \sbox\@tempboxa{#1:\par#2}% <--- changed
> >  \ifdim \wd\@tempboxa >\hsize
> >    #1:\par #2\par % <--- changed
> >  \else
> >    \global \@minipagefalse
> >    \hb at xt@\hsize{\hfil\box\@tempboxa\hfil}%
> >  \fi
> >  \vskip\belowcaptionskip}
> >\makeatother
> >
>
>


-- 
Baburaj A Puthenveettil
F.M.Lab, Mechanical Engineering,
Indian Institute of Science
Bangalore 560012 India




More information about the tugindia mailing list