Post a minimal example of what you are doing. The document class is
going to be important here, I suspect.
--
Joseph Wright
The document class is thesis. I've used this bit suggested in the
Jakob's tricks site.
\newcommand{\captionfonts}{\em}
\makeatletter % Allow the use of @
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{{\captionfonts #1: #2}}%
\ifdim \wd\@tempboxa >\hsize
{\captionfonts #1: #2\par}
\else
\hbox to\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
\makeatother
Cheers,
Use the caption package for this type of change.
--
Joseph Wright
Thank you Joseph for your advice.