Hi!
I'm back again, sorry for bothering you
To solve my problem, I've tried to redifine \@makecaption:
Code: Select all
\makeatletter
\renewcommand\@makecaption[2]{%
\vskip\abovecaptionskip
\sbox\@tempboxa{#1: #2}%
\ifx\@empty#2 % THAT DOESN'T WORK
#1\par
\else
\ifdim \wd\@tempboxa >\hsize
\noindent #1: #2\par
\else
\centering
\makebox[\linewidth][c]{ #1: #2}\par
\fi
\fi
\vskip\belowcaptionskip
}
\makeatother
But the folliwing line doesn't work at all!
I've tried "ifthenelse" and changing the condition to check, but no one worked!
Can you help me to understand where I am making mistakes?
Thanks a lot.
PS The minimal working example is attached