Since this is a general LaTeX question, nothing specific for teTeX, you should not send it here but preferably to the news group comp.text.tex.
Anyway, why not use an existing standard package to solve your problem: \usepackage[bf]{caption} To learn more about this package, run the command 'texdoc caption' /Mats > Hello tetex subscribers, > > I have modified standard class file to format the captions in bold. This is > fine and I can get it. But when the caption runs in two lines the > caption remains normal and the alignment also change to left can any > one solve the problem. Here i am giving the code: > > \long\def\@makecaption#1#2{% > \vskip\abovecaptionskip > \sbox\@tempboxa{{#1:} #2}% > \ifdim \wd\@tempboxa >\hsize > #1: #2\par > \else > \global \@minipagefalse > \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% > \fi > \vskip\belowcaptionskip} > > > Janardhan > > > -- > Best regards, > Janardhan mailto:[EMAIL PROTECTED] >