I'm solving this problem in my bachelor thesis. I used this code to get a left justify, but I would need it only for a table enviroment.
Thank you
Code: Select all
% Here it is: the code that adjusts justification and spacing around caption.
\makeatletter
% http://www.texnik.de/floats/caption.phtml
% This does spacing around caption.
\setlength{\abovecaptionskip}{2pt} % 0.5cm as an example
\setlength{\belowcaptionskip}{2pt} % 0.5cm as an example
% This does justification (left) of caption.
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{#1: #2}%
\ifdim \wd\@tempboxa >\hsize
#1: #2\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
\makeatother